7-Segment Display and Count by 16.ppt

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
7-Segment Display and Count by 16.ppt

7-Segment Display and Count by 16 This is our third lab using the 68HC11 microcontroller. We will write a program that counts by 16 in a loop, using one of the registers to count in. Port A will display the count, and will be connected to the 7-segment LED display. You will need a floppy diskette to hold your programs, for later printing. Lab Preparation A: – simp3v2.asm Examine simp2v2.asm to determine how the LEDs are being controlled in the loop. Determine the changes needed to modify the program, so that Port A will contain and display the contents of a register (bits 4,5,6 on pins 4,5,6). Determine the changes needed to make your register count up by 16s. Since you will be displaying only 3-bits (4,5,6) of an 8-bit number in the register, explain in your notebook, how counting by 16 will work and what it will show on the 7-segment LED. During the lab, you will edit and modify a copy of simp2v2.asm to create count-16.asm. You will assemble count16.asm and download it into the MicroStamp board, for execution and testing. MODIFIED simp2v2.asm MODIFIED simple2.asm Part B: The Lab Record in your lab notebook, your observations for each of the following steps. Wire the 68HC11 as we did in the last lab, with power and ground, and LEDs connected to Port A bits 4,5,6. Wire three PortA outputs to the inputs to the decoder for the 7-segment display. Also wire a ground from one of the 7-seg displays. Verify correct operation by running the demo program, but also checking the wiring to the 7-segment display. Edit, assemble, download, and test your count16.s19 program, and verify correct operation. You will need to save your program on your floppy diskette, and print out a listing of each program, which you will insert into your lab notebook. Dr. Hoganson CSIS 4381 **************************************************************** *file: simp2v2.asm *This program illustrates flashing PA6.. *Dr. Hoganson, 10/2/02 ********************************************************

文档评论(0)

gshshxx + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档