I have an MSP430 & MSP432 and I am trying to figure out how to sample a 5kHz wave. I have been using Energia and the problem I am running into is the analogread() function only samples once every 100us or 10,000 times per second. This would effectivley give me only 2 samples of this wave which is horrible! Is there a way to speed of this function or some work around I am not finding?
I have read some about modifying the analogRead() in 'hardware/msp430/cores/msp430/wiring_analog.c'. but I am unsure of what exactly I need to change.
Thanks,