Saving  adc samples.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Saving  adc samples.

1,555 Views
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.
Labels (1)
0 Kudos
4 Replies

315 Views
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 Kudos

315 Views
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 Kudos

315 Views
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 Kudos

315 Views
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 Kudos