Re: Issues sending and receiving data
i don't see this working , porta.3 is input only
Receive pic code
Code:
DEFINE DEBUG_REG PORTA ' Set Debug pin port
DEFINE DEBUG_BIT 3 ' Set Debug pin bit
DEFINE DEBUG_BAUD 2400 ' Set Debug baud rate
DEFINE DEBUG_MODE 0 ' Set Debug mode: 0 = true, 1 = inverted
the concept of reading a serial transmission in an interrupt routine triggered by the start bit is badly flawed.
by the time the isr's bit-banged reception routine is activated the start bit has been lost and you will just read in a bunch of framing errors
Warning I'm not a teacher
Bookmarks