8 how do i invert the output polarity, 9 how do i program a pin as a ppg output pin – FUJITSU MB91460 SERIES FR60 User Manual
Page 833

817
Chapter 39 Programmable Pulse Generator
7.Q & A
7.8 How do I invert the output polarity?
Output polarity specification
The polarity in the normal state can be specified as follows:
Use the PPG Output Polarity Specification bit (PCN.OSEL) to set.
(“Normal state” means the state in which pulse output is not executed.)
(See “
”.)
7.9 How do I program a pin as a PPG output pin?
-> PPG pin output setting
Software programming allows ports to be switched to PPG pin output.
Output Level in Normal State
PPG Output Polarity Specification Bit (OSEL)
To enable “L” level output (normal polarity)
Set “0”.
To enable “H” level output (inverted polarity)
Set “1”.
Pin
Control Bit Location
PPG0 pin
Port Function register PFR17.0 = ‘1’
PPG0 Output specification bit (PPG0)
PPG1 pin
Port Function register PFR17.1 = ‘1’
PPG1 Output specification bit (PPG1)
PPG2 pin
Port Function register PFR17.2 = ‘1’
PPG2 Output specification bit (PPG2)
PPG3 pin
Port Function register PFR17.3 = ‘1’
PPG3 Output specification bit (PPG3)
PPG4 pin
Port Function register PFR17.4 = ‘1’
PPG4 Output specification bit (PPG4)
PPG5 pin
Port Function register PFR17.5 = ‘1’
PPG5 Output specification bit (PPG5)
PPG6 pin
Port Function register PFR17.6 = ‘1’
PPG6 Output specification bit (PPG6)
PPG7 pin
Port Function register PFR17.7 = ‘1’
PPG7 Output specification bit (PPG7)
PPG8 pin
Port Function register PFR16.0 = ‘1’
PPG8 Output specification bit (PPG8)
PPG9 pin
Port Function register PFR16.1 = ‘1’
PPG9 Output specification bit (PPG9)
PPG10 pin
Port Function register PFR16.2 = ‘1’
PPG10 Output specification bit (PPG10)
PPG11 pin
Port Function register PFR16.3 = ‘1’
PPG11 Output specification bit (PPG11)
PPG12 pin
Port Function register PFR16.4 = ‘1’
PPG12 Output specification bit (PPG12)
PPG13 pin
Port Function register PFR16.5 = ‘1’
PPG13 Output specification bit (PPG13)
PPG14 pin
Port Function register PFR16.6 = ‘1’
PPG14 Output specification bit (PPG14)
PPG15 pin
Port Function register PFR16.7 = ‘1’
PPG15 Output specification bit (PPG15)