I plan to use a hardware interrupt uart for receiving data from a computer. I search this community for a code snippet in using #int_rda and I gain few tips in using interrupt service routine.
My concern is: would it be possible to use kbhit(Com1) and circular buffer method for receiving incoming packets from the computer.
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
Posted: Thu Jan 15, 2004 5:39 am
Quote:
My concern is: would it be possible to use kbhit(Com1) and circular buffer method for receiving incoming packets from the computer.
Yes of course. There aren't any connection between them.
kbhit() returns TRUE if the start bit of a character is being received on the RS232 RCV pin.
circular buffer is a way to store incoming bytes in memory.
regards,
Humberto
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
Posted: Thu Jan 15, 2004 6:02 am
Quote:
My concern is: would it be possible to use kbhit(Com1) and circular buffer method for receiving incoming packets from the computer.
Yes of course. There aren't any connection between them.
kbhit() returns TRUE if the start bit of a character is being received on the RS232 RCV pin.
circular buffer is a way to store incoming bytes in memory.
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