LPUART Transmitter Active Soon as Enabled

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPUART Transmitter Active Soon as Enabled

ソリューションへジャンプ
691件の閲覧回数
Mike_d
Contributor IV

Hi,

I trying to figure out why the TC status shows it as sending data the line after the transmitter is enabled and never goes idle.

Regards,

-Mike

0 件の賞賛
1 解決策
510件の閲覧回数
Mike_d
Contributor IV

Found it.  I didn't have the PLL selected.

SIM_SOPT2 |= SIM_SOPT2_PLLFLLSEL(1);

元の投稿で解決策を見る

0 件の賞賛
3 返答(返信)
511件の閲覧回数
Mike_d
Contributor IV

Found it.  I didn't have the PLL selected.

SIM_SOPT2 |= SIM_SOPT2_PLLFLLSEL(1);

0 件の賞賛
510件の閲覧回数
Mike_d
Contributor IV

So which is correct?  My problem is the TC bit is always 0.

pastedImage_2.png

pastedImage_3.png

0 件の賞賛
510件の閲覧回数
mjbcswitzerland
Specialist V

Mike

pastedImage_1.png

The default for this flag is to be set, meaning that it will interrupt immediately when the UART is enabled if its interrupt mask is set.
It only goes to '0' while transmission is taking place and is set back to '1' (can generate interrupt) when the transmission terminates (idle-line again).
This is the same behavior as the TDRE flag apart from the fact that the TDRE goes high again when the data has been shifted out rather than after the last bit period has terminated.

Regards

Mark
Kinetis for professionals: http://www.utasker.com/kinetis.html

0 件の賞賛