Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 1 month ago.
FastAnalogIn for Nucleo L152RE (fast ADC)
I am trying to increase the ADC speed on the Nucleo board. I had previously used FastAnalogIn() on another board, but the driver does not yet support he Nucleo family. So I am trying to use the device driver directly. I use the command: ADC_continuousModeCmd(FunctionalState = ENABLE); Followed by reading the value using: ADCvalue = ADC_GetConversionValue(ADC1); This complies OK, but gets gets a value of zero all the time unless I insert the following command in between the two: ADC_SoftwareStartConv(ADC1); However this final command seems to be putting it back into single conversion mode (slow). Any ideas what a solution to this might be. Also if there is simple command to reduce the sampling time this would work as well. I am trying to get a sample in less than 2 us. Right now it is taking about 12 us.
It has a 1MS/s ADC according to the specs, so that hsould be able to also work without contionious conversion. But I wouldn't know how to do it on your board.
posted by Erik - 27 Mar 2014