NEC 78K0/KD1 Series User Manual page 181

8-bit single-chip microcontrollers
Table of Contents

Advertisement

(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.
After reset: 00H
CMP0n
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.
After reset: 00H
CMP1n
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
CHAPTER 8 8-BIT TIMERS H0 AND H1
R/W
Address: FF18H, FF1AH
7
6
5
R/W
Address: FF19H, FF1BH
7
5
6
Preliminary User's Manual U16315EJ1V0UD
4
3
2
3
2
4
1
0
1
0
181

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents