LPUART1 rx problem

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

LPUART1 rx problem

1,074件の閲覧回数
623619261
Contributor I

Hello,

   I have some questions about LPUART1 of 'S32K142'.I use it with LIN transceiver 'ATA663211'.

I  use it to be master.

My transmit function is right,but receive function is stranger.

When I want to receive data form slave,I transmit head first.Then I receive data.

I use code like this 'if(LPUART1->STS & rdrf mask) else if(LPUART1->STS & tc mask)' in the interrupt.

The problem is when I want to transmit data,the rdrf is '1',so it do the receive work.I don't know how rdrf to be '1'.

I clear it at first.

So I want to know whether other status would change the rdrf.

My English is very poor, forgive me. 

タグ(1)
0 件の賞賛
返信
1 返信

971件の閲覧回数
constantinrazva
NXP Employee
NXP Employee

Hello 623619261@qq.com‌,

On this community we handle questions regarding MATLAB/Simulink and our toolboxes. For a detailed answer for your question you should post it on https://community.nxp.com/community/s32/s32k community - there you'll get answers from SDK experts.

Hope this helps,

Razvan.

0 件の賞賛
返信