- 打卡等级:初来乍到
- 打卡总天数:4
- 最近打卡:2025-05-01 06:58:22
金牌会员
- 积分
- 1331
|
发表于 2024-7-7 07:46:32
|
显示全部楼层
本帖最后由 jmg 于 2024-7-8 09:41 编辑
This PNP auto direction change works quite well, and is simple.
It should be checked with the RS485 IC chosen, as there are caveats :
a) TX Enable (PNP turning ON) needs to be fast enough to not distort the bit-timing.
b) RX Enable (PNP turning OFF) needs to be slow enough to allow the BUS driver to change before the RX enable, otherwise you get a RXD glitch.
A PNP driver works well because it has skewed ON and OFF times. (NPN skews the wrong way)
LTspice has FAST (20MBd) RS485 LTC2862-1 and SLOW (250kBd) RS485 LTC2862-2 models so you can check the effect in LTSpice.
Digital Transistors (eg DTA014T) include the 10k base resistor, and simulates Trelease = 1.234us Tenable = 47.4ns, which is enough for up to 1-2 MBd region.
For very high baud rates, (3~11.25Mbd+) the base resistor value can drop, or you can switch to a low capacitance PMOS part like BSS84, or a Analog Sw like x3157, or Logic Gate like x1G125, can emulate a Low-C PMOS.
|
|