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 CCS Technical Support

#FUSES NOOSCIO

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



Joined: 12 Nov 2012
Posts: 357
Location: South Africa

View user's profile Send private message

#FUSES NOOSCIO
PostPosted: Tue May 13, 2014 5:05 am     Reply with quote

dsPIC33EP32MC202
CCS 5.024

I am going crazy here.
If you include #FUSES NOOSCIO and use the FRC what do you get out at the OSC2 pin? The Fosc or Fcy?

I have setup the Fosc as 80Mhz, gone through the registers, which looks right to me.

But I am getting a frequency of 40MHz out of the OSC2 pin. Also by using the code below the Tcy are 50ns corresponding to 40MHz instead of the 25ns expected.
Code:

  while (TRUE) {
output_high(LED);
output_low(LED);
output_high(LED);
output_low(LED);
output_high(LED);
output_low(LED);
output_high(LED);
output_low(LED);
output_high(LED);
output_low(LED);


I have the following fuses
Code:

#FUSES NOWDT                    //No Watch Dog Timer
#FUSES NOIESO                   //Internal External Switch Over mode disabled
#FUSES NOOSCIO                    //OSC2 is general purpose output
#FUSES NOCKSNOFSM                 //Clock Switching is disabled, fail Safe clock monitor is disabled
#FUSES NOWINDIS                 //Watch Dog Timer in Window mode
#FUSES NOJTAG                   //JTAG disabled

#use delay(internal=80MHz)

I also tried using the
Code:

  setup_oscillator(OSC_INTERNAL,80000000);
with no difference in the outputs.

Regards
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