Author |
Message |
Topic: WDT not working |
Graham Webb
Replies: 18
Views: 20733
|
Forum: General CCS C Discussion Posted: Tue Aug 10, 2010 12:07 pm Subject: WDT not working |
Thanks PCM Programmer, that solved it! |
Topic: WDT not working |
Graham Webb
Replies: 18
Views: 20733
|
Forum: General CCS C Discussion Posted: Tue Aug 10, 2010 3:40 am Subject: WDT not working |
Whatever I do the WDT configuration bit reverts to off, very odd. Any ideas? |
Topic: WDT not working |
Graham Webb
Replies: 18
Views: 20733
|
Forum: General CCS C Discussion Posted: Tue Aug 10, 2010 3:23 am Subject: WDT not working |
Was this resolved because I am having the same problem with the following code:
#include <C:\Program files\PICC\devices\16f876a.H>
#include <C:\Program files\PICC\drivers\stdio.h ... |
Topic: printf not working with for loop |
Graham Webb
Replies: 7
Views: 8707
|
Forum: General CCS C Discussion Posted: Thu May 20, 2010 8:58 am Subject: printf not working with for loop |
Yes both. |
Topic: printf not working with for loop |
Graham Webb
Replies: 7
Views: 8707
|
Forum: General CCS C Discussion Posted: Thu May 20, 2010 8:41 am Subject: printf not working with for loop |
That was a fragment, this is the complete code. The problem still exists :-(
Not very tidy, but I think it's all there ..
#include <C:\Program files\PICC\devices\16f876a.H>
#in ... |
Topic: printf not working with for loop |
Graham Webb
Replies: 7
Views: 8707
|
Forum: General CCS C Discussion Posted: Thu May 20, 2010 8:26 am Subject: printf not working with for loop |
I didn't have data direction registers! But how that should be altered with for loops defeats me. |
Topic: printf not working with for loop |
Graham Webb
Replies: 7
Views: 8707
|
Forum: General CCS C Discussion Posted: Thu May 20, 2010 8:12 am Subject: printf not working with for loop |
When I add for loops to my code ALL my printf functions cease to function. Even the printf functions that come before the for loops. But the rest of the code works fine. If I remove the for loops, the ... |
Topic: delayus() |
Graham Webb
Replies: 4
Views: 4302
|
Forum: General CCS C Discussion Posted: Thu May 20, 2010 3:00 am Subject: delayus() |
Thanks all. I believe it was an issue with the version number. I resorted to putting a 1us delay in a for loop, but all my printf statements stopped working with the for loop in play, so I will try th ... |
Topic: delayus() |
Graham Webb
Replies: 4
Views: 4302
|
Forum: General CCS C Discussion Posted: Tue May 18, 2010 4:51 am Subject: delayus() |
I am using a PIC16F876A with a 20MHz oscillator and trying to get a controllable pulse with using the delayus() function.
printf("\t %lx\n\n\r", pulse_width);
output_high( ... |
|