ml670100 Oki Semiconductor, ml670100 Datasheet - Page 107

no-image

ml670100

Manufacturer Part Number
ml670100
Description
Ml670100 Is A High-performance 32-bit Microcontroller
Manufacturer
Oki Semiconductor
Datasheet
7.3.2
7.3.3
Starting value
(from TMnR)
0xFFFF
0x0000
FTMOVn
Setting the MOD field in Timer Control Register n (TMnCON, n=0 - 5) to 2’b00 (ART)
configures timer channel n in auto-reload timer (ART) mode.
When Timer Counter n (TMnC, n=0 - 5) overflows, the timer channel automatically copies the
contents of Timer Register n (TMnR, n=0 - 5) into TMnC and generates an interrupt request
(FTMOVn, n=0 - 5).
Auto-reload timer (ART) mode does not change the level at Timer Output n pin (TMOUT[n],
n=0 - 5).
Setting the MOD field in Timer Control Register n (TMnCON, n=0 - 5) to 2’b01 (CMO)
configures timer channel n in compare out (CMO) mode.
When Timer Counter n (TMnC, n=0 - 5) matches Timer General-Purpose Register n (TMnGR,
n=0 - 5), the timer channel sets the output level for Timer Output n pin (TMOUT[n], n=0 - 5)
according to the IOLV field in Timer I/O Level Register n (TMnIOLV, n=0 - 5).
2’b00: A match between TMnC and TMnGR sets the output level to "0."
2’b01: A match between TMnC and TMnGR sets the output level to "1."
2’b10: A match between TMnC and TMnGR reverses the output level.
Counter overflow and matches both generate interrupt requests - FTMOVn and EVENTn (n=0
- 5), respectively.
Figure 7.12 illustrates compare out (CMO) operation.
Auto-Reload Timer (ART) Mode
Figure 7.11 illustrates auto-reload timer (ART) operation.
Compare Out (CMO) Mode
TMnC Contents
Figure 7.11 : Auto-Reload Timer (ART) Operation
7-15

Related parts for ml670100