Author |
Message |
Topic: RCREG not empty |
Shoebie
Replies: 5
Views: 8885
|
Forum: General CCS C Discussion Posted: Thu Nov 29, 2007 9:08 am Subject: RCREG not empty |
Thanks for the help. Using the RDA interrupt cured the problem. Now I fputc, then clear rcreg. The interrupt captures the characters I need. |
Topic: RCREG not empty |
Shoebie
Replies: 5
Views: 8885
|
Forum: General CCS C Discussion Posted: Wed Nov 28, 2007 4:24 pm Subject: RCREG not empty |
Thank you for the very quick reply.
This is my clear function:
void Read_Rx(void)
{
char u;
u=RCREG;
u=RCREG;
u=RCREG;
}
Somehow, after a print ... |
Topic: RCREG not empty |
Shoebie
Replies: 5
Views: 8885
|
Forum: General CCS C Discussion Posted: Wed Nov 28, 2007 3:38 pm Subject: RCREG not empty |
I'm using a PIC16F876 with CCS ver 4.023. I am trying to capture a string from another source. I have found that the RCREG register is not empty. I try a read and still get a "Wrong" byte. H ... |
Topic: RS232 Bitwise |
Shoebie
Replies: 5
Views: 5292
|
Forum: General CCS C Discussion Posted: Thu Nov 08, 2007 8:31 am Subject: RS232 Bitwise |
I'll give that a try. I didn't realize you could set up 2 uart software modules.
Thanks! |
Topic: RS232 Bitwise |
Shoebie
Replies: 5
Views: 5292
|
Forum: General CCS C Discussion Posted: Wed Nov 07, 2007 8:37 pm Subject: RS232 Bitwise |
I am using a PIC16F876, not by choice, I would have preferred the 877. However, here is my problem. I am already using the built in uart, however, I need a second RS232 output. I have done this in [spam] ... |
|