292
CHAPTER 11 MULTIFUNCTIONAL TIMER
11.7
Notes on Using Multifunctional Timer
Heed the following cautions when using the multifunctional timer.
■
Notes on Using 16-bit Free-Run Timer
●
Cautions for setting via the program
•
When a reset is executed, although the timer value becomes "0000
H
", the zero-detection interrupt flag is
not set.
•
Since the timer-mode bit (TCCSL register MODE: bit5) has a buffer, and so timer modes changed after
zero detection are enabled.
•
A software clear (TCCSL register SCLR: bit4 = 1) initializes the timer. At this time, if the timer-count
clock is the machine cycle (
φ
), zero-detection interrupts are not generated. If the timer-count clock is a
division of the machine cycle (
φ
), zero-detection interrupts are generated.
•
When the compare value and count value match, if the count starts, the compare-clear flag is not set.
●
Note on interruption
•
If "1" is set in the timer status control register higher-order (TCCSH) IRQZF: bit14, then interrupt
requests are enabled (TCCSH register IRQZE: bit13 = 1), control cannot return from interrupt
processing. IRQZF: Always clear bit14.
•
If "1" is set in the timer status control register higher-order (TCCSH) ICLR: bit9, then interrupt requests
are enabled (TCCSH register ICRE: bit8 = 1), control cannot return from interrupt processing.
ICLR: Always clear bit9.
■
Notes on Using 16-bit Output Compare
●
Note on interruption
If "11
B
" is set in the compare control register lower-order (OCSL0, OCSL2, and OCSL4) IOP1, IOP0: bit7
and bit6, then interrupt requests are enabled (OCSL register IOE1, IOE0: bit6 and bit5 = 11
B
), control
cannot return from interrupt processing. Always clear the IOP0, IOP1 bits.
■
Cautions for Use of 16-bit Input Capture
●
Note on interruption
•
If "1" is set in the input capture-status control register's lower-order (PICSL01 and ICSL23) ICP3, ICP2,
ICP1, and ICP0 (bit7 and bit6 of both), then interrupt requests are enabled (PCICSL01 and ICSL23
registers' ICE3, ICE2, ICE1, and ICE0 (bit5 and bit4 of both) = 11
B
), control cannot return from
interrupt processing. Be sure to clear ICP3, ICP2, ICP1, and 0 (both bit7 and bit6).
•
If the level of the input capture pin (IC) changes between the time that ICP bit3, bit2, bit1, and bit0 are
set, and the interrupt routine is processed, then the ICP3 and ICP2 valid edge specification bits (ICSH
23 register's IEI3, IEI2: bit9 and bit8) will indicate the last edge detected.
Note:
There are no ICP1, ICP0 valid edge specification bits.
Summary of Contents for FR60Lite
Page 3: ......
Page 5: ......
Page 115: ...100 CHAPTER 3 CPU AND CONTROL UNITS ...
Page 127: ...112 CHAPTER 4 I O PORTS ...
Page 143: ...128 CHAPTER 5 INTERRUPT CONTROLLER ...
Page 155: ...140 CHAPTER 6 EXTERNAL INTERRUPT AND NMI CONTROLLER ...
Page 197: ...182 CHAPTER 9 PPG Programmable Pulse Generator ...
Page 337: ...322 CHAPTER 13 UART ...
Page 417: ...402 CHAPTER 16 DMAC DMA Controller ...
Page 445: ...430 CHAPTER 17 FLASH MEMORY ...
Page 451: ...436 CHAPTER 18 SERIAL PROGRAMMING CONNECTION ...
Page 493: ...478 APPENDIX F Precautions on Handling ...
Page 494: ...479 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 507: ...492 INDEX ...
Page 509: ......