Rabbit 6000 User’s Manual
digi.com
340
30. P
ULSE
W
IDTH
M
ODULATOR
30.1 Overview
The Pulse Width Modulator (PWM) consists of a 10-bit free running counter and four width registers. A
PWM output consists of a train of periodic pulses within a 1024-count frame with a duty cycle that varies
from 1/1024 to 1024/1024. Each PWM output is high for
n
+ 1 counts out of the 1024-clock count cycle
starting when the counter is 0, where
n
is the value held in the width register. Any changes to the width
registers will not take effect until the next counter rollover.
The PWM is clocked by the output of Timer A9 which is used to set the period. Timer A9 can be further
prescaled by cascading it off of Timer A12.
Each PWM output high time can optionally be spread throughout the cycle to reduce ripple on the exter-
nally filtered PWM output. The PWM outputs can be passed through a filter and used as a 10-bit D/A con-
verter. The outputs can also be used to directly drive devices such as motors or solenoids that have intrinsic
filtering.
The PWM outputs can trigger a PWM interrupt when the counter rolls over to zero on every PWM cycle,
every other cycle, every fourth cycle, or every eighth cycle. In addition, the PWM output can be sup-
pressed every other cycle, three out of every four cycles, or seven out of every eight cycles. These options
provide support for driving servos and to generate audio signals. The setup for this interrupt is done in the
PWL0R and PWL1R registers. The timing is shown below.
Содержание 6000
Страница 1: ...Rabbit 6000 Microprocessor User s Manual 90001108_J...
Страница 11: ...Rabbit 6000 User s Manual digi com 11 1 3 Block Diagram Figure 1 1 Rabbit 6000 Block Diagram...
Страница 43: ...Rabbit 6000 User s Manual digi com 43 4 1 1 Block Diagram...
Страница 57: ...Rabbit 6000 User s Manual digi com 57 5 1 1 Block Diagram...
Страница 88: ...Rabbit 6000 User s Manual digi com 88 7 2 Block Diagram...
Страница 115: ...Rabbit 6000 User s Manual digi com 115 11 1 1 Block Diagram...
Страница 127: ...Rabbit 6000 User s Manual digi com 127 12 1 1 Block Diagram...
Страница 138: ...Rabbit 6000 User s Manual digi com 138 13 1 1 Block Diagram...
Страница 154: ...Rabbit 6000 User s Manual digi com 154 15 1 1 Block Diagram...
Страница 163: ...Rabbit 6000 User s Manual digi com 163 16 1 1 Block Diagram...
Страница 170: ...Rabbit 6000 User s Manual digi com 170 17 1 1 Block Diagram...
Страница 177: ...Rabbit 6000 User s Manual digi com 177 18 1 1 Block Diagram...
Страница 186: ...Rabbit 6000 User s Manual digi com 186 19 1 1 Block Diagram...
Страница 230: ...Rabbit 6000 User s Manual digi com 230 22 2 Block Diagram...
Страница 234: ...Rabbit 6000 User s Manual digi com 234 Figure 22 3 Sample Slow A D Converter Circuit...
Страница 287: ...Rabbit 6000 User s Manual digi com 287 25 1 1 Block Diagram...
Страница 310: ...Rabbit 6000 User s Manual digi com 310 26 1 1 Block Diagram...
Страница 323: ...Rabbit 6000 User s Manual digi com 323 28 1 1 Block Diagram...
Страница 351: ...Rabbit 6000 User s Manual digi com 351 31 1 4 Block Diagram...
Страница 361: ...Rabbit 6000 User s Manual digi com 361 32 1 1 Block Diagram...
Страница 369: ...Rabbit 6000 User s Manual digi com 369 33 2 Block Diagram...
Страница 390: ...Rabbit 6000 User s Manual digi com 390 35 1 1 Block Diagram...
Страница 408: ...Rabbit 6000 User s Manual digi com 408...
Страница 410: ...Rabbit 6000 User s Manual digi com 410...
Страница 411: ...Rabbit 6000 User s Manual digi com 411...
Страница 420: ...Rabbit 6000 User s Manual digi com 420 Figure 37 1 Memory Read and Write Cycles...