Skip to content

Instantly share code, notes, and snippets.

View inkwisit's full-sized avatar

Subha Sarkar inkwisit

View GitHub Profile
@inkwisit
inkwisit / adc.c
Last active June 12, 2016 06:51
Microcontroller 8-bit ATmega32A
#include"config.h"
#include<avr/io.h>
#include<util/delay.h>
//auto triggering mode is not used here in this library .. (ADATE in ADCSRA)
//differential input ADC has not been included in this library .. ADMUX (MUX[4:0])
//see in the Internet how the shift register is optimized for the constant variable shifting ..
//whether a constant value is assigned or shifting process is left for the processor ..