| 数据搜索系统,热门电子元器件搜索 |
|
AT89LP428 数据表(PDF) 30 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AT89LP428 数据表(HTML) 30 Page - ATMEL Corporation |
|
30 / 149 page ![]() 30 3654A–MICRO–8/09 AT89LP428/828 The Timer 0 and Timer 1 Interrupts are generated by TF0 and TF1, which are set by a rollover in their respective Timer/Counter registers (except for Timer 0 in Mode 3). When a timer interrupt is generated, the on-chip hardware clears the flag that generated it when the service routine is vectored to. The Timer 2 Interrupt is generated by a logic OR of bits TF2 and EXF2 in register T2CON. Neither of these flags is cleared by hardware when the CPU vectors to the service rou- tine. The service routine normally must determine whether TF2 or EXF2 generated the interrupt and that bit must be cleared by software. The Serial Port Interrupt is generated by the logic OR of RI and TI in SCON. Neither of these flags is cleared by hardware when the CPU vectors to the service routine. The service routine normally must determine whether RI or TI generated the interrupt and that bit must be cleared by software. The Serial Peripheral Interface Interrupt is generated by the logic OR of SPIF, MODF and TXE in SPSR. None of these flags is cleared by hardware when the CPU vectors to the ser- vice routine. The service routine normally must determine which bit generated the interrupt and that bit must be cleared by software. A logic OR of all eight flags in the GPIF register causes the GPI. None of these flags is cleared by hardware when the service routine is vectored to. The service routine must determine which bit generated the interrupt and that bit must be cleared in software. If the interrupt was level acti- vated, then the external requesting source must de-assert the interrupt before the flag may be cleared by software. The CFA and CFB bits in ACSRA and ACSRB respectively generate the Comparator Interrupt. The service routine must normally determine whether CFA or CFB generated the interrupt, and the bit must be cleared by software. A logic OR of the four least significant bits in the T2CCF register causes the Compare/Capture Array Interrupt. None of these flags is cleared by hardware when the service routine is vectored to. The service routine must determine which bit generated the interrupt and that bit must be cleared in software. All of the bits that generate interrupts can be set or cleared by software, with the same result as though they had been set or cleared by hardware. That is, interrupts can be generated and pending interrupts can be canceled in software. Table 9-1. Interrupt Vector Addresses Interrupt Source Vector Address System Reset RST or POR or BOD 0000H External Interrupt 0 IE0 0003H Timer 0 Overflow TF0 000BH External Interrupt 1 IE1 0013H Timer 1 Overflow TF1 001BH Serial Port Interrupt RI or TI 0023H Timer 2 Interrupt TF2 or EXF2 002BH Analog Comparator Interrupt CFA or CFB 0033H General-purpose Interrupt GPIF7-0 003BH Compare/Capture Array Interrupt T2CCF 3-0 0043H Serial Peripheral Interface Interrupt SPIF or MODF or TXE 004BH |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |