User’s Manual
311
B.1.13 Pulse Width Modulator Improvements
Several new features have been added to the pulse width modulator. First, a new PWM
interrupt can be set up to be requested on every PWM cycle, every other cycle, every
fourth cycle, or every eighth cycle. The setup for this interrupt is done in the PWL0R and
PWL1R registers, listed in Table B-25 and Table B-26.
Options are available to suppress the PWM output for seven-of-eight, three-of-four and
one-of-two iterations of the PWM counter The one-of-eight option works nicely with R/C
servos, which require a 1 ms to 2 ms pulse width and a 20 ms period. This option gives the
full resolution for the pulse width while still meeting the period requirements. The one-of-
four and one-of-two options can be used to create more virtual PWM channels using soft-
ware to multiplex the PWM outputs. There is a separate option to only generate an inter-
rupt during the active iteration of the PWM count. The timing is shown below.
Figure B-21. PWM Interrupt and Output Timing
iteration
1/4 out put
1/8 out put
1/2 out put
1/8 interrupt
1/4 interrupt
1/2 interrupt
0
1
2
3
4
5
6
7
Summary of Contents for Rabbit 2000
Page 2: ...Rabbit 3000 Microprocessor User s Manual 019 0108 040731 O ...
Page 9: ...Rabbit 3000 Microprocessor ...
Page 29: ...20 Rabbit 3000 Microprocessor ...
Page 64: ...User s Manual 55 5 PIN ASSIGNMENTS AND FUNCTIONS ...
Page 79: ...70 Rabbit 3000 Microprocessor ...
Page 80: ...User s Manual 71 6 RABBIT INTERNAL I O REGISTERS ...
Page 123: ...114 Rabbit 3000 Microprocessor ...
Page 137: ...128 Rabbit 3000 Microprocessor ...
Page 157: ...148 Rabbit 3000 Microprocessor ...
Page 207: ...198 Rabbit 3000 Microprocessor ...
Page 249: ...240 Rabbit 3000 Microprocessor ...
Page 255: ...246 Rabbit 3000 Microprocessor ...
Page 277: ...268 Rabbit 3000 Microprocessor ...
Page 343: ...334 Rabbit 3000 Microprocessor ...
Page 345: ......