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.

}} el<strong>se</strong> {_delay_us( 100 );t++;if( t == 10 ){t = 0;milli<strong>se</strong>conds--;if( milli<strong>se</strong>conds == 0 ){return;}}}}}/*************************************************************************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 ){DDRA &= ~(1

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

Saved successfully!

Ooh no, something went wrong!