Example ) Set output PWM waveform of Po0 to Po3 terminal, shown below:
• PWM phase set D1=0,
• PWMEN=1,
• (PWM6, PWM 5, PWM 4, PWM 3, PWM 2, PWM 1, PWM 0)=(1,0,0,0,0,0,0)
Po0
1
PWM frequency (fPWM)
65 66
128
NJU6538
Po1
1
65 66
128
Po2
1
65 66
128
Po3
1
32-steps 32-steps 32-steps
65 66
(n) General output port / Key scan output select
This instruction assigns function of general purpose output port or key scan output to Po3/S0
terminals.
A0 D7 D6 D5 D4 D3 D2 D1 D0
0 1 0 0 1 0 0 0D
D 0: General output port
1: Keyscan output
Ver.2003-05-09
- 13 -