kutkm_ti
Joined: 19 Jul 2007 Posts: 9
|
need help DsPIC33FJ clock out, or PWM out |
Posted: Wed Mar 02, 2011 3:00 am |
|
|
Need help DsPIC33FJ128GP802 clock out, or PWM out.
I'm new to DsPIC33F, now I modify SD card wav player from http://koonlab.com/UltimateSource.html
But I want to change the DsPIC to 28pin DsPIC33FJ128GP802, and use high speed external clock without PLL to eliminate jitter. (default is using 11.2896MHz with PLL.)
Now I want to use 67.7376MHz external clock to the DsPIC33FJ128GP802 OSC1,
Code: |
_FOSC(FCKSM_CSDCMD & OSCIOFNC_OFF & POSCMD_EC);
// Clock Switching and Fail Safe Clock Monitor is disabled
// OSC2 Pin Function: OSC2 is Clock Output
// Primary Oscillator Mode: EC, External
|
Is this correct setting?
What is the frequency for OSC2 Clock Output? can it be 33.8688MHz or 11.2896MHz?
If can not, can I use PWM to generate 33.8688MHz or 11.2896MHz?
How to set the PWM?
Thanks. |
|