Part Number:MSP430FR5994
Hi all,
I am trying to write a very large (128kB at the moment) array to FRAM from the ADC. So far, I think I have set up the ADC to sample correctly, and have DMA transfers timed such that the sampling rate is 100 kHz.
My issue lies in the following code:
__data16_write_addr((unsigned short) &DMA0SA,(unsigned long) &ADC12MEM0); // Source fixed address (ADC12 memory) __data16_write_addr((unsigned short) &DMA0DA,(unsigned long) 0x24BFF); // Destination incremented address (FRAM, see datasheet)
The intrinsic functions I've found for write addresses are 16-bit, correct? And because they are 16-bit, I cannot access the register 0x24BFF in the FRAM? How can I make the destination address be recognized as 20-bit? I see other intrinsic functions, but none of them appear to be for addresses.
Currently, I get an error:
Description Resource Path Location Type
#770-D conversion from pointer to smaller integer MSP430FR5994_DAQ_main.c /16_GE_DAQ_v01 line 332 C/C++ Problem
This error applies to both lines of the above code.
I'm fairly new to this stuff, so any help is appreciated!
Thanks.