Detecting end of transmitted break on KE04Z UART

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Detecting end of transmitted break on KE04Z UART

跳至解决方案
956 次查看
randyglenn
Contributor I

Hi,

I'm using a KE04Z (using the FRDM board for now), and I'm trying to have my device send a break on an RS485 bus back to the bus master. I need the device to assert a GPIO to drive the transmit enable on the RS485 transceiver - I'm using the UART interrupt on the TC flag to do this right now for data, but it isn't working for a break (the TC interrupt fires before the break is sent).

Is there some way to detect when a break (sent using the SBK bit in UART0_C2) has finished?

Thanks,

-Randy

标签 (1)
0 项奖励
回复
1 解答
807 次查看
randyglenn
Contributor I

I did not find a way to do this using the TC interrupt. I wound up using a timer to deassert the transmit enable once a break is sent.

在原帖中查看解决方案

0 项奖励
回复
1 回复
808 次查看
randyglenn
Contributor I

I did not find a way to do this using the TC interrupt. I wound up using a timer to deassert the transmit enable once a break is sent.

0 项奖励
回复