View previous topic :: View next topic |
Author |
Message |
jcz Guest
|
Second RS232 channel on PIC18F6x20 and kbhit() |
Posted: Sun Apr 20, 2003 2:47 pm |
|
|
I am using a PIC18F6520 and would like to use kbhit() for the second UART channel. How can I do that?
With printf we can use fprintf and specify the stream... Is it possible to do the same with kbhit?
Regards,
jcz
___________________________
This message was ported from CCS's old forum
Original Post ID: 13836 |
|
|
rocco Guest
|
Re: Second RS232 channel on PIC18F6x20 and kbhit() |
Posted: Sun Apr 20, 2003 5:26 pm |
|
|
:=I am using a PIC18F6520 and would like to use kbhit() for the second UART channel. How can I do that?
:=
:=With printf we can use fprintf and specify the stream... Is it possible to do the same with kbhit?
:=
:=Regards,
:=
:= jcz
just passing the stream name as the argument.
kbhit(COM1);
kbhit(COM2);
Good Luck...
R
___________________________
This message was ported from CCS's old forum
Original Post ID: 13842 |
|
|
rocco Guest
|
Re: Second RS232 channel on PIC18F6x20 and kbhit() |
Posted: Sun Apr 20, 2003 5:26 pm |
|
|
:=I am using a PIC18F6520 and would like to use kbhit() for the second UART channel. How can I do that?
:=
:=With printf we can use fprintf and specify the stream... Is it possible to do the same with kbhit?
:=
:=Regards,
:=
:= jcz
just passing the stream name as the argument.
kbhit(COM1);
kbhit(COM2);
Good Luck...
R
___________________________
This message was ported from CCS's old forum
Original Post ID: 13843 |
|
|
rocco Guest
|
Re: Second RS232 channel on PIC18F6x20 and kbhit() |
Posted: Sun Apr 20, 2003 5:26 pm |
|
|
:=I am using a PIC18F6520 and would like to use kbhit() for the second UART channel. How can I do that?
:=
:=With printf we can use fprintf and specify the stream... Is it possible to do the same with kbhit?
:=
:=Regards,
:=
:= jcz
just passing the stream name as the argument.
kbhit(COM1);
kbhit(COM2);
Good Luck...
R
___________________________
This message was ported from CCS's old forum
Original Post ID: 13844 |
|
|
jcz Guest
|
Re: Second RS232 channel on PIC18F6x20 and kbhit() |
Posted: Sun Apr 20, 2003 6:20 pm |
|
|
:=:=I am using a PIC18F6520 and would like to use kbhit() for the second UART channel. How can I do that?
:=:=
:=:=With printf we can use fprintf and specify the stream... Is it possible to do the same with kbhit?
:=:=
:=:=Regards,
:=:=
:=:= jcz
:=
:=just passing the stream name as the argument.
:=
:=kbhit(COM1);
:=
:=kbhit(COM2);
:=
:=Good Luck...
:=
:= R
Seems to work. Thanks!
Do you know why this feature seem not to be documented?
jcz
___________________________
This message was ported from CCS's old forum
Original Post ID: 13847 |
|
|
rocco Guest
|
Re: Second RS232 channel on PIC18F6x20 and kbhit() |
Posted: Mon Apr 21, 2003 11:33 am |
|
|
:=:=:=I am using a PIC18F6520 and would like to use kbhit() for the second UART channel. How can I do that?
:=:=:=
:=:=:=With printf we can use fprintf and specify the stream... Is it possible to do the same with kbhit?
:=:=:=
:=:=:=Regards,
:=:=:=
:=:=:= jcz
:=:=
:=:=just passing the stream name as the argument.
:=:=
:=:=kbhit(COM1);
:=:=
:=:=kbhit(COM2);
:=:=
:=:=Good Luck...
:=:=
:=:= R
:=
:=Seems to work. Thanks!
:=
:=Do you know why this feature seem not to be documented?
:=
:= jcz
Don't know, the manual has not been updated in some time. I had to can tech support to get the answer...
R
___________________________
This message was ported from CCS's old forum
Original Post ID: 13874 |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
Re: Second RS232 channel on PIC18F6x20 and kbhit() |
Posted: Mon Apr 21, 2003 12:37 pm |
|
|
:=
:=Don't know, the manual has not been updated in some time. I had to can tech support to get the answer...
:=
------------------------------------------------------------
It's in the archives. Go here:
<a href="http://www.pic-c.com/cgi-bin/anyboard.cgi?fvp=/general&cmd=qL" TARGET="_blank">http://www.pic-c.com/cgi-bin/anyboard.cgi?fvp=/general&cmd=qL</a>
Type in: kbhit streams
Set it to search within messages, and go back 300 days.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13887 |
|
|
|