UPD78F0138 NEC, UPD78F0138 Datasheet - Page 160

no-image

UPD78F0138

Manufacturer Part Number
UPD78F0138
Description
(UPD78xxxx) 8-Bit Single-Chip Microcontrollers
Manufacturer
NEC
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD78F0138M1GK-9ET
Manufacturer:
NEC
Quantity:
115
Part Number:
UPD78F0138M5GB
Manufacturer:
NEC
Quantity:
20 000
6.4 Operation of 16-Bit Timer/Event Counters 00 and 01
6.4.1 Interval timer operation
in Figure 6-15 allows operation as an interval timer.
00n (CR00n) as the interval.
the TM0n value cleared to 0 and the interrupt request signal (INTTM00n) is generated.
mode register 0n (PRM0n).
160
Setting 16-bit timer mode control register 0n (TMC0n) and capture/compare control register 0n (CRC0n) as shown
The basic operation setting procedure is as follows.
<1> Set the CRC0n register (see Figure 6-15 for the set value).
<2> Set any value to the CR00n register.
<3> Set the count clock by using the PRM0n register.
<4> Set the TMC0n register to start the operation (see Figure 6-15 for the set value).
Caution CR00n cannot be rewritten during TM0n operation.
Remark For how to enable the INTTM00n interrupt, see CHAPTER 17 INTERRUPT FUNCTIONS.
Interrupt requests are generated repeatedly using the count value preset in 16-bit timer capture/compare register
When the count value of 16-bit timer counter 0n (TM0n) matches the value set in CR00n, counting continues with
The count clock of 16-bit timer/event counter 0n can be selected with bits 0 and 1 (PRM0n0, PRM0n1) of prescaler
Setting
Remark n = 0:
n = 0, 1:
µ
µ
PD780131, 780132
PD780133, 780134, 78F0134, 780136, 780138, 78F0138
CHAPTER 6 16-BIT TIMER/EVENT COUNTERS 00 AND 01
User’s Manual U16228EJ2V0UD

Related parts for UPD78F0138