多功能遥控小车的硬件软件设计程序(Hardware and software design program of multifunctional remote control car).doc
- 1、本文档共12页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
多功能遥控小车的硬件软件设计程序(Hardware and software design program of multifunctional remote control car)
多功能遥控小车的硬件软件设计程序(Hardware and software design program of multifunctional remote control car)
Six, the car forward, backward, left turn, right turn, left scroll, right scroll of the basic instructions
The MOV P2 car forward;
LCALL K1; adjust the delay 3 seconds subroutine K1. Changes in the length of time delay can be changed
Change the distance of the car.
MOV, P2, ; the car stops moving
The MOV P2, ; car back
LCALL K1; adjust the delay 3 seconds subroutine K1
MOV, P2, ; the car stops pulling back
The MOV P2 , the car turn left;
LCALL K2; adjust the delay one second subroutine K2. If the angle of the car turn is greater than
Or less than 90 degrees, adjustable delay time is achieved
MOV, P2, ; the car stops turning left
The MOV P2 , the car turn right;
LCALL K2; adjust the delay one second subroutine K2
MOV, P2, ; the car stops turning left
The MOV P2 , the car left rolling;
LCALL K3; adjust the long time delay 5 seconds subroutine K3
MOV, P2, ; the car stops rolling left
The MOV P2, ; the car right scroll
LCALL K2; adjust the long time delay 5 seconds subroutine K3
MOV, P2, ; the car stops rolling right
Seven, complete program list
ORG 0000H
LJMP MAIN; skip to MAIN
ORG 0003H; external interrupt 0 entry address
LJMP BB; jump to external interrupt 0 service subroutine first address BB
ORG 000BH; T0 interrupt entry address
LJMP CC; jump to T0 external interrupt service subroutine first address CC
ORG 0013H; external interrupt 1 entry address
LJMP DD; jump to external interrupt 1 service subroutine first address DD
The external interrupt 0 set;
MAIN:MOV, SP, #30H; stack pointer to 30H
SETB IT0; set the external interrupt 0 as the falling edge trigger mode
SETB EX0; sets external interrupts; 0 switches are switched on (interrupt source allows)
The external interrupt 1 set;
SETB IT1; settings; external interrupt 1 is the falling edge trigger mode
SETB
您可能关注的文档
- 动画学习大纲(Animation learning syllabus).doc
- 动画概论的知识总结(Summary of knowledge about animation introduction).doc
- 动画概论课件 ppt 课件5(Introduction to animation courseware ppt courseware 5).doc
- 动画效果速度设计(Animation speed design).doc
- 动画片的类型(Types of cartoons).doc
- 动画团队及任务分配(Animation team and task assignment).doc
- 动画片《猫和老鼠》的起源和发展史(The origin and development of animated cartoon cat and mouse).doc
- 动画概论(Introduction to animation).doc
- 动画的分类(Animation classification).doc
- 办公卫生管理(Office health management).doc
- 海南省专升本招生考试《生理学》考试大纲.docx
- 2024-2025学年九年级下学期数学开学摸底考试题(人教版)含答案.pdf
- 2024-2025学年八年级道德与法治下学期开学摸底考试题含答案.pdf
- 2024-2025学年八年级地理下学期开学摸底考试题含答案.pdf
- 2024-2025学年八年级生物下学期开学摸底考试题含答案.pdf
- 2024-2025学年八年级下学期开学摸底考数学试题含答案.pdf
- 2024-2025学年八年级下学期数学开学摸底考试题(人教版)含答案.pdf
- 2024-2025学年八年级下学期英语开学摸底考试题含答案.pdf
- 辽宁省沈阳市2025届高三上学期教学质量检测(一)英语试卷含答案.docx
- 2024-2025学年九年级历史下学期开学摸底考试题含答案.pdf
文档评论(0)