000-0046140-111
Page 116 of 169
SLG46140
16.4 PWM Output Modes
The output (
OUT+
) duty cycle can be set to either count down to 0% or count up to 100% and each PWM is independently
controlled by the value of reg<614> (PWM0), reg<603> (PWM1), and reg<592> (PWM2). When both inputs are equal the output
signal (
EQ
) will go high. The outputs (
OUT-
and
OUT+
) are non-overlapping.
When reg<614/603/592> = “0”
•
PWM output duty cycle ranges from 0% to 99.61% and is determined by: Output Duty Cycle = IN+/256
•
(IN+ = 0: output duty cycle = 0/256 = 0%; IN+ = 255: output duty cycle = 255/256 = 99.61%)
•
Output signals are triggered by the rising or falling edge of the
CKOSC
signal (defined by bit reg <580:579>)
When reg<614/603/592> = “1”
•
PWM output duty cycle ranges from 0.39% to 100% and is determined by Output Duty Cycle = (IN+ + 1)/256
•
(IN+ = 0: output duty cycle = 1/256 = 0.39%; IN+ = 255: output duty cycle = 256/256 = 100%)
•
Output signals are triggered by the rising or falling edge of the
CKOSC
signal (defined by bit reg <580:579>)
When IN+ = IN- then EQ = “1”
16.5 DCMP0/PWM0 Functional Diagram
Figure 68. DCMP0/PWM0 Functional Diagram
DCMP0/PWM0
OUT+
IN-
PWM PD
Select
OUT-
To Connection Matrix Input <41>
To Connection Matrix Input <42>
reg <614>
CK OSC
reg <613>
IN+
00
01
10
11
FSM1<7:0>
reg <620:619>
ADC<7:0>
FSM0<7:0>
8 MSBs SPI
00
01
10
11
reg <628:621>
reg <644:637>
reg <636:629>
reg <652:645>
Connection Matrix
Output <77:76>
reg <618:617>
reg <653>
reg <612>
Connection Matrix Output <78>
Output Range Select
0 = 0% to 99.61%
1 = 0.39% to 100%
00
01
10
11
FSM0<7:0>
8 LSBs SPI
reg0
Содержание GreenPAK SLG46140
Страница 102: ...000 0046140 111 Page 101 of 169 SLG46140 14 1 Initial Polarity Operations Figure 54 DFF Polarity Operations ...
Страница 103: ...000 0046140 111 Page 102 of 169 SLG46140 Figure 55 DFF Polarity Operations with nReset ...
Страница 104: ...000 0046140 111 Page 103 of 169 SLG46140 Figure 56 DFF Polarity Operations with nSet ...