Author |
Message |
Topic: Simple C problem - Pls take a look ! |
tranz
Replies: 6
Views: 4388
|
Forum: General CCS C Discussion Posted: Sat Jan 24, 2009 1:32 pm Subject: Simple C problem - Pls take a look ! |
You just want a continious loop for this? why are you not using
delay_ms(1000); //delay for 1 ms.
and
output_high( PIN_E1);// high PIN_E1
commands to do the job? It is far less complicat ... |
Topic: Hyperterminals Form Feed |
tranz
Replies: 1
Views: 3339
|
Forum: General CCS C Discussion Posted: Sun Nov 23, 2008 7:20 pm Subject: Hyperterminals Form Feed |
Guys,
I am trying to use hyperterminal's winsock to send binary data to a PIC based webserver (18F4680). But the problem is that the binary data is encoded with the Shift-JIS format ( when hyperter ... |
Topic: How to convert a char to binary |
tranz
Replies: 5
Views: 5784
|
Forum: General CCS C Discussion Posted: Thu Nov 20, 2008 8:18 am Subject: How to convert a char to binary |
My apologies for that. It should have been like "Gents/Ladies". |
Topic: How to convert a char to binary |
tranz
Replies: 5
Views: 5784
|
Forum: General CCS C Discussion Posted: Wed Nov 19, 2008 9:35 pm Subject: How to convert a char to binary |
Thanks PCM, much appreciated |
Topic: How to convert a char to binary |
tranz
Replies: 5
Views: 5784
|
Forum: General CCS C Discussion Posted: Wed Nov 19, 2008 9:15 pm Subject: How to convert a char to binary |
Fellow Gents,
I wanted to know how to use fputc() to display binary values, instead of displaying characters.
Would appreciate your thoughts on this.
Cheers
Tranz |
Topic: Multiple serial communication . . . (newbie) |
tranz
Replies: 9
Views: 9353
|
Forum: General CCS C Discussion Posted: Wed Oct 29, 2008 4:49 pm Subject: Multiple serial communication . . . (newbie) |
Well based on your loop
#use rs232(baud=9600,parity=N,xmit=PIN_B0,rcv=PIN_B1,bits=8,stream=COM0)
#use rs232(baud=9600,parity=N,xmit=PIN_B2,rcv=PIN_B3,bits=8,stream=COM1)
#use rs232(baud=9600 ... |
Topic: Interesting problem with hyperterminal |
tranz
Replies: 12
Views: 12027
|
Forum: General CCS C Discussion Posted: Wed Oct 29, 2008 2:38 pm Subject: Interesting problem with hyperterminal |
Yes, certainly seems like that now. But the thing is that the micro is acting like a TCP/IP webserver and a client computer sends the data via hyperterminal based TCP/IP winsock.
All the micro is doi ... |
Topic: Multiple serial communication . . . (newbie) |
tranz
Replies: 9
Views: 9353
|
Forum: General CCS C Discussion Posted: Wed Oct 29, 2008 1:49 pm Subject: Multiple serial communication . . . (newbie) |
Well with CCS you can put hardware and software interrupts on those pins and loop the software interrupts. So when the data comes in from any of those 3 terminals your micro would be able to handle th ... |
Topic: Interesting problem with hyperterminal |
tranz
Replies: 12
Views: 12027
|
Forum: General CCS C Discussion Posted: Wed Oct 29, 2008 1:46 pm Subject: Interesting problem with hyperterminal |
Yes with this test the PIC is displaying the data correctly. 0xFF is being displayed as FF. |
Topic: Interesting problem with hyperterminal |
tranz
Replies: 12
Views: 12027
|
Forum: General CCS C Discussion Posted: Wed Oct 29, 2008 1:12 pm Subject: Interesting problem with hyperterminal |
Well I am sending a stream of binary data, and the only part the PIC plays is to transfer the data which it receives over Ethernet. So there are no conditions on what the PIC is supposed to display wh ... |
Topic: Interesting problem with hyperterminal |
tranz
Replies: 12
Views: 12027
|
Forum: General CCS C Discussion Posted: Wed Oct 29, 2008 12:51 pm Subject: Interesting problem with hyperterminal |
//settings
#use rs232(baud=9600, xmit=PIN_C6,rcv=PIN_C7, STREAM=USER,parity=N,stop=1)
//the part of the code where in the data is sent from the TCP client to the //PIC and then the PIC ... |
Topic: Interesting problem with hyperterminal |
tranz
Replies: 12
Views: 12027
|
Forum: General CCS C Discussion Posted: Wed Oct 29, 2008 12:24 pm Subject: Interesting problem with hyperterminal |
Gents,
The TX and RX lines are switched around on the PIC.
Here are the results of the tests carried out as suggested by PCM.
Yes there is a difference when the micro sends the data over RS2 ... |
Topic: Interesting problem with hyperterminal |
tranz
Replies: 12
Views: 12027
|
Forum: General CCS C Discussion Posted: Tue Oct 28, 2008 4:20 pm Subject: Interesting problem with hyperterminal |
Hey Guys ,
I have an interesting problem with the RS232 terminal.
I am trying to send data via RS232 to a DSP controller. Now when I send the data through the computer at 9600 baud, the data is ... |
Topic: Making a 18f4620 work like a hyperterminal on echo mode. |
tranz
Replies: 3
Views: 4225
|
Forum: General CCS C Discussion Posted: Wed Oct 01, 2008 1:45 pm Subject: Making a 18f4620 work like a hyperterminal on echo mode. |
I know fgets would be the best solution for this problem, but when I put it with a stream its showing compiling errors.
void ui_handle(void)
{
char c[30];
char h;
... |
Topic: Making a 18f4620 work like a hyperterminal on echo mode. |
tranz
Replies: 3
Views: 4225
|
Forum: General CCS C Discussion Posted: Wed Oct 01, 2008 12:24 pm Subject: Making a 18f4620 work like a hyperterminal on echo mode. |
Thanks PCM !
But if I want to create a response from the micro (18F4620) based on a sentence given by the user, how would I get to do it.
Like if I would like to give a response for
"Wo ... |
|