NEC 78K0 User Manual page 139

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0:
Table of Contents

Advertisement

f
X
2
f
/2
X
8
f
/2
X
Noise
TI000/P00
eliminator
f
X
Count clock
TM00 count value
CR000 capture value
CR010 capture value
Cautions 1. CR000 cannot be rewritten during TM00 operation.
2. In the PPG output operation, change the pulse width (rewrite CR010) during TM00 operation
using the following procedure.
<1> Disable the timer output inversion operation by match of TM00 and CR010 (TOC004 = 0)
<2> Disable the INTTM010 interrupt (TMMK010 = 1)
<3> Rewrite CR010
<4> Wait for 1 cycle of the TM00 count clock
<5> Enable the timer output inversion operation by match of TM00 and CR010 (TOC004 = 1)
<6> Clear the interrupt request flag of INTTM010 (TMIF010 = 0)
<7> Enable the INTTM010 interrupt (TMMK010 = 0)
Remark 0000H ≤ M < N ≤ FFFFH
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
Figure 6-14. Configuration Diagram of PPG Output
16-bit timer capture/compare
register 000 (CR000)
16-bit timer counter 00
(TM00)
16-bit timer capture/compare
register 010 (CR010)
Figure 6-15. PPG Output Operation Timing
t
0000H
0001H
N
Clear
TO00
Pulse width: (M + 1) × t
1 cycle: (N + 1) × t
User's Manual U16227EJ2V0UD
Clear
circuit
M − 1
N − 1
M
N
Clear
N
M
TO00/TI010/P01
0000H 0001H
139

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

78kc1

Table of Contents