177
CHAPTER 9 PPG (Programmable Pulse Generator)
9.4
Operation Explanation
PPG has 16 channels for the 8-bit length PPG unit and can operate four modes in total
by combining: independent mode, 8-bit pre 8-bit PPG mode, 16-bit PPG 1
channel mode, and 16-bit pre 16-bit PPG mode.
■
Overview of Operation
Each of 8-bit length PPG units has two 8-bit-length reload registers for the "L" and "H" sides (PRLL,
PRLH). The value written to this register is reloaded into "L"/"H" sides of 8-bit down counter (PCNT)
alternately, counted down based on the count clock, and inverted a pin output (PPG) at reloading when a
counter borrow occurs. With this operation, the pin output (PPG) becomes a pulse output, which has
"L"/"H" width corresponding to the value of reload register.
The operation starts/restarts when the bit of the register is written.
The relationship between the reload operation and the pulse output is shown below.
n=0 to 15
Also, if the bit7: PIEn of PPGCn register is set to "1", an interrupt request outputs by borrow to the counter
value from "00
H
" to "FF
H
" (borrow from "0000
H
" to "FFFF
H
" in 16-bit PPG mode).
■
Operating Mode
There are four operation modes: independent mode, 8-bit pre 8-bit PPG mode, 16-bit PPG 1 channel
mode, and 16-bit pre 16-bit PPG mode.
•
In the independent mode, a channel can operate as 8-bit PPG independently. The PPG output of ch(n) is
connected to PPG(n) pin. (n = 0 to 15)
•
The 8-bit pre 8-bit PPG mode makes 1 channel operate as an 8-bit prescaler, counts by its
borrow output, and then allows the 8-bit PPG waveform in any cycle to be outputted. For example, the
prescaler output of ch1 is connected to the PPG1 pin; the PPG output of ch0 is connected to the PPG0
pin.
•
In the 16-bit PPG 1 channel mode, two channels are combined, and the combined channel operates as
16-bit PPG. For example, if ch0 and ch1 are combined, 16-bit PPG outputs are connected to both PPG0
pin and PPG1 pin.
Reload Operation
Terminal Output Change
PRLH
→
PCNT
PPGn [0
→
1]
PRLL
→
PCNT
PPGn [1
→
0]
Summary of Contents for FR60Lite
Page 3: ......
Page 5: ......
Page 115: ...100 CHAPTER 3 CPU AND CONTROL UNITS ...
Page 127: ...112 CHAPTER 4 I O PORTS ...
Page 143: ...128 CHAPTER 5 INTERRUPT CONTROLLER ...
Page 155: ...140 CHAPTER 6 EXTERNAL INTERRUPT AND NMI CONTROLLER ...
Page 197: ...182 CHAPTER 9 PPG Programmable Pulse Generator ...
Page 337: ...322 CHAPTER 13 UART ...
Page 417: ...402 CHAPTER 16 DMAC DMA Controller ...
Page 445: ...430 CHAPTER 17 FLASH MEMORY ...
Page 451: ...436 CHAPTER 18 SERIAL PROGRAMMING CONNECTION ...
Page 493: ...478 APPENDIX F Precautions on Handling ...
Page 494: ...479 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 507: ...492 INDEX ...
Page 509: ......