---
title: "im using SPi DMA in TI TMS320F28379D"
url: "https://maker.wiznet.io/forum/15148"
markdown_url: "https://maker.wiznet.io/forum/15148/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "Akash Ahirwar"
created: "2024-02-13T05:55:40+09:00"
last_activity: "2024-02-13T05:55:40+09:00"
language: "en"
views: 136
replies: 0
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# im using SPi DMA in TI TMS320F28379D

## Question

Asked by Akash Ahirwar on 2024-02-13 in Ethernet Chips.

Hello Team,

actually, SPI DMA support 16 bit or 32 bits FIFO. I’m using SPI support controller which support 8-bit commands.
void InitSpi(void)
{
// Initialize SPI-A

// Set reset low before configuration changes
// Clock polarity (0 == rising, 1 == falling)
// 16-bit character
// Enable loop-back
SpiaRegs.SPICCR.bit.SPISWRESET = 0;
SpiaRegs.SPICCR.bit.CLKPOLARITY = 0;
SpiaRegs.SPICCR.bit.SPICHAR = (8-1);
// SpiaRegs.SPICCR.bit.SPILBK = 1;

// Enable master (0 == slave, 1 == master)
// Enable transmission (Talk)
// Clock phase (0 == normal, 1 == delayed)
// SPI interrupts are disabled
SpiaRegs.SPICTL.bit.MASTER_SLAVE = 1;
SpiaRegs.SPICTL.bit.TALK = 1;
SpiaRegs.SPICTL.bit.CLK_PHASE = 1;
SpiaRegs.SPICTL.bit.SPIINTENA = 0;

// Set the baud rate
//SpiaRegs.SPIBRR.bit.SPI_BIT_RATE = SPI_BRR;
SpiaRegs.SPIBRR.bit.SPI_BIT_RATE = 4;

// Set FREE bit
// Halting on a breakpoint will not halt the SPI
SpiaRegs.SPIPRI.bit.FREE = 1;

// Release the SPI from reset
SpiaRegs.SPICCR.bit.SPISWRESET = 1;

}

I done SPI configurations like this.

please give me any suggestion, o resolve this issue.

---

Source: https://maker.wiznet.io/forum/15148
