I have an half-duplex RS485 bus with 10-20 different nodes. Some of them
are 8-bit MCU based, one of them could be Linux embedded.
It's half-duplex, so it's important for the transmitter node to disable
the driver as soon as the last transmitted bit is shifted out.
Many small low-cost MCU has interrupt on transmission complete, so the
delay of disabling the driver is usually on the order of microseconds.
Some new Cortex-M MCUs have an automatic control of external RS485 transceiver, so the delay is really zero.
What happens in Linux embedded systems? Many of them are based on NXP
i.MX CPUs and it seems they aren't able to control the RS485 direction
in hardware, but some code is needed. This approach could increase the
delay of disabling the driver in the order of milliseconds.
Is it possible that a powerful CPU isn't able to control RS485 driver in hardware?
Atmel (now Microchip) ARM products has a serial port which supports
handling the RS-485 direction in hardware. It also has an interrupt
which is triggered after a programmable delay has occured without any
receied characters.
Den 2021-03-24 kl. 00:06, skrev pozz:
I have an half-duplex RS485 bus with 10-20 different nodes. Some of
them are 8-bit MCU based, one of them could be Linux embedded.
It's half-duplex, so it's important for the transmitter node to
disable the driver as soon as the last transmitted bit is shifted out.
Many small low-cost MCU has interrupt on transmission complete, so the
delay of disabling the driver is usually on the order of microseconds.
Some new Cortex-M MCUs have an automatic control of external RS485
transceiver, so the delay is really zero.
What happens in Linux embedded systems? Many of them are based on NXP
i.MX CPUs and it seems they aren't able to control the RS485 direction
in hardware, but some code is needed. This approach could increase the
delay of disabling the driver in the order of milliseconds.
Is it possible that a powerful CPU isn't able to control RS485 driver
in hardware?
Atmel (now Microchip) ARM products has a serial port which supports
handling the RS-485 direction in hardware. It also has an interrupt
which is triggered after a programmable delay has occured without any
receied characters.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 23:18:50 |
Calls: | 6,646 |
Calls today: | 1 |
Files: | 12,191 |
Messages: | 5,327,626 |