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.
Hello friend:
when I used msp430afe253 to measure current(50hz,sample 120 points),but result is unstable,looks like adc's switch time isn't fast enough?or some suggestion?thx.
system is looks like following:
1)none extended crystal oscillator is used.(so default:dco is 1M,and aclk = vlo = 12k).
2)SD24_init is as following:(SD24OSR_1024 is better,sampling data is more stable.but when we finished a sample cycle(20ms),it looks like more than 300ms,then these sampling data shouldn't be right.)
3)we set TA timer as 50*120 hz.(as following)
4):TA's ISR is STARTING sd24 ADC covert.
5)SD24 ISR is like following:(we just get high 16bit,ignore low 16bit)
so,my question is :
how can i setting/init,then i can sample 120 points in 20ms?(none any extended crystal oscillator).
any errors/understanding is wrong in above code?
Hi
1. why you configure the SD24INTDLY_0 in SD24CCTLx register ? I know that have no affect with the code but we should avoid this.
2. What's the reference for your ADC? If you use the internal reference have you enable it?
3. Have you check the timer's interrupt frequency is 6K?(You can toggle a GPIO in the Timer's ISR)
4.You have using two channels right? How about just one channel?
Best regards
Gary
Hi gary:
thx for your information.
1),yes.here is some mistake .i'll corrected it.
2)my ADC voltage is come from outside,so i haven't enable here.
3)yes,timer A's frequency is 6K,and i checked it already.
4),yes,i have using two channel,and just debug 1 channel,if its work fine ,then should be ok in another channel.
I 'll do some test according to your info and above's reply.
Hi
Any update about the issue? If not could you upload the latest project to reproduce the issue from my side?
Best regards
Gary
Hi Gary:
thx for your help,and i've solved this issue already when i make ADC's frequency up to 8M.and sample value is ok.
it can be closed.
RGDS.
jonny.
**Attention** This is a public forum