I want to know, how we identify the RS485 pins are inverted. I am using
This sam9260 board has four rs485 in which two of them are inverted. How to know which ports are inverted, I didn't find such information in the datasheet also?
This is the simple code:
rs485ctrl.inverted = 1; rs485ctrl.pin = -1;
EDIT: other serial device configuration:
rs485ctrl.inverted = 1; rs485ctrl.pin = 0x40 + 2;
I didn't understand where this 0x40 +2 magic number came from? I interpreted if the pin is inverted it set as -1, perhaps what I understood is wrong?
I used the multimeter to verify the positive wire is greater than negative wire during idle but don't know if there any other way to find the polarity of RS485?
Don't know, is this the right forum to ask such a question.