APPLICATION
2.4 PWM
2-54
3802 GROUP USER’S MANUAL
2.4.2 Related registers
PWM control register
b7 b6 b5 b4 b3 b2 b1 b0
B
0
At reset
R W
0
1
2
3
4
5
6
7
0
0
0
0
0
0
0
PWM control register (PWMCON) [Address:2B
16
]
Function
Name
Nothing is arranged for these bits. These are write disabled bits.
When these bits are read out, the contents are "0".
PWM function enable bit
0 : PWM disabled
1 : PWM enabled
0 : f(X
IN
)
1 : f(X
IN
)/2
Count source selection bit
Fig. 2.4.2 Structure of PWM control register
PWM prescaler
b7 b6 b5 b4 b3 b2 b1 b0
B
0
Function
At reset
R W
1
2
3
4
5
6
7
PWM prescaler (PREPWM) [Address : 2C
16
]
PWM cycle is set.
The values set in this register is written to both the PWM
prescaler pre-latch and the PWM prescaler latch at the same
time.
When data is written during outputting PWM, the pulses
corresponding to the changed contents are output starting
with
the next cycle.
When this register is read out, the content of the PWM prescaler
latch is read out.
G
G
G
G
Fig. 2.4.3 Structure of PWM prescaler