Advertisement
Guest User

Untitled

a guest
Jun 26th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. int READ_ADC()
  2. {
  3. ADC_SoftwareStartConv(ADC1);//Start the conversion
  4. while(!ADC_GetFlagStatus(ADC1, ADC_FLAG_EOC));//Processing the conversion
  5. return ADC_GetConversionValue(ADC1); //Return the converted data
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement