LPUART1&LPUART2

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

LPUART1&LPUART2

1,843件の閲覧回数
intern_praveena
Contributor II

I m working on FS32K144Q100 s32 studio, lpuart program i.e, send from lpuart1 and receve at lpuart2 and send from lpuart2 and receve at lpuart1.I have done the first part.how to do that second part?????????

ラベル(2)
タグ(1)
0 件の賞賛
返信
1 返信

1,609件の閲覧回数
constantinrazva
NXP Employee
NXP Employee

Hello intern.praveena@grinntech.com‌,

You can call the same LPUART_DRV_SendData and LPUART_DRV_ReceiveData functions to achieve what you want, just keep in mind that the first parameter should be changed to what instance you need it to. You can check out the SDK documentation that is located in: {ROOT_DIR}\doc\Start_here.html .

You can go to S32K144 -> Modules -> Low Power Universal Asynchronous Receiver-Transmitter -> LPUART Driver. Here you can find all the functions that you'll be needing:

pastedImage_2.png

pastedImage_3.png

So as you can see, you can just change the first parameter (instance) to be 0, 1, or whatever you need it to be (and depending on the hardware, if they are present or not).

Hope this is what you wanted to know. For detailed explanations of the driver you can ask on the S32K community.

Kind regards,

Razvan.

0 件の賞賛
返信