UART based DMA Communication between two micro controllers

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

UART based DMA Communication between two micro controllers

174 次查看
Shreyas_SK
Contributor I

Two MPC5777C micro controllers are connected to two external SRAM through External Bus Interface. Is it possible to send and receive data between the two External SRAM through UART based DMA? If yes please provide the code and block diagram for the same.

0 项奖励
回复
1 回复

121 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Yes, it is technically possible to send and receive data between two external SRAMs connected to two MPC5777C microcontrollers using UART-based DMA, but it requires a well-coordinated setup. Here's a breakdown of how this can be achieved, followed by a block diagram and example code.

 

Concept Overview

Each MPC5777C microcontroller has:

  • External Bus Interface (EBI) for SRAM access.
  • UART modules with DMA support.

You can:

  1. Read data from SRAM1 via EBI on MCU1.
  2. Send data via UART using DMA from MCU1 to MCU2.
  3. Receive data via UART using DMA on MCU2.
  4. Write data to SRAM2 via EBI on MCU2.

Key Requirements

  • UART Configuration: Both MCUs must be configured with matching baud rate, parity, stop bits.
  • DMA Setup:
    • MCU1: DMA reads from SRAM1 and writes to UART TX.
    • MCU2: DMA reads from UART RX and writes to SRAM2.
  • Synchronization: You may need a handshake mechanism (e.g., GPIO or UART signaling) to coordinate transfers.

Best regards,

Peter

0 项奖励
回复