This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP432P401R: Help with some registers

Part Number: MSP432P401R
Other Parts Discussed in Thread: MSP430F5529

Tool/software: Code Composer Studio

Hello Fellow, 
I need some help with a code excerpt, i can't convert this following code of MSP430F5529, into a code of MSP432. someone can help me?

void Set_DMA_SPI(void)
{

  DMACTL0 = DMA0TSEL_12;                            // USCI_B0 Transmit Ready Trigger
  //DMA0SA = (void (*)())&UCB0RXBUF;                // Source block address
  //DMA0DA = (void (*)())ADC_Read_data;             // Destination single address
  DMA0SZ = 16;                                      // Block size
  DMA0CTL = DMADT_4 + DMADSTINCR_3 + DMADSTBYTE + DMASRCBYTE;
                                                    // Rpt, inc src, byte-byte
  DMA0CTL |= DMAEN;                                 // Enable DMA for consecutive Xfers


}

  • What exactly are you trying to do?

    When you're moving between devices, it is far easier to be writing code at a higher level of abstraction rather than flipping bits inside the control registers of each device. For the MSP432 with DMA, I'd suggest starting with the Driverlib routines. Documentation for this can be found in the SimpleLink MSP432 SDK, available from the TI Resource Explorer.

    The document you are looking for is the Driverlib User's Guide. Chapter 7 covers the list of APIs for setting up and using the DMA.

    Regards,

      Bob Landers

**Attention** This is a public forum