EasyManua.ls Logo

Microchip Technology dsPIC30F - Page 303

Microchip Technology dsPIC30F
738 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
© 2004 Microchip Technology Inc. DS70061C-page 14-21
Section 14. Output Compare
Output
Compare
14
Figure 14-11: PWM Output Timing
Table 14-3: Example PWM Frequencies and Resolutions at 10 MIPs (F
OSC = 40 MHz)
Table 14-4: Example PWM Frequencies and Resolutions at 30 MIPs (F
OSC = 120 MHz)
PWM Frequency 19 Hz 153 Hz 305 Hz 2.44 kHz 9.77 kHz 78.1 kHz 313 kHz
Timer Prescaler Ratio 8 1 1 1 1 1 1
Period Register Value 0xFFFF 0xFFFF 0x7FFF 0x0FFF 0x03FF 0x007F 0x001F
Resolution (bits) 16 16 15 12 10 7 5
PWM Frequency 57 Hz 458 Hz 916 Hz 7.32 kHz 29.3 kHz 234 kHz 938 kHz
Timer Prescaler Ratio 8 1 1 1 1 1 1
Period Register Value 0xFFFF 0xFFFF 0x7FFF 0x0FFF 0x03FF 0x007F 0x001F
Resolution (bits) 16 16 15 12 10 7 5
0002
0000 0001 0002 00030005
TMR3
0001
1 Instruction Clock Period
0005
0002
PR3
OCxR
0005
OCx pin
0002
OCxRS
0000
00050003
0004
0004
0001
New Value Written to OCxRS
0001
New Duty Cycle Loaded Here
Note 1: An ‘x’ represents the output compare channel number. A ‘y’ represents the time base number.
2: OCxR = Compare Register, OCxRS = Secondary Compare Register.
TyIF is Set
OCxR = OCxRS
TyIF is Set
OCxR = OCxRS

Table of Contents

Other manuals for Microchip Technology dsPIC30F