UPD78F0138 NEC, UPD78F0138 Datasheet - Page 171
UPD78F0138
Manufacturer Part Number
UPD78F0138
Description
(UPD78xxxx) 8-Bit Single-Chip Microcontrollers
Manufacturer
NEC
Datasheet
1.UPD78F0138.pdf
(558 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
UPD78F0138M1GK-9ET
Manufacturer:
NEC
Quantity:
115
Part Number:
UPD78F0138M5GB
Manufacturer:
NEC
Quantity:
20 000
- Current page: 171 of 558
- Download datasheet (5Mb)
(3) Pulse width measurement with free-running counter and two capture registers
Remark 0/1: Setting 0 or 1 allows another function to be used simultaneously with pulse width measurement.
When 16-bit timer counter 0n (TM0n) is operated in free-running mode, it is possible to measure the pulse width
of the signal input to the TI00n pin.
When the rising or falling edge specified by bits 4 and 5 (ES0n0 and ES0n1) of prescaler mode register 0n
(PRM0n) is input to the TI00n pin, the value of TM0n is taken into 16-bit timer capture/compare register 01n
(CR01n) and an interrupt request signal (INTTM01n) is set.
Also, when the inverse edge to that of the capture operation is input into CR01n, the value of TM0n is taken into
16-bit timer capture/compare register 00n (CR00n).
Sampling is performed using the count clock cycle selected by prescaler mode register 0n (PRM0n), and a
capture operation is only performed when a valid level of the TI00n pin is detected twice, thus eliminating noise
with a short pulse width.
Figure 6-27. Control Register Settings for Pulse Width Measurement with Free-Running Counter and
n = 0:
n = 0, 1:
TMC0n
CRC0n
PRM0n
See the description of the respective control registers for details.
Two Capture Registers (with Rising Edge Specified)
ES1n1
µ
µ
0/1
7
0
7
0
PD780131, 780132
PD780133, 780134, 78F0134, 780136, 780138, 78F0138
ES1n0
0/1
CHAPTER 6 16-BIT TIMER/EVENT COUNTERS 00 AND 01
6
0
6
0
(a) 16-bit timer mode control register 0n (TMC0n)
(b) Capture/compare control register 0n (CRC0n)
ES0n1
5
0
5
0
0
(c) Prescaler mode register 0n (PRM0n)
ES0n0
4
0
4
0
1
User’s Manual U16228EJ2V0UD
TMC0n3
0
3
0
3
0
TMC0n2
CRC0n2
1
1
2
0
TMC0n1
CRC0n1
PRM0n1
0/1
0/1
1
OVF0n
CRC0n0
PRM0n0
0/1
0
1
Free-running mode
Selects count clock (setting “11” is prohibited).
Specifies rising edge for pulse width detection.
Setting invalid (setting “10” is prohibited.)
CR00n used as capture register
Captures to CR00n at inverse edge
to valid edge of TI00n.
CR01n used as capture register
171
Related parts for UPD78F0138
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
16BIT MCU, 128K FLASH, 8K RAM, SMD
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
8BIT UC, 32K FLASH, 1KB RAM, LCD
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
8BIT MCU, 60K FLASH, 3KB RAM, CAN
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
8BIT MCU, 128K FLASH, 7K RAM, LQFP
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
8BIT MCU, 4K FLASH, 128B RAM, SMD
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
16/8 bit single-chip microcomputer
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
Dual audio power amp circuit
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
Dual comparator
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
MOS type composite field effect transistor
Manufacturer:
NEC
Datasheet: