Use a combination of Hardware USART and Serin
Hi,
Since serin is a software based UART you cannot have multiple instances. However you can use the hardware USART for one receive (probably interrupted so you know when your receive buffer is having a new data) and a normal serin on the other.
Regards
Sougata
Thats quite simple though
Hi,
PBP supports the HSERIN command that interfaces with the onboard hardware usart of your PIC. However the problem in your app is that you need simultaneous sensing. So just sit in a tight loop with the serial in and poll for the receive buffer full bit to branch to another section using the HSERIN function. However to make it more reliable you can have the entire hardware routine in asm interrupt based. Setup up a ring array and setup interrupts for hardware Rx. You can opt for manual error handling on receive buffer overflow or use an auto clear. Thus you don't miss a byte. Then do the software serial in. However to make it further interesting you can have the serialin routine right in your asm. Or you can use a software (See Darrel's thread on instant interrupts) interrupt source to jump into the serial routine. In this case your serialin pin should tally with a physical interrupt pin.
Good Luck
Sougata