CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Second RS232 channel on PIC18F6x20 and kbhit()

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jcz
Guest







Second RS232 channel on PIC18F6x20 and kbhit()
PostPosted: Sun Apr 20, 2003 2:47 pm     Reply with quote

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()
PostPosted: Sun Apr 20, 2003 5:26 pm     Reply with quote

:=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()
PostPosted: Sun Apr 20, 2003 5:26 pm     Reply with quote

:=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()
PostPosted: Sun Apr 20, 2003 5:26 pm     Reply with quote

:=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()
PostPosted: Sun Apr 20, 2003 6:20 pm     Reply with quote

:=:=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()
PostPosted: Mon Apr 21, 2003 11:33 am     Reply with quote

:=:=:=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

View user's profile Send private message

Re: Second RS232 channel on PIC18F6x20 and kbhit()
PostPosted: Mon Apr 21, 2003 12:37 pm     Reply with quote

:=
:=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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group