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

Need Help! Fuse problem

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








Need Help! Fuse problem
PostPosted: Sat Dec 27, 2008 12:04 pm     Reply with quote

Why this code does not work ?
Code:
#include <30F4013.h>
#fuses PR,HS,NOCKSFSM ,NOWDT
#FUSES NOWDT,NOPROTECT,NODEBUG,NOWRT,NOPROTECT,NOCOE,BORV42,BROWNOUT,NOPUT
#use delay(clock=20000000, RESTART_WDT)

void main() {
delay_ms(200);

   while (TRUE) {
     output_high(PIN_B0);
     delay_ms(200);
     output_low(PIN_B0);
     delay_ms(200);
   }
}

When I use internal RC oscillator (FRC) then LED on pin PB0 blinking.
I guess, the #fuses HS is not set property.
I use CCS compiler version 4.084
Sorry for my bad english.

Thank you
Guest








Re: Need Help! Fuse problem
PostPosted: Sat Dec 27, 2008 12:49 pm     Reply with quote

Anonymous wrote:
Why this code does not work ?
Code:
#include <30F4013.h>
#fuses PR,HS,NOCKSFSM ,NOWDT
#FUSES NOWDT,NOPROTECT,NODEBUG,NOWRT,NOPROTECT,NOCOE,BORV42,BROWNOUT,NOPUT
#use delay(clock=20000000, RESTART_WDT)

void main() {
delay_ms(200);

   while (TRUE) {
     output_high(PIN_B0);
     delay_ms(200);
     output_low(PIN_B0);
     delay_ms(200);
   }
}

When I use internal RC oscillator (FRC) then LED on pin PB0 blinking.
I guess, the #fuses HS is not set property.
I use CCS compiler version 4.084
Sorry for my bad english.

Thank you




PROBLEM SOLVED (micro short-circuit on PCB OSC2 pin and RC13)
Thank you
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