| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
7547 bảng dữ liệu(PDF) 19 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
7547 bảng dữ liệu(HTML) 19 Page - Renesas Technology Corp |
|
19 / 91 page ![]() Rev.1.21 Nov 15, 2006 page 19 of 89 REJ03B0156-0121 7547 Group Interrupts Interrupts occur by 18 different sources : 6 external sources, 11 in- ternal sources and 1 software source. Interrupt control All interrupts except the BRK instruction interrupt have an interrupt request bit and an interrupt enable bit, and they are controlled by the interrupt disable flag. When the interrupt enable bit and the in- terrupt request bit are set to “1” and the interrupt disable flag is set to “0”, an interrupt is accepted. The interrupt request bit can be cleared by program but not be set. The interrupt enable bit can be set and cleared by program. The reset and BRK instruction interrupt can never be disabled with any flag or bit. All interrupts except these are disabled when the interrupt disable flag is set. When several interrupts occur at the same time, the interrupts are received according to priority. Interrupt operation Upon acceptance of an interrupt the following operations are auto- matically performed: 1. The processing being executed is stopped. 2. The contents of the program counter and processor status reg- ister are automatically pushed onto the stack. 3. The interrupt disable flag is set and the corresponding interrupt request bit is cleared. 4. Concurrently with the push operation, the interrupt destination address is read from the vector table into the program counter. [Interrupt source set register] INTSET When two interrupt sources are assigned to the same interrupt vector, the valid/invalid of each interrupt is set by this register. When both two interrupt sources are set to be valid, which inter- rupt request occurs is confirmed by the next interrupt source discrimination register. [Interrupt source discrimination register] INTDIS When two interrupt sources are assigned to the same interrupt vector, which interrupt source occurs is confirmed by this register. If an interrupt request of a key-on wakeup, UART1 bus collision detection, A/D conversion or timer 1 occurs, an interrupt discrimi- nation bit is set to “1” regardless of valid/invalid state by the interrupt source set register. However, when the interrupt valid bit of an interrupt source set register is “0” (invalid), the interrupt request bit of an interrupt con- trol register is not set to “1.” Moreover, since an interrupt discrimination bit is not automatically cleared to “0” by interrupt, please clear it by program. An interrupt discrimination bit can be cleared to “0” by program but not be set to “1.” [Interrupt edge selection register] INTEDGE The valid edge of external interrupt INT0 and INT1 can be selected by the interrupt edge selection bit, respectively. For the external interrupt INT1, the external input pin P33/INT1 or P36/INT1 can be selected by the INT1 input port selection bit. By the key-on wakeup selection bit, enable/disable of a key-on wakeup of P00, P04, and P06 pins can be selected, respectively. s Notes on use (1) When setting the followings, the interrupt request bit may be set to “1”. •When switching external interrupt active edge Related register: Interrupt edge selection register (address 003A16) Timer X mode register (address 002B16) Capture mode register (address 002016) When not requiring the interrupt occurrence synchronized with these setting, take the following sequence. ➀ Set the corresponding interrupt enable bit to “0” (disabled). ➁ Set the interrupt edge select bit (active edge switch bit, trigger mode bit). ➂ Set the corresponding interrupt request bit to “0” after 1 or more instructions have been executed. ➃ Set the corresponding interrupt enable bit to “1” (enabled). (2) Use a LDM instruction to clear an interrupt discrimination bit. LDM #$0n, $0B Set the following values to “n” “0”: an interrupt discrimination bit to clear “1”: other interrupt discrimination bits Ex.) When a key-on wakeup interrupt discrimination bit is cleared; LDM #00001110B and $0B. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |