CHAPTER 8 8-BIT TIMER H1
Preliminary User’s Manual U19014EJ1V0UD
197
(1) 8-bit timer H compare register 01 (CMP01)
This register can be read or written by an 8-bit memory manipulation instruction. This register is used in all of the
timer operation modes.
This register constantly compares the value set to CMP01 with the count value of 8-bit timer counter H1 and,
when the two values match, generates an interrupt request signal (INTTMH1) and inverts the output level of
TOH1.
Rewrite the value of CMP01 while the timer is stopped (TMHE1 = 0).
A reset signal generation sets this register to 00H.
Figure 8-2. Format of 8-Bit Timer H Compare Register 01 (CMP01)
Symbol
CMP01
Address: FF1AH (CMP01) After reset: 00H R/W
7
6
5
4
3
2
1
0
Caution CMP01 cannot be rewritten during timer count operation.
(2) 8-bit timer H compare register 11 (CMP11)
This register can be read or written by an 8-bit memory manipulation instruction. This register is used in the
PWM output mode and carrier generator mode.
In the PWM output mode, this register constantly compares the value set to CMP11 with the count value of 8-bit
timer counter H1 and, when the two values match, inverts the output level of TOH1. No interrupt request signal is
generated.
In the carrier generator mode, the CMP11 register always compares the value set to CMP11 with the count value
of 8-bit timer counter H1 and, when the two values match, generates an interrupt request signal (INTTMH1). At
the same time, the count value is cleared.
CMP11 can be rewritten during timer count operation.
If the value of CMP11 is rewritten while the timer is operating, the new value is latched and transferred to CMP11
when the count value of the timer matches the old value of CMP11, and then the value of CMP11 is changed to
the new value. If matching of the count value and the CMP11 value and writing a value to CMP11 conflict, the
value of CMP11 is not changed.
A reset signal generation sets this register to 00H.
Figure 8-3. Format of 8-Bit Timer H Compare Register 11 (CMP11)
Symbol
CMP11
Address: FF1BH (CMP11) After reset: 00H R/W
7
6
5
4
3
2
1
0
Caution In the PWM output mode and carrier generator mode, be sure to set CMP11 when starting the
timer count operation (TMHE1 = 1) after the timer count operation was stopped (TMHE1 = 0) (be
sure to set again even if setting the same value to CMP11).
electronic components distributor