fix rebase module05
This commit is contained in:
@@ -1,14 +1,6 @@
|
||||
#include "header.h"
|
||||
|
||||
// Table 14-6. Port C Pins Alternate Functions
|
||||
// - PC0 -> ADC0 (ADC Input Channel 0)
|
||||
// -> PCINT8 (Pin Change Interrupt 8)
|
||||
//
|
||||
// 24.2 : The ADC generates a 10-bit result which is presented in the ADC Data Registers, ADCH and ADCL
|
||||
//
|
||||
// START A CONVERSTION in single conversion mode :
|
||||
// - disabling the Power Reduction ADC bit, PRADC
|
||||
// - writing a logical one to the ADC Start Conversion bit, ADSC
|
||||
|
||||
void adc_init(uint8_t prescaler_value) {
|
||||
ADMUX = (1 << REFS0); // Table 24-3 : set voltage reference, AVCC with external capacitor at AREF pin
|
||||
|
||||
Reference in New Issue
Block a user