176
CHAPTER 8 8/16-BIT CAPTURE TIMER/COUNTER
Note:
When using timer 1 in the 16-bit mode, write 111
B
to the TCS12, TCS11, and TCS10 bits and then
control timer 1 with TCR0.
Table 8.4-3 Explanation of Functions of Each Bit in Timer 1 Control Register (TCR1)
Bit name
Function
bit7
TIF1:
Compare match
detection flag bit
•
This bit is set to "1" when the counter value of timer 1 matches the value
(comparator data latch) set in the timer 1 data register (TDR1).
•
An interrupt request is output when this bit and the interrupt request enable bit
(T1IEN) are "1".
Note:
In the 16-bit mode, the TIF0 bit of TCR0 is valid. The TIF1 bit is unrelated to
operation.
bit6
TFCR1:
Compare match
detection flag clear bit
•
This bit is used to clear the compare match detection flag bit (TIF1). When this
bit is set to "1", the compare match detection flag is cleared. The flag is not
affected even if this bit is set to "0".
bit5
T1IEN:
Interrupt request enable
bit
•
This bit is used to allow and prohibit interrupt request output to the CPU.
•
An interrupt request is output when this bit and the interrupt request enable bit
(T0IEN) are "1".
bit4
Not used
•
This bit is undefined at read.
•
At write, this bit does not affect operation.
bit3
to
bit1
TCS12, TCS11, TCS10:
Clock source selection
bits
•
These bits are used to select the count clocks to be supplied to the counter.
•
Of seven internal clocks, select one.
•
When 111
B
is written to these bits, timer 1 operates as the 16-bit mode.
Note:
In the 16-bit mode, the TCS02, TCS01, and TCS00 bits are valid. The TCS12,
TCS11, and TCS10 bits are used to select the 16-bit mode only.
bit0
TSTR1:
Timer start bit
•
This bit is used to start and stop the counter.
•
When this bit is set to "1", the counter is cleared and incremented according to
the selected count clock. When this bit is set to "0", the counter stops its
operation.
•
In the 16-bit mode, only the TSTR0 bit can be used to start the timer. The
TSTR1 bit is unrelated to operation.
Содержание F2MC-8L F202RA
Страница 2: ......
Страница 4: ......
Страница 32: ...16 CHAPTER 1 OVERVIEW ...
Страница 90: ...74 CHAPTER 3 CPU ...
Страница 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Страница 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Страница 174: ...158 CHAPTER 7 8 BIT PWM TIMER User processing POPW A XCHW A T Restoring A and T POPW A RETI ENDS ...
Страница 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Страница 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Страница 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Страница 258: ...242 CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 EDGE PUSHW A User processing POPW A XCHW A T POPW A RETI ENDS END ...
Страница 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Страница 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Страница 371: ...355 CHAPTER 16 WILD REGISTER FUNCTION 16 3 5 Data Test Set Register WROR A test register Do not access this register ...
Страница 390: ...374 CHAPTER 17 FLASH MEMORY ...
Страница 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 434: ...418 INDEX ...
Страница 436: ......