- Sat Aug 13, 2011 6:29 am
#131749
I'm designing an RS485-based sensor network using the LCP122x as the processor for all nodes.
Each node has to detect and correct line polarity if the wires are crossed. Detecting is easy, correcting not quit so easy.
The obvious way to correct is with external XOR gates but this adds a lot to the BOM. So my questions are...
1) Rx, is the pin polarity control placed before the UART input? IE can I use that to invert the signal entering the UART.
2) Tx, if I set the Tx pin to open drain will this invert the transmitted data? (with pullup resistor of course)
______
Rob
Each node has to detect and correct line polarity if the wires are crossed. Detecting is easy, correcting not quit so easy.
The obvious way to correct is with external XOR gates but this adds a lot to the BOM. So my questions are...
1) Rx, is the pin polarity control placed before the UART input? IE can I use that to invert the signal entering the UART.
2) Tx, if I set the Tx pin to open drain will this invert the transmitted data? (with pullup resistor of course)
______
Rob