Part Number: MSP430F67791
Other Parts Discussed in Thread: MSP430WARE
Hi ,
I'm trying to use DMA.How to init DMA.I'm new for DMA communication.Please guide me as soon as possible.Give me some DMA example source code for MSP430F67791.
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.
Part Number: MSP430F67791
Other Parts Discussed in Thread: MSP430WARE
Hi ,
I'm trying to use DMA.How to init DMA.I'm new for DMA communication.Please guide me as soon as possible.Give me some DMA example source code for MSP430F67791.
Hi,
for all our products you can find code examples in the product folder for the device under the section "Tools & Software" or in our TI Resource Explorer.
Please also read the respective User's Guide chapter 11. http://www.ti.com/lit/slau208
Please note:
MSP430F67791A is recommended for new designs and functionally equivalent, for details read app note.
Best regards,
Andre
Hi Sir,
Now i have working in UART and receive the data in interrupt mode.But i need Receive the data from serial port without interrupt.Pls give me some sample code.As soon as possible....
Hi,
to make this forum useful and also searchable please have only one question per thread so that others can find solutions easier. Also please don't use phrases like "as soon as possible" as it is considered impolite. TI is committed to this forum and the teams are constantly checking all threads and answer all questions in a timely manner and with the highest quality as possible.
To your question.
Basically there are two methods to work with peripherals and communication interfaces in particular. Interrupts and polling.
Polling is the easiest way from a programming point of view, as you only have to check a flag of the peripheral, and when it is set you go on with your code. This on the other hand has some major disadvantages.
1. While polling (=waiting) for a flag, your CPU/peripherals cannot do other things. So if you want to do an ADC measurement in between you cannot as you are waiting for the UART receive
2. While waiting you are in active mode and consume a lot of power.
This is a how you would wait for a UART byte.
while( !(UCA0IFG & UCRXIFG) ); data = UCA0RXBUF;
Interrupts on the other hand are a little bit more difficult to setup, but clearly have advantages in embedded programming as they overcome the challenges I described above.
So I strongly recommend to use interrupts whenever possible.
Best regards,
Andre
Hello Ashokkumar,
As Andre pointed out, all of our example code for our devices is contained within TI Resource Explorer -> Software -> MSP430Ware. you can find the TI Resource Explorer within CCS or at our cloud version at http://dev.ti.com/tirex/#/ . From there navigate to Software -> MSP430Ware -> Devices -> MSP430F5xxx_6xxx -> MSP430F67791 -> Peripheral Examples -> Register Level.
Here you will find all the available code examples for the device. Typically, these are interrupt based and not polling, but Andre has demonstrated how to do polling in the thread above. If not contained with the other code examples, then we do not have an example for your exact scenario. However, your requested coding type can be done with the information contained within the User Guide, provided code examples, and the demonstrated method Andre showed above. The rest is an exercise left for the reader to perform.
**Attention** This is a public forum