UPD78F0138 NEC, UPD78F0138 Datasheet - Page 163

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.2 PPG output operations
in Figure 6-18 allows operation as PPG (Programmable Pulse Generator) output.
that correspond to the count values preset in 16-bit timer capture/compare register 01n (CR01n) and in 16-bit timer
capture/compare register 00n (CR00n), respectively.
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-18 for the set value).
<2> Set any value to the CR00n register as the cycle.
<3> Set any value to the CR01n register as the duty factor.
<4> Set the TOC0n register (see Figure 6-18 for the set value).
<5> Set the count clock by using the PRM0n register.
<6> Set the TMC0n register to start the operation (see Figure 6-18 for the set value).
Caution To change the value of the duty factor (the value of the CR01n register) during operation, see
Remarks 1. For the setting of the TO0n pin, see 6.3 (5) Port mode register 0 (PM0).
In the PPG output operation, rectangular waves are output from the TO0n pin with the pulse width and the cycle
Setting
Remark n = 0:
Caution 2 in Figure 6-20 PPG Output Operation Timing.
2. For how to enable the INTTM00n interrupt, see CHAPTER 17 INTERRUPT FUNCTIONS.
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
163

Related parts for UPD78F0138