I'm actually designing a system with:
- ~10 "Master" boards that transmit data from slaves boards to a RS485 network
- 4 "Slave" boards per master one, connected trough a 3 pin jack (5V, GND and half-duplex TTL)
Most of the time the slaves are sending data to the master (and so to the RS485 network), but each time a new slave is connected I need to send it its position (on which master board it is connected). So here's the schematic I want to use:
SN74HC245N functional diagram: (from datasheet)
So each time the micro-controller on the master board is detecting a new slave, it toggles the DIR pin and send the position to slaves (the data sent by others slaves will be lost in this time but that's not a problem).
My questions are:
- Will it work?
- If, while the master is sending position to the slaves and some slaves are sending data at the same time, is there a risk to damage the SN74HC245N? As it's supposed to be a bus transceiver I think it is protected against this but I'm not sure...
Thank you, Emerick