Author |
Message |
Topic: RS-232 works fine at 9600 and it fails at 19200 |
Marc
Replies: 5
Views: 5667
|
Forum: General CCS C Discussion Posted: Wed Apr 15, 2009 2:49 am Subject: RS-232 works fine at 9600 and it fails at 19200 |
I think that I have solved the issue!! Thanks PCM Programmer!!
This is what I have modified:
#use rs232(baud=19200, xmit=PIN_B6, rcv=PIN_B7, BITS=8, PARITY=N, DISABLE_INTS)
|
Topic: RS-232 works fine at 9600 and it fails at 19200 |
Marc
Replies: 5
Views: 5667
|
Forum: General CCS C Discussion Posted: Wed Apr 15, 2009 2:42 am Subject: RS-232 works fine at 9600 and it fails at 19200 |
Thank you all for the replies.
Here is more information:
PIC16F818 @ 4MHz
CCS Compiler 3.187 (IDE 3.42)
FUSES: XT WDT PROTECT PUT NOBROWNOUT MCLR NOLVP CPD NOWRT NODEBUG
The PIC only sends ... |
Topic: Accuracy problem using set_timer0 function |
Marc
Replies: 3
Views: 5634
|
Forum: General CCS C Discussion Posted: Mon Feb 11, 2008 11:26 am Subject: Accuracy problem using set_timer0 function |
Thank you!! I'll look for for the Neutone's codes. |
Topic: Accuracy problem using set_timer0 function |
Marc
Replies: 3
Views: 5634
|
Forum: General CCS C Discussion Posted: Mon Feb 11, 2008 10:58 am Subject: Accuracy problem using set_timer0 function |
I forgot to say that if I delete the set_timer0(156); line I get the correct time:
T=256*25000*(4/4ยท10^6)=6,4 seconds |
Topic: Accuracy problem using set_timer0 function |
Marc
Replies: 3
Views: 5634
|
Forum: General CCS C Discussion Posted: Mon Feb 11, 2008 10:55 am Subject: Accuracy problem using set_timer0 function |
Hello, I'm using the code below to get a 2,5 seconds account, but instead of 2,5s I get 3,40. I need nClocks as int16 to have enough accuracy in my program.
Where is the problem? The code seems goo ... |
|