网站大量收购独家精品文档,联系QQ:2885784924

中断函数(The interrupt function).doc

  1. 1、本文档共15页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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

文档评论(0)

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

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

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档