| Electronic Components Datasheet Search |
|
38D2 Datasheet(PDF) 121 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
38D2 Datasheet(HTML) 121 Page - Renesas Technology Corp |
|
121 / 136 page ![]() Rev.3.02 Apr 10, 2008 Page 121 of 131 REJ03B0177-0302 38D2 Group Notes on Interrupts 1. Changing Related Register Settings If the interrupt occurrence synchronized with the following settings is not required, take the sequence shown below. • When selecting the external interrupt active edge • When selecting the interrupt source of the interrupt vector address where two or more interrupt sources are allocated Fig. 101 Sequence for setting related register <Reason> In the following cases, the interrupt request bit of the corresponding interrupt may be set to “1”. <When switching the external interrupt active edge> •INT0 interrupt edge selection bit (bit 0 of interrupt edge selection register (address 003A16)) •INT1 interrupt edge selection bit (bit 1 of interrupt edge selection register) •INT2 interrupt edge selection bit (bit 2 of interrupt edge selection register) •CNTR0 active edge switch bits (bits 6 and 7 of timer X control register 1 (address 002E16)) •CNTR1 active edge switch bit (bits 6 of timer Y mode register (address 003816)) <When switching the interrupt source of the interrupt vector address where two or more interrupt sources are allocated> • INT2/Key input interrupt switch bit (bit 3 of interrupt edge selection register) • Timer Y/CNTR1 interrupt switch bit (bit 4 of interrupt edge selection register) 2. Checking Interrupt Request Bit To check the interrupt request bit with the BBC or BBS instruction immediately after this bit is set to “0”, take the following sequence. <Reason> If the BBC or BBS instruction is executed immediately after the interrupt request bit is set to “0”, the bit value before being set to “0” is read. Fig. 102 Sequence for setting interrupt request bit 3. Setting Unused Interrupts Set the interrupt enable bit of the unused interrupt to “0” (disabled). Set the interrupt edge selection bit (active edge switch bit) or interrupt (source) selection bit. NOP (one or more instructions) Set the corresponding interrupt enable bit to “0” (disabled). Set the corresponding interrupt request bit to “0” (no interrupt request). Set the corresponding interrupt enable bit to “1” (enabled). NOP (one or more instructions) Set the interrupt request bit to “0” (no interrupt) Execute the BBC or BBS instruction |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |