NEC 78K0S/KA1+ User Manual page 101

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KA1+:
Table of Contents

Advertisement

Caution The measurable pulse width in this operation example is up to 1 cycle of the timer counter.
Figure 6-21. Control Register Settings for Measurement of Two Pulse Widths with Free-Running Counter
7
6
5
CRC00
0
0
0
ES110
ES100
ES010
PRM00
1
1
1
7
6
5
TMC00
0
0
0
Remark 0/1: Setting 0 or 1 allows another function to be used simultaneously with pulse width measurement.
See the description of the respective control registers for details.
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
(a) Capture/compare control register 00 (CRC00)
4
3
CRC002
CRC001
CRC000
0
0
1
0
(b) Prescaler mode register 00 (PRM00)
ES000
3
2
PRM001
PRM000
1
0
0
0/1
(c) 16-bit timer mode control register 00 (TMC00)
4
TMC003
TMC002
TMC001
OVF00
0
0
1
0/1
User's Manual U16898EJ3V0UD
1
CR000 used as capture register
Captures valid edge of TI010 pin to CR000.
CR010 used as capture register
0/1
Selects count clock (setting "11" is prohibited).
Specifies both edges for pulse width detection.
Specifies both edges for pulse width detection.
0
Free-running mode
101

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents