Hi,
I am using msp430f5436a for a university project- I have two questions:
My application is based on TI's user experience software.
In this software the ADC is activated by Timer B, and the DMA transffers the data to flash memory When the DMA is finished- it generates an interrupt.
I added a second interrupt generated by Timer A. The interrupt is actualy generated every 1/32 of a second,
but actual code is running only after 10 seconds, (every interrupt updated a counter, when the counter equals 320, the code is activated)
Every time the program reaches the code (after 10 seconds) the original interrupt generated by DMA does not work any more.
why is that? is there a missing configuration regarding the interrupt scheduling?
Another questions regards the frequency of the ADC12 in the user experience software:
Here is the ADC12 configurations:
ADC12CTL2 = ADC12RES_0;
ADC12CTL0 = ADC12ON + ADC12SHT02 ;
ADC12CTL1 = ADC12SHP + ADC12CONSEQ_2 + ADC12SSEL_2 + ADC12SHS_3;
the ADC12 is configured with SHT02 which means 16 clock cycles per sample + 13 clock cycles = 29 clock cycles.
The CONSEQ_2 is configured for repeated single channel.
the MCLK is configured for 16 Mhz, and therefor the ADC12 should be sampling in about 600khz, while it is actually sampling int about 8khz
why is that?
Thanks a lot!!
Ariel