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:一些寄存器的帮助

Guru**** 2589275 points
Other Parts Discussed in Thread: MSP430F5529

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/628421/ccs-msp432p401r-help-with-some-registers

器件型号:MSP432P401R
主题中讨论的其他器件:MSP430F5529

工具/软件:Code Composer Studio

您好、Fellow、  
我需要代码摘录方面的一些帮助、我无法将 MSP430F5529的以下代码转换为 MSP432的代码。 有人可以帮助我吗?

void SET_DMA_SPI (void)
{

DMACTL0 = DMA0TSEL_12; // USCI_B0发送就绪触发
// DMA0SA =(void (*)()))&UCB0RXBUF; //源块地址
//DMA0DA =(void (*)())) ADC_READ_DATA; //目标单地址
DMA0SZ = 16; //块大小
DMA0CTL = DMADD_4 + DMADSTINCR_3 + DMADSTBYTE + DMASRCBYTE;
// Rpt、inc src、字节-字节
DMA0CTL |= DMAEN; //为连续的低音扬声器启用 DMA


} 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您到底要做什么?

    当您在器件之间移动时、以较高的抽象级别编写代码比翻转每个器件控制寄存器内的位容易得多。 对于具有 DMA 的 MSP432、我建议从 Driverlib 例程开始。 相关文档可在 SimpleLink MSP432 SDK 中找到、该 SDK 可从 TI Resource Explorer 中获取

    您要查找的文档是 Driverlib 用户指南。 第7章介绍了用于设置和使用 DMA 的 API 列表。

    此致、

     Bob Landers