|
发表于 2023-5-10 00:45:00
|
显示全部楼层
同样的问题,又问了一下 GPT-4, 看着好像有那么点靠谱了
不过它是按 datasheet 里 rise time 和 fall time 的最大值算的,这两项的典型值是 4us 和 3us
而且这个值是有具体测试条件的,实际用的时候肯定会有差别
Q: Using PC817 to implement isolated UART communication, what speed in bps can be reached?
The PC817 is an optocoupler and does not directly determine the speed of UART communication. However, it can affect the overall speed due to its response time. The PC817 has a typical rise and fall time of 18µs each, resulting in a total of 36µs for a full low-to-high-to-low cycle.
Following the formula: 1 / (36µs) = max_bps,
The maximum baud rate (bps) that can be achieved using the PC817 is approximately:
1 / (36 * 10-6) = 27,777 bps.
However, this is only a theoretical limit. In practice, it might be necessary to use lower baud rates, such as 9,600 or 19,200 bps, to ensure data integrity and account for other factors like the optocoupler's tolerances, external noise, and system design.
|
|