Stubbie
- 17th June 2008, 03:48
Hello All--
I've been working on a program for the 16F627 that used one of the I/O pins with an inverted logic baud rate to successfully receive data from my computer through RS-232.
I would now like to use hardware USART pin on this PIC due to buffering and whatnot. I know the HSERIN doesn't have an inverted option, so I've tried inverting the bytes that I send down the serial line on the computer hoping that the PIC would be able to pick them up. I've not had success with this and I believe its because my start and stop bits are not sent with inverted logic.
Does this reasoning path seem logical? If so, how can I fix this problem completely from a software side, I'd like to avoid a MAX232 or the like if at all possible.
Thanks
I've been working on a program for the 16F627 that used one of the I/O pins with an inverted logic baud rate to successfully receive data from my computer through RS-232.
I would now like to use hardware USART pin on this PIC due to buffering and whatnot. I know the HSERIN doesn't have an inverted option, so I've tried inverting the bytes that I send down the serial line on the computer hoping that the PIC would be able to pick them up. I've not had success with this and I believe its because my start and stop bits are not sent with inverted logic.
Does this reasoning path seem logical? If so, how can I fix this problem completely from a software side, I'd like to avoid a MAX232 or the like if at all possible.
Thanks