Author |
Message |
Topic: Sending command via SW_UART |
Mark Logan
Replies: 10
Views: 12146
|
Forum: General CCS C Discussion Posted: Tue Jan 05, 2010 4:07 pm Subject: Sending command via SW_UART |
Thanks for your replies,
I added 'DISABLE_INTS' to the stream definition, didn't seem to do much. I changed the command to a simple "HELLO" to see what would happen, and I didn't get the ... |
Topic: Sending command via SW_UART |
Mark Logan
Replies: 10
Views: 12146
|
Forum: General CCS C Discussion Posted: Tue Jan 05, 2010 3:45 pm Subject: Sending command via SW_UART |
Thanks PCM,
Unfortunately the HW UART is dedicated to sending/receiving the data buffer from the LCD touchscreen so using it is not an option. It seems like SW UART is the most attractive option h ... |
Topic: Sending command via SW_UART |
Mark Logan
Replies: 10
Views: 12146
|
Forum: General CCS C Discussion Posted: Tue Jan 05, 2010 2:20 pm Subject: Sending command via SW_UART |
I just realized that was for another serial command I was sending as a test. It's not going to match up with the ASCII for ?PRE\r, but it is the same idea. Still getting a 34 04 at the end which doe ... |
Topic: Sending command via SW_UART |
Mark Logan
Replies: 10
Views: 12146
|
Forum: General CCS C Discussion Posted: Tue Jan 05, 2010 2:13 pm Subject: Sending command via SW_UART |
Thanks Ttelmah,
I am aware that INT_EXT could hang if not receiving a carriage return, this is kind of what I was going for. The problem is, nothing is being sent from the gauge as the indicator t ... |
Topic: Sending command via SW_UART |
Mark Logan
Replies: 10
Views: 12146
|
Forum: General CCS C Discussion Posted: Tue Jan 05, 2010 1:17 pm Subject: Sending command via SW_UART |
Anybody? Or am I just being thick and can't see the answer right in front of me, it wouldn't surprise me. |
Topic: Sending command via SW_UART |
Mark Logan
Replies: 10
Views: 12146
|
Forum: General CCS C Discussion Posted: Tue Jan 05, 2010 10:15 am Subject: Sending command via SW_UART |
I forgot to mention the format of the pressure gauge's returned value. It is as follows:
[newline] 0.00, inH20\r
The carriage return at the end means fgets SHOULD work, but it is not eve ... |
Topic: Sending command via SW_UART |
Mark Logan
Replies: 10
Views: 12146
|
Forum: General CCS C Discussion Posted: Tue Jan 05, 2010 9:38 am Subject: Sending command via SW_UART |
Hello again everyone,
I am sending the command "?PRE\r" via software UART to a digital pressure gauge, which is supposed to return the pressure from the gauge and display it on a touchscr ... |
Topic: Two way comm over SW UART timing issue |
Mark Logan
Replies: 4
Views: 6456
|
Forum: General CCS C Discussion Posted: Thu Dec 17, 2009 12:01 pm Subject: Two way comm over SW UART timing issue |
Ah I understand the confusion now, I have B7 jumped to B0, I apologize for not stating this earlier. I see what you mean about the falling edge, this is probably what is causing the fgetc() to only w ... |
Topic: Two way comm over SW UART timing issue |
Mark Logan
Replies: 4
Views: 6456
|
Forum: General CCS C Discussion Posted: Thu Dec 17, 2009 11:15 am Subject: Two way comm over SW UART timing issue |
Thanks for the reply Ttelmah, I've been lurking on this forum for a while now so I know that I'm in good hands with you. enable_interrupts(GLOBAL) is now gone, I seem to remember thinking that solved ... |
Topic: Two way comm over SW UART timing issue |
Mark Logan
Replies: 4
Views: 6456
|
Forum: General CCS C Discussion Posted: Thu Dec 17, 2009 9:37 am Subject: Two way comm over SW UART timing issue |
Good day all,
First post so be gentle. Firstly I am using a PIC18f452. What I'm trying to do is create a data logger for a digital pressure gauge. This gauge takes an ASCII command ?PRE+carriage ... |
|