UPD78F0138 NEC, UPD78F0138 Datasheet - Page 198
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: 198 of 558
- Download datasheet (5Mb)
7.4.2 Operation as external event counter
(TM5n).
Either the rising or falling edge can be selected.
and an interrupt request signal (INTTM5n) is generated.
198
The external event counter counts the number of external clock pulses to be input to TI5n by 8-bit timer counter 5n
TM5n is incremented each time the valid edge specified by timer clock selection register 5n (TCL5n) is input.
When the TM5n count value matches the value of 8-bit timer compare register 5n (CR5n), TM5n is cleared to 0
Whenever the TM5n value matches the value of CR5n, INTTM5n is generated.
<1> Set each register.
<2> When TCE5n = 1 is set, the number of pulses input from TI5n is counted.
<3> When the values of TM5n and CR5n match, INTTM5n is generated (TM5n is cleared to 00H).
<4> After these settings, INTTM5n is generated each time the values of TM5n and CR5n match.
Note 8-bit timer/event counter 50: PM17
Setting
TM5n count value
• Set the port mode register (PM17 or PM33)
• TCL5n: Select TI5n input edge.
• CR5n:
• TMC5n: Stop the count operation, select the mode in which clear & start occurs on match of TM5n and
Remark N = 00H to FFH
8-bit timer/event counter 51: PM33
INTTM5n
Figure 7-12. External Event Counter Operation Timing (with Rising Edge Specified)
CR5n
TI5n
n = 0, 1
TI5n falling edge → TCL5n = 00H
TI5n rising edge → TCL5n = 01H
Compare value
CR5n, disable the timer F/F inversion operation, disable timer output.
(TMC5n = 0000××00B × = Don’t care)
Count start
00
CHAPTER 7 8-BIT TIMER/EVENT COUNTERS 50 AND 51
01
02
03
User’s Manual U16228EJ2V0UD
04
Note
05
to 1.
N – 1
N
N
00
01
02
03
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: