|
|
View previous topic :: View next topic |
Author |
Message |
Guest
|
Need Help! Fuse problem |
Posted: Sat Dec 27, 2008 12:04 pm |
|
|
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 |
Posted: Sat Dec 27, 2008 12:49 pm |
|
|
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 |
|
|
|
|
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
|