Author |
Message |
Topic: UART Crashes |
sgarc
Replies: 12
Views: 15513
|
Forum: General CCS C Discussion Posted: Mon Nov 17, 2008 6:56 pm Subject: UART Crashes |
Ok so after some trial and error I managed to find a work around for the problem. I just reset the UART before every output and it works consistently.
// disable the uart
setup_uart(0);
DE ... |
Topic: UART Crashes |
sgarc
Replies: 12
Views: 15513
|
Forum: General CCS C Discussion Posted: Mon Nov 03, 2008 2:12 pm Subject: UART Crashes |
Yes i am using a MAX232 chip and i measure the 5V(tx) and -10V(rx) after the MAX232 chip. These measurements were not made on the PIC pins. |
Topic: UART Crashes |
sgarc
Replies: 12
Views: 15513
|
Forum: General CCS C Discussion Posted: Mon Nov 03, 2008 1:35 pm Subject: UART Crashes |
oh i also forgot to mention that when the UART crashes the device does not reset it just stays in locked state and also the voltage on the RX line drops to -10V. During normal operation both the TX a ... |
Topic: UART Crashes |
sgarc
Replies: 12
Views: 15513
|
Forum: General CCS C Discussion Posted: Mon Nov 03, 2008 1:28 pm Subject: UART Crashes |
Ok i read the first two posts. I dont have the Watch Dog Timer enabled, also i use NOPUT. One thing to note about my problem is that if i remove the code that outputs to the RS232 every three second ... |
Topic: UART Crashes |
sgarc
Replies: 12
Views: 15513
|
Forum: General CCS C Discussion Posted: Mon Nov 03, 2008 1:09 pm Subject: UART Crashes |
Yes i do have the NOXINST and NOLVP fuses set |
Topic: UART Crashes |
sgarc
Replies: 12
Views: 15513
|
Forum: General CCS C Discussion Posted: Mon Nov 03, 2008 12:49 pm Subject: UART Crashes |
I'm using an 18F2680. I am using the hardware uart with the following RS232 use statement:
#define RS232BAUD 19200
#use rs232(baud=RS232BAUD,parity=N,bits=8, errors, uart1)
Essentially I am ... |
|