ATMEL Microcontroller A/D Implementation and Sine Wave Monitoring