NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

DMA controller pitfalls

From Texas Instruments Wiki
Jump to: navigation, search

Byte access to the DMA controller registers[edit]

Although the family users guide for the MSP430F54xx states, that all DMA controller registers have byte access (and also introduces _L and _H aliases for byte-accessing the registers), this is not true. Any write to DMAxxx_H instead goes into the low byte (DMAxxx_L). The same is true for read access. Reading DMAxxx_H returns the low byte of the register.

While this is not a problem in most cases, it is necessary to write the DMA triggers for DMA0 and DMA1 together into DMACTL0 using a word write. It is not possible to set them independently by writing to DMACTL0_L and DMACTL0_H.

Use DMACTL0=(DMACTL0&0xff00)|(trigger&0xff); for setting the trigger for DMA0 and DMACTL0=(DMACTL0&0x00ff)|(trigger<<8); for setting the trigger for DMA1.

This issue has been reported to TI and will be addressed in version F of the MSP430X5xx family user's guide SLAU208.

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article DMA controller pitfalls here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article DMA controller pitfalls here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article DMA controller pitfalls here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article DMA controller pitfalls here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article DMA controller pitfalls here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article DMA controller pitfalls here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article DMA controller pitfalls here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article DMA controller pitfalls here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article DMA controller pitfalls here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity