ST7262
PWM AUTO-RELOAD TIMER (Cont’d)
PWM CONTROL REGISTER (PWMCR)
Read /Write
Reset Value: 0000 0000 (00h)
7
0
0
0 OE1 OE0 0
0 OP1 OP0
Bit 7:6 = Reserved.
Bit 5:4 = OE[1:0] PWM Output Enable
These bits are set and cleared by software. They
enable or disable the PWM output channels inde-
pendently acting on the corresponding I/O pin.
0: PWM output disabled.
1: PWM output enabled.
Bit 3:2 = Reserved.
Bit 1:0 = OP[1:0] PWM Output Polarity
These bits are set and cleared by software. They
independently select the polarity of the two PWM
output signals.
PWMx output level
Counter <= OCRx
1
0
Counter > OCRx
0
1
OPx
0
1
Notes:
– When an OPx bit is modified, the PWMx output
signal polarity is immediately reversed.
– If DCRx=FFh then the output level is always 0.
– If DCRx=00h then the output level is always 1.
DUTY CYCLE REGISTERS (DCRx)
Read /Write
Reset Value: 0000 0000 (00h)
7
0
DC7 DC6 DC5 DC4 DC3 DC2 DC1 DC0
Bit 7:0 = DC[7:0] Duty Cycle Data
These bits are set and cleared by software.
A DCRx register is associated with the OCRx reg-
ister of each PWM channel to determine the sec-
ond edge location of the PWM signal (the first
edge location is common to all channels and given
by the ARR register). These DCR registers allow
the duty cycle to be set independently for each
PWM channel.
49/133