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:
- Read data from SRAM1 via EBI on MCU1.
- Send data via UART using DMA from MCU1 to MCU2.
- Receive data via UART using DMA on MCU2.
- 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