UART Communication Blocks

Universal Asynchronous Receiver/Transmitter (UART) blocks for serial communication in MPLAB Device Blocks for Simulink.

Available UART Blocks

This section contains the following UART peripheral blocks:

  • UART Config - Configure UART peripheral parameters (baud rate, parity, stop bits)
  • UART Rx - Receive data from UART peripheral
  • UART Tx - Transmit data to UART peripheral
  • UART TxMatlab - Transmit data with MATLAB workspace integration
  • UART Break/Autobaud - Handle break detection and automatic baud rate detection

Key Features

  • Multiple baud rates - Configurable from 300 to 921600 bps
  • Hardware flow control - RTS/CTS support
  • Error detection - Frame, parity, and overrun error handling
  • DMA support - High-speed data transfer with minimal CPU overhead
  • MATLAB integration - Direct workspace variable transmission

Common Use Cases

  • Sensor communication - Read data from UART sensors
  • Debug output - Send diagnostic messages to terminal
  • Protocol implementation - Modbus, NMEA, custom protocols
  • Bootloader - Firmware update over UART
  • Data logging - Stream measurement data to PC

See Also