811
Chapter 39 Programmable Pulse Generator
6.Setting
6. Setting
* For refer to the section indicated by the number.
*For the setting procedure, refer to the section indicated by the number.
*For the setting procedure, refer to the section indicated by the number.
Table 6-1 Settings Needed to Start the PPG
Setting Setting Registers
Setting
Procedure*
Period and duty value settings
PPG cycle settings (PCSR00-PCSR15)
PPG duty settings (PDUT00-PDUT15)
7.1
Enable PPG operation.
PPG control status (PCN00-PCN15)
7.2
Operation mode selection (PWM/one-shot) 7.3
Enable restart. 7.4
Count clock selection 7.5
PPG output mask selection 7.6
Trigger selection
Software
Internal trigger
External trigger
General Control 1 (GCN10, GCN11, GCN12,
GCN13)
7.7
Output polarity specification 7.8
PPG pin output setting Port functions (PFR16, PFR17) 7.9
Trigger generation (software trigger)
(Reload timer)
(GCN2.EN bit)
PPG Control Status (PCN00-PCN15)
7.10
See “Chapter 38 Reload Timer (Page
No.775)”.
General Control 2 (GCN20, GCN21, GCN22,
GCN23)
Table 6-2 Settings Needed to Stop the PPG
Setting Setting Registers
Setting
Procedure*
PPG stop bit setting PPG control status (PCN00-PCN15) 7.11
Table 6-3 Settings Needed to Clamp the Output Level
Setting Setting Registers
Setting
Procedure*
Output polarity specification
PPG control status (PCN00-PCN15)
7.8
PPG output mask selection 7.6
Period value = Duty value setting PPG duty settings (PDUT00-PDUT15) 7.6
Table 6-4 Settings Needed to Implement PPG Interrupts
Setting Setting Registers
Setting
Procedure*
PPG interrupt vector, PPG interrupt level setting
See “Chapter 24 Interrupt Control (Page
No.311)”.
7.12