upd78f0114hgb-8es-a Renesas Electronics Corporation., upd78f0114hgb-8es-a Datasheet - Page 138

no-image

upd78f0114hgb-8es-a

Manufacturer Part Number
upd78f0114hgb-8es-a
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD78F0114HGB-8ES-A
Manufacturer:
PANASONIC
Quantity:
720
6.4.2 PPG output operations
in Figure 6-13 allows operation as PPG (Programmable Pulse Generator) output.
that correspond to the count values preset in 16-bit timer capture/compare register 010 (CR010) and in 16-bit timer
capture/compare register 000 (CR000), respectively.
138
Setting 16-bit timer mode control register 00 (TMC00) and capture/compare control register 00 (CRC00) as shown
The basic operation setting procedure is as follows.
<1> Set the CRC00 register (see Figure 6-13 for the set value).
<2> Set any value to the CR000 register as the cycle.
<3> Set any value to the CR010 register as the duty factor.
<4> Set the TOC00 register (see Figure 6-13 for the set value).
<5> Set the count clock by using the PRM00 register.
<6> Set the TMC00 register to start the operation (see Figure 6-13 for the set value).
Caution To change the value of the duty factor (the value of the CR010 register) during operation, see
Remarks 1. For the setting of the TO00 pin, see 6.3 (5) Port mode register 0 (PM0).
In the PPG output operation, rectangular waves are output from the TO00 pin with the pulse width and the cycle
Setting
TMC00
CRC00
Caution 2 in Figure 6-15 PPG Output Operation Timing.
2. For how to enable the INTTM000 interrupt, see CHAPTER 15 INTERRUPT FUNCTIONS.
7
0
7
0
6
0
6
0
Figure 6-13. Control Register Settings for PPG Output Operation (1/2)
5
0
5
0
(a) 16-bit timer mode control register 00 (TMC00)
(b) Capture/compare control register 00 (CRC00)
4
0
4
0
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
TMC003
1
3
0
TMC002
CRC002
User’s Manual U16961EJ4V0UD
1
0
TMC001
CRC001 CRC000
0
OVF00
0
0
Clears and starts on match between TM00 and CR000.
CR000 used as compare register
CR010 used as compare register

Related parts for upd78f0114hgb-8es-a