CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

need help DsPIC33FJ clock out, or PWM out

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kutkm_ti



Joined: 19 Jul 2007
Posts: 9

View user's profile Send private message

need help DsPIC33FJ clock out, or PWM out
PostPosted: Wed Mar 02, 2011 3:00 am     Reply with quote

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.
xeratule



Joined: 22 Feb 2011
Posts: 1

View user's profile Send private message

PostPosted: Fri Mar 04, 2011 11:15 am     Reply with quote

Hi, kutkm_ti
you can't connect above 40mhz external crystal to dspics. you need to use pll to have your desired 67mhz.
_________________
Erhan KUŞ
R&D Engineer
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group