upd78f0103hmca1-5a4-a Renesas Electronics Corporation., upd78f0103hmca1-5a4-a Datasheet - Page 121

no-image

upd78f0103hmca1-5a4-a

Manufacturer Part Number
upd78f0103hmca1-5a4-a
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
(1) Pulse width measurement with free-running counter and one capture register
Remark 0/1: Setting 0 or 1 allows another function to be used simultaneously with pulse width measurement.
When 16-bit timer counter 00 (TM00) is operated in free-running mode, and the edge specified by prescaler mode
register 00 (PRM00) is input to the TI000 pin, the value of TM00 is taken into 16-bit timer capture/compare
register 010 (CR010) and an external interrupt request signal (INTTM010) is set.
Specify both the rising and falling edges of the TI000 pin by using bits 4 and 5 (ES000 and ES001) of PRM00.
Sampling is performed using the count clock selected by PRM00, and a capture operation is only performed
when the valid level of the TI000 pin is detected twice, thus eliminating noise with a short pulse width.
Figure 6-17. Control Register Settings for Pulse Width Measurement with Free-Running Counter
See the description of the respective control registers for details.
PRM00
CRC00
TMC00
and One Capture Register (When TI000 and CR010 Are Used)
ES101
0/1
7
0
7
0
(a) 16-bit timer mode control register 00 (TMC00)
(b) Capture/compare control register 00 (CRC00)
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
ES100
0/1
6
0
(c) Prescaler mode register 00 (PRM00)
6
0
ES001
5
0
1
5
0
User’s Manual U16846EJ3V0UD
ES000
4
0
1
4
0
TMC003
3
0
3
0
0
CRC002
TMC002
1
2
0
1
CRC001
PRM001
TMC001
0/1
0/1
0/1
CRC000
PRM000
OVF00
0/1
0
0
CR000 used as compare register
CR010 used as capture register
Free-running mode
Selects count clock (setting “11” is prohibited).
Specifies both edges for pulse width detection.
Setting invalid (setting “10” is prohibited.)
121

Related parts for upd78f0103hmca1-5a4-a