12.07.2015 Views

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

eturn;}}}}}/*************************************************************************ADC FUNCTIONS - ADC FUNCTIONS - ADC FUNCTIONS - ADC FUNCTIONS**************************************************************************/// returns a 10 bit result from an AD conversion from a certain ADC channel//Channels 0-13// A 10 bit result needs to be loaded in an integer variableunsigned int READ_ADC_INT_CHANNEL( unsigned char channel ){// Fosc/32; channel; ADONADCON0 = 0x41 + ( channel

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!