|
UPD78F1502AGK-GAK-AX Datasheet, PDF (1001/1031 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcontrollers | |||
|
◁ |
78K0R/Lx3
Function
Details of
Function
APPENDIX C LIST OF CAUTIONS
Cautions
(29/39)
Page
Interrupt
functions
IF0L, IF0H, IF1L, When manipulating a flag of the interrupt request flag register, use a 1-bit memory p.748 Â
IF1H, IF2L, IF2H: manipulation instruction (CLR1). When describing in C language, use a bit
Interrupt request manipulation instruction such as âIF0L.0 = 0;â or â_asm(âclr1 IF0L, 0â);â because the
flag registers
compiled assembler must be a 1-bit memory manipulation instruction (CLR1).
If a program is described in C language using an 8-bit memory manipulation
instruction such as âIF0L &= 0xfe;â and compiled, it becomes the assembler of three
instructions.
mov a, IF0L
and a, #0FEH
mov IF0L, a
In this case, even if the request flag of another bit of the same interrupt request flag
register (IF0L) is set to 1 at the timing between âmov a, IF0Lâ and âmov IF0L, aâ, the
flag is cleared to 0 at âmov IF0L, aâ. Therefore, care must be exercised when using
an 8-bit memory manipulation instruction in C language.
Be sure to clear bits 5, 6 of IF0H, bit 3 of IF1L, bit 3 of IF1H, bits 5 to 7 of IF2L, bits 0, p.749 Â
6, 7 of IF2H to 0. (78K0R/LF3)
Be sure to clear bit 3 of IF1H, bits 6, 7 of IF2H to 0. (78K0R/LG3)
p.750 Â
Be sure to clear bits 6, 7 of IF2H to 0. (78K0R/LH3)
p.751 Â
MK0L, MK0H, Be sure to set bits 5, 6 of MK0H, bit 3 of MK1L, bit 3 of MK1H, bits 5 to 7 of MK2L, p.752 Â
MK1L, MK1H, bits 0, 6, 7 of MK2H to 1. (78K0R/LF3)
MK2L, MK2H: Be sure to set bit 3 of MK1H, bits 6, 7 of MK2H to 1. (78K0R/LG3)
p.753 Â
Interrupt mask Be sure to set bits 6, 7 of MK2H to 1. (78K0R/LH3)
p.754 Â
flag registers
PR00L, PR00H, Be sure to set bits 5, 6 of PR00H and PR10H, bit 3 of PR01L and PR11L to 1. p.755 Â
PR01L, PR01H, (78K0R/LF3)
PR02L, PR02H, Be sure to set bit 3 of PR01H and PR11H, bits 5 to 7 of PR02L and PR12L, bits 0, 6, p.756 Â
PR10L, PR10H, 7 of PR02H and PR12H to 1. (78K0R/LF3)
PR11L, PR11H, Be sure to set bit 3 of PR01H and PR11H, bits 6, 7 of PR02H and PR12H to 1. p.757 Â
PR12L, PR12H: (78K0R/LG3)
Priority
Be sure to set bits 6, 7 of PR02H and PR12H to 1. (78K0R/LH3)
specification flag
p.758 Â
registers
EGP0, EGP1: Select the port mode by clearing EGPn and EGNn to 0 because an edge may be p.762 Â
External
detected when the external interrupt function is switched to the port function.
interrupt rising
edge enable
registers, EGN0,
EGN1: External
interrupt falling
edge enable
registers
Software
Do not use the RETI instruction for restoring from the software interrupt.
p.766 Â
interrupt request
acknowledgment
BRK instruction The BRK instruction is not one of the above-listed interrupt request hold instructions. p.770 Â
However, the software interrupt activated by executing the BRK instruction causes
the IE flag to be cleared. Therefore, even if a maskable interrupt request is
generated during execution of the BRK instruction, the interrupt request is not
acknowledged.
R01UH0004EJ0501 Rev.5.01
985
Jun 20, 2011
|
▷ |