
240
CHAPTER 9 MULTIFUNCTIONAL TIMER
9.4.1
Operation of 16-bit Free-run Timer
The 16-bit free-run timer starts counting from the counter value 0000 after releasing
reset. The counter value becomes the reference time of the 16-bit output compare and
the 16-bit input capture.
■
Explanation of 16-bit free-run timer operation
The counter value is cleared under the following conditions.
•
When an overflow occurs
•
When the value matches that of the compare clear register (compare register of output
compare Ch. 6) (A mode must be set.)
•
When the SCLR bit in the TCCS register is set to 1 during operation
•
When 0000
H
is written to TCDT while the timer is stopped
An interrupt occurs when an overflow occurs and the counter is cleared because the counter
value matches that of the compare clear register. (For a compare match interrupt, a mode must
be set.)
Figure 9.4-1 "Clearing the counter when an overflow occurs" shows an example of the output
waveform when an overflow occurs and the counter is cleared. Figure 9.4-2 "Clearing the
counter when the counter value matches that of the compare clear register" is an example of the
output waveform when the counter value matches that of the compare clear register, and the
counter is cleared.
Figure 9.4-1 Clearing the counter when an overflow occurs
7FFF
h
FFFF
h
BFFF
h
3FFF
h
0000
h
Counter value
Time
Reset
Interrupt
Summary of Contents for MB91150 Series
Page 1: ......
Page 2: ......
Page 3: ...FUJITSU LIMITED FR30 32 BIT MICROCONTROLLER MB91150 Series HARDWARE MANUAL ...
Page 4: ......
Page 10: ...vi ...
Page 112: ...96 CHAPTER 3 MEMORY SPACE CPU AND CONTROL UNIT ...
Page 178: ...162 CHAPTER 5 I O PORTS ...
Page 214: ...198 CHAPTER 7 16 BIT RELOAD TIMER ...
Page 240: ...224 CHAPTER 8 PPG TIMER ...
Page 310: ...294 CHAPTER 13 8 10 BIT A D CONVERTER ...
Page 318: ...302 CHAPTER 14 8 BIT D A CONVERTER ...
Page 362: ...346 CHAPTER 15 UART ...
Page 420: ...404 CHAPTER 19 PERIPHERAL STOP CONTROL ...
Page 428: ...412 CHAPTER 20 CALENDAR MACROS ...
Page 503: ...487 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 510: ...494 INDEX ...
Page 512: ......