High performance Microchip 8-bit AVR® RISC based microcontroller, 16 KB ISP flash memory, read-write capabilities, 512B EEPROM, 1 KB SRAM, 32 general-purpose I/O lines, 32 general-purpose operating registers, a true-time counter, three flexible timers/counters with comparison modes and PWM, two USARTs, a byte-oriented Two-Wire serial interface, optional with programmable gain 8-channel 10-bit A/D converter with coupled differential input stage, programmable watchdog internal oscillator timer, SPI serial port, a JTAG (IEEE® 1149.1 compliant) test interface for on-chip debugging and programming, and six software-selectable power-saving modes . The device operates between 1.8-5.5 volts. Executing powerful instructions in a single clock cycle, the device achieves throughput approaching one MIPS per MHz by balancing power consumption and processing speed.