Author |
Message |
Topic: Delay_ms not stopping my code |
anthory
Replies: 15
Views: 19090
|
Forum: General CCS C Discussion Posted: Fri Oct 25, 2013 9:35 am Subject: reply |
Posted: Thu Oct 24, 2013 3:58 pm Post subject:
--------------------------------------------------------------------------------
This is the first mention of trying to control a light - if ... |
Topic: Delay_ms not stopping my code |
anthory
Replies: 15
Views: 19090
|
Forum: General CCS C Discussion Posted: Thu Oct 24, 2013 2:46 pm Subject: reply |
Get your brain round a simple thing. Your _hardware_ has to match what you want to run.
If you want to run a crystal at 16MHz, you need to start with the crystal. Then HS, and clock=16MHz. LP, is ... |
Topic: Delay_ms not stopping my code |
anthory
Replies: 15
Views: 19090
|
Forum: General CCS C Discussion Posted: Thu Oct 24, 2013 8:55 am Subject: reply |
#fuses LP is not an alternative to #use delay(clock= 16M)
You have to specify both the type of oscillator as TTelmah has shown, and also the frequency with #use delay.
So if i specify #fuses ... |
Topic: Delay_ms not stopping my code |
anthory
Replies: 15
Views: 19090
|
Forum: General CCS C Discussion Posted: Thu Oct 24, 2013 7:57 am Subject: Delay_ms not stopping my code |
Let's take things very slowly:
1) As PCM programmer has explained, the compiler version number is in the very first line of the .lst file generated when you compile. Find it, and post it. There ar ... |
Topic: Delay_ms not stopping my code |
anthory
Replies: 15
Views: 19090
|
Forum: General CCS C Discussion Posted: Wed Oct 23, 2013 11:59 am Subject: Delay_ms not stopping my code |
I added in the #FUSES LP and tried #FUSES HS neither it didnt work. It is still getting hung up on the delay_ms statements.
Also the link you posted brings me to what the software versions fixed ... |
Topic: Delay_ms not stopping my code |
anthory
Replies: 15
Views: 19090
|
Forum: General CCS C Discussion Posted: Wed Oct 23, 2013 10:18 am Subject: Delay_ms not stopping my code |
Hello,
First off sorry for not posting my version of compiler but I can't seem to find where it tell me what version I have. Where is it located at?
I'm programming a pic18f46k80, I also don't ... |
|