CHAPTER 8 8-BIT TIMERS H0 AND H1
Preliminary User’s Manual U16315EJ1V0UD
181
(1) 8-bit timer H compare register 0n (CMP0n)
This register can be read/written by an 8-bit memory manipulation instruction.
RESET input clears this register to 00H.
CMP0n
After reset: 00H R/W Address: FF18H, FF1AH
7
6
5
4
3
2
1
0
Caution
This register cannot be rewritten during timer count operation.
(2) 8-bit timer H compare register 1n (CMP1n)
This register can be read/written by an 8-bit memory manipulation instruction.
RESET input clears this register to 00H.
CMP1n
After reset: 00H R/W Address: FF19H, FF1BH
7
6
5
4
3
2
1
0
The CMP1n register can be rewritten during timer count operation.
In the carrier generator mode, an interrupt request signal (INTTMHn) is generated if the values of the timer counter
and CMP1n register match after setting the CMP1n register. The timer counter value is cleared at the same time. If
the CMP1n register value is rewritten during timer operation, reloading is performed at the timing at which the counter
value and CMP1n register value match. If the transfer timing and writing from CPU to CMP1n register conflict,
transfer is not performed.
Caution
In the PWM pulse generator mode and carrier generator mode, be sure to set the CMP1n register
when starting the timer count operation (TMHEn = 1) after the timer count operation was stopped
(TMHEn = 0) (be sure to set again even if setting the same value to the CMP1n register).
Remark
n = 0, 1