- 1、本文档共15页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
中断函数(The interrupt function)
1. INTCON interrupt control register
zero, |, or 1
Set 0 for output, set 1 for input and input output for a single chip. The understanding of output is that the single chip affects the external circuit and the input is the influence of the external circuit to the single chip.
IE: make it possible
IF: flag bit
GIE: global interrupt, 1 allows all unblocked interrupts, 0 forbids all,
PEIE: external interrupt allows for all unblocked external interrupts, and 0 is forbidden
T0IE: TIMER0 overflow interrupt allow bit, 1 allows TIMER0 interrupt, 0 forbids break
INTE: INT external interrupt allow bit, 1 allows INT external interrupt, 0 is forbidden
RBIE: the PORTB level change terminal allows bit, 1 allows the PORTB level change to be interrupted, and 0 is prohibited
T0IF: TIMER0 overflow interrupt mark bit, 1 TMR0 register (must be clear), 0 does not overflow
INTF: INT external interrupt mark bit, 1 INT interrupts, 0 does not occur
RBIF: the PORTB level changes the discontinuity flag bit, and the 1PORTB port has at least one of the pins level state changes, and 0 does not have an INT external interrupt
PIE1: external interrupts allow register 1
PIR1: peripheral interrupt request register 1
PCON: power control register
A position 1 (= 1) of the TRISB can be used to make the corresponding port b pins as input pins (the corresponding output drive is placed in a high impedance state).
The corresponding PORTB pin will be used as the output pin (the content of the outgoing latch is input from the selected pin).
2. STATUS: STATUS register
3. OPTION - REG: OPTION register
RBPU: pull on the PORTB to make it possible, 1 bar it from pulling on it, and 0 from the ports various locking values to pull on the PORTB
T0CS: TIMER0 clock selection, 1 t0cki pin jump edge, 0 internal instruction cycle clock (FOSC / 4)
T0SE: TIMER0 clock edge select bit, 1 at T0CKI signal from high level jump to low voltage, 0 at T0CKI signal from low level jump to high power increm
您可能关注的文档
- 仓储单选(Warehousing radio).doc
- 仓库管理制度(Warehouse management system).doc
- 产品的跟踪物料(Product tracking materials).doc
- 产品介绍(Product introduction).doc
- 产品美学(Product aesthetics).doc
- 产品评估(Product evaluation).doc
- 产品示范(Product demonstration).doc
- 串口并口PCI 接口总结(Serial interface and PCI interface summary).doc
- 串行实时时钟芯片DS1302程序设计中的问题与对策(Problems and countermeasures of serial real-time clock chip DS1302 program design).doc
- 串口连接线制作方法(Method of serial connection).doc
最近下载
- 四川省(蓉城名校联盟)新高考2022级高三适应性考试数学试卷(含答案).pdf
- 水利监理质量控制体系.doc
- [五年级英语下册.doc VIP
- 《江西省宜春市明月山机场航站楼装修工程》投标技术标文件.doc
- GB_T 15114-2023 铝合金压铸件.docx
- 2021年第四期1+X建筑信息模型(BIM)职业技能初级实操题(三).pdf VIP
- 【最全】usedtodo,beusedtodoing用法辨析及练习(带答案).pdf VIP
- 财务报表审计模拟实训第六版刘雪清答案.pdf
- 广东省广州市天河区2020-2021学年八年级下学期期末考试英语试题(word版 含答案).docx VIP
- 招投标法律法规学习培训PPT.pptx VIP
文档评论(0)