Hello,
we would like to share RS485 pins (A/B) with generic I/O pins. So, pins would be software selectable I/O pair or RS485. I/O pin is basically 0-20V input connected to amplifier and comparator. Output is open collector dirrectly connected to I/O pin. So, while RS485 will be 'disabled', A/B could be continuously under 0-20V potential. When RS485 will be enabled, there will be added some parasitic impedance (~100K) and RC filter (~10MHz) to GND to A+B separately. Ofcourse, it will degrade some parametres of RS485 tranceiver. But it isn't problem, since communication speed is low and cables doesn't excess ~50 meters inside building.
I am not sure about datasheed for SN65HVD1780. Is it possible, to have A continuously connected to 20V while B will be GND potential ? PDF just say, it is protected up to 70V bus fault. But there is nothing about continous 'fault'. Also, common mode votage will be outside datasheet specifies. In this case, device driver/receiver will be *disabled*. I am afraid about some possible fault currents and/or damaging device.
Thank you for hints :)
Ray