[RTD600 IP] S32K312-EVB Lpuart interrupt echo

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

[RTD600 IP] S32K312-EVB Lpuart interrupt echo

[RTD600 IP] S32K312-EVB Lpuart interrupt echo

This simple example demonstrates how to configure and handle UART interrupts using the LPUART module on the S32K312-EVB. It sets up a UART callback function and initiates reception in single-byte mode. After each byte is received, the buffer is updated using Lpuart_Uart_Ip_SetRxBuffer(), unless a newline character ('\n') is detected, in which case a reception flag is set to signal the main loop.

When the LPUART_UART_IP_EVENT_END_TRANSFER event occurs, reception is re-enabled using Lpuart_Uart_Ip_AsyncReceive().

Only basic event handling is implemented; other UART events are acknowledged but not processed.

The example uses LPUART instance 6, enabling serial communication via the USB port (J40) on the S32K312-EVB. If using TeraTerm, ensure the transmit setting is configured to LF (Line Feed) to properly send newline characters when pressing Enter.

TeraTerm_Setup.png

 ------------------------------------------------------------------------------
* Test HW: S32K312EVB-Q172
* MCU: S32K312
* IDE: S32DS3.6.2
* RTD release: 6.0.0
* Debugger: PE Micro
* Target: internal_FLASH
 ------------------------------------------------------------------------------

Test result:

TeraTerm_Result.png
添付
評価なし
バージョン履歴
最終更新日:
‎07-25-2025 11:17 AM
更新者: