Hi, i am using PIC16F877.
I need to receive serial data from 2 devices.
I assigned two different streams for both devices, one is using the
hardware serial of the controller (TX = C6, RX = C7), while the other
virtual serial (TX = C4, RX = C5).
Both serial work fine but I need to put both of them in interrupt mode.
Is it possible using INT_RDA ? _________________ !!!!...HUSSAIN AFTAB...!!!!
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Wed Jun 30, 2010 1:01 pm
The #int_rda only works with the hardware UART, which is on pins C6 and C7.
You can use the #int_ext for the hardware UART, but must you put the Rx on pin B0 in your #use rs232() statement. Pin C5 has no interrupt
capability.
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