
298
CHAPTER 14 MULTI-FUNCTIONAL TIMER
Table 14.4-2 Timer control status register (TCCSL)
Bit name
Function
bit7
Unused bit
•
The read value is indeterminate.
•
Writing to this bit has no effect on the operation.
bit6
BFE:
Compare clear
buffer enable bit
•
This bit is used to enable compare clear buffer.
•
Writing “0” disables compare clear buffer. Directly write in compare clear register is
possible.
•
Writing “1” enables compare clear buffer. Data written in compare clear buffer register
will be held and transfer to compare clear register when the count value of 16-bit free-
run timer is detected as zero.
bit5
STOP:
Timer enable bit
•
This bit is used to stop/start the counting of the 16-bit free-run timer.
•
Writing “1” stops the counting of the 16-bit free-run timer.
•
Writing “0” starts the counting of the 16-bit free-run timer.
(Note)
When the 16-bit free-run timer is stopped, the output compare operation will also be
stopped.
bit4
MODE:
Timer counting
mode bit
•
This bit is used to select the count mode of the 16-bit free-run timer.
•
Writing “0” selects up-count mode. Timer counts up until counter value matches with
compare clear register and reset to “0000
H
” and then counts up again.
•
Writing “1” selects up-down count mode.
In up-down count mode, whenever zero in the timer data register is detected, the timer
counting direction will always be reseted to up-counting.
The timer will reverse its counting direction whenever the timer value matches with
compare clear register.
•
This bit can be written at any time whether the timer is operating or stopped. The value
written to this bit is buffered and the count mode will be changed when timer value is
“0000
H
”.
(Note)
Because the timer will reverse its counting direction when compare-match is detected in
up-down count mode (MODE = 1), it should be careful to set the compare clear register
and timer data register when the timer is being counted down.
bit3
SCLR:
Timer clear bit
•
This bit is used to initialize the 16-bit free-run timer to “0000
H
”.
•
Writing “1” initializes 16-bit free-run timer to “0000
H
” at the next count clock.
•
Writing “0” will clear the bit SCLR if it is “1”.
•
Read value is always “0”.
(Note)
•
This bit cannot be used to initialize the timer when timer stops (STOP=1). Writing
“0000
H
” to timer data register (TCDT) can initialize the timer.
•
Writing “1” will not generate zero detect interrupt
.
•
This bit will be cleared by hardware after the timer is initialized to “0000”. If “0” is written to
the bit before timer initialization, the bit is cleared and the timer did not initi
•
Even after "1" is written, the counter value is not initialized if "0" is written to this bit
before the next count clock.
bit2
to
bit0
CLK2 to CLK0:
Clock frequency
selection bit
•
This bit is used to select count clock for the 16-bit free-run timer.
•
The count clock is changed immediately after these bits are set. So change them while
the output compare and input capture units are stopped.
Содержание MB90460 Series
Страница 1: ...The following document contains information on Cypress products ...
Страница 3: ......
Страница 5: ......
Страница 9: ...iv ...
Страница 41: ...22 CHAPTER 1 OVERVIEW ...
Страница 45: ...26 CHAPTER 2 NOTES ON HANDLING DEVICES ...
Страница 83: ...64 CHAPTER 3 CPU ...
Страница 95: ...76 CHAPTER 4 RESET ...
Страница 107: ...88 CHAPTER 5 CLOCK ...
Страница 131: ...112 CHAPTER 6 LOW POWER CONSUMPTION MODE ...
Страница 175: ...156 CHAPTER 7 INTERRUPT ...
Страница 181: ...162 CHAPTER 8 MODE SETTING ...
Страница 223: ...204 CHAPTER 9 I O PORT ...
Страница 237: ...218 CHAPTER 10 TIME BASE TIMER ...
Страница 247: ...228 CHAPTER 11 WATCHDOG TIMER ...
Страница 275: ...256 CHAPTER 12 16 BIT RELOAD TIMER ...
Страница 373: ...354 CHAPTER 14 MULTI FUNCTIONAL TIMER ...
Страница 485: ...466 CHAPTER 16 PWC Timer ...
Страница 531: ...512 CHAPTER 17 UART ...
Страница 559: ...540 CHAPTER 19 DELAYED INTERRUPT GENERATOR MODULE ...
Страница 589: ...570 CHAPTER 20 8 10 BIT A D CONVERTER ...
Страница 601: ...582 CHAPTER 21 ROM CORRECTION FUNCTION ...
Страница 633: ...614 CHAPTER 23 512K 1024K BIT FLASH MEMORY ...
Страница 645: ...626 CHAPTER 24 EXAMPLE OF F2 MC 16LX MB90F462 F462A F463A CONNECTION FOR SERIAL WRITING ...
Страница 715: ...696 APPENDIX ...
Страница 716: ...697 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 739: ......