Configuring LPUART on NXP S32K148 for Modbus RTU
The S32K148 MCU’s Low-Power UART (LPUART) peripheral can be used as the physical layer for Modbus RTU. Below is a concise walk-through of the minimal steps and a reference driver that receives variable-langth frames terminated by a newline character.
Physical-layer essentials
Idle level: logic high (1)
Start bit: logic low (0)
Data bits: 8 (LS ...
Posted on Wed, 22 Jul 2026 16:33:40 +0000 by pacognovellino
Configuring CAN Transceiver Communication on S32K148 Microcontrollers
Signal conversion between CAN and SPI protocols can be implemented through either hardware-level bit shifting or microcontroller-based message processing. The microcontroller approach offers simpler implementation despite slightly higher costs.
SDK Configuration Method
CAN0 Peripheral Initialization
Initialize the CAN0 peripheral clock and basi ...
Posted on Tue, 30 Jun 2026 17:04:38 +0000 by napier_matt
Bare-Metal CAN Driver Implementation for S32K148
The S32K148 microcontroller supports three primary methods for CAN message transmission and reception: mailbox mode, FIFO mode, and DMA mode. Among these, mailbox mode offers simplest conceptual model and serves as a practical starting point for understanding CAN communication on this platform.
Key registers involved in mailbox-based CAN opera ...
Posted on Tue, 16 Jun 2026 16:34:56 +0000 by etones