- 1、本文档共11页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
单片机主程序流程(国外英文资料)
单片机主程序流程(国外英文资料)
The first page is the first page of the tutorial. The second page of the tutorial. Single chip computer c page 3. Infrared remote control and step motor 4. MCU qa
Master program flowchart - the 51 series single-chip machine design example tutorial
The main program diagram is shown in figure 6.2.
Figure 6.2 main program flow chart
This controller is in use, if want to change the way that scintillation, can press corresponding function key. When a full scintillation loop is over, you can move to a new flicker. Since the key scan is done at the end of the scintillation loop, the function switch should be read in at a longer time. The improved method is to replace the DL05S delay subroutine with the key scan subroutine, which is read by the key scanner as long as the key is pressed.
The following is the full source of the LED light blinking controller:
; * * * * * * * * * * * * * * * * * * * * *.
; Small lamp control program;
; * * * * * * * * * * * * * * * * * * * * *.
;
; * * * * * * * * * * * * * * * * * * * * *.
; Interrupt the entry procedure;
; * * * * * * * * * * * * * * * * * * * * *.
;
ORG OOOOH. The program executes the start address
LJMP START; Skip to START performing
ORG OOO3H; External interrupt 0 interrupt the entry address
RETI; Interrupt return (not interrupted)
ORG OOOBH; Timer TO interrupt the entry address
RETI; Interrupt return (not interrupted)
ORG OO13H; Interrupts 1 interrupt entry address
RETI; Interrupt return (not interrupted)
ORG 001 bh. Timer T1 interrupts the entry address
RETI; Interrupt return (not interrupted)
ORG 0023 h; The serial port interrupts the entry address
RETI; Interrupt return (not interrupted)
;
; * * * * * * * * * * * * * * * * * * * * *.
; Initialization program;
; * * * * * * * * * * * * * * * * * * * * *.
;
CLEAR: MOV 20H, # 00H; 20H unit memory clear 0 (scintillation mark clear 0)
SETB 00 h; 20H. 0 position 1 (automatic blinking function 1)
RET. A subroutine returns
;
; * * * * * * * * * * * * * * * * *
文档评论(0)