Saving  adc samples.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Saving  adc samples.

2,377 次查看
fredycolombia
Contributor I
Hi all,

My question is this,   I am using  adc in jm60 and I want to  save de samples acquired into the memory of the mcu, about 100 samples and then I want to call one by one to send to usb and repeat the process.
¿How I can save de samples and then call them one by one?

thanks in advance,


Fredy.
标签 (1)
0 项奖励
回复
4 回复数

1,137 次查看
bigmac
Specialist III
Hello Fredy,
 
Assuming that the ADC samples are being cyclically updated, which seems to be the case, each ADC sample might be stored within an array variable of a suitable length.  Each array element can then be written and read, as required.
 
If you were considering non-volatile storage in flash, this is not a good idea for data that is frequently updated.
 
Regards,
Mac
 
0 项奖励
回复

1,137 次查看
fredycolombia
Contributor I
thanks for your answer,
 
I was thinking in this option because when I use adc in JM60  and display the samples, the signal  is good until 20 Hz, after it frecuency don't  look good, ¿the problem can be the configuration of the adc?
¿What could be the best form to configurate and use adc to see a good signal  at least at 1Mz?
I put the signal to the   adc pin and send the samples using usb,   I have to do any more for best results?
 
Thanks for your answer.
 
regards
fredy
 
0 项奖励
回复

1,137 次查看
JimDon
Senior Contributor III
To see "good" signal, you would need 10 samples per second? Even that would not be a good signal.


You will not make it to 1Mhz.
If you make to 10Khz, you would be doing well.


0 项奖励
回复

1,137 次查看
fredycolombia
Contributor I
thanks Jim,

that's a good information, I was in a mistake about the frecuency using adc,   what  I have to consiter to reach 10Khz using adc in JM60?

thanks,
fredy
0 项奖励
回复