Hi,
Noted a issue with using either the HSerin or the serin command, if the pin associated RX is held low (which could occur if the RX pin is open circuit), the wait command of HSerin will wait indefinetely until the pin returns to a high state or a character is received.
Solved this by using a pull up resistor on the RX pin, but looking for a more robust solution that regardless of the state of the RX pin, the microprocessor will continue to operate.
Haven't testes this as yet but I've since found a possible way around this issue is to use check the state of PIR1.5 before executing the HSERIN command.
Any other suggestions?
Thanks,
Rob.
Bookmarks