The ATMEGA324PA-AU is a 8-bit high-performance AVR RISC-based Microcontroller Unit combines 32kB ISP flash memory with read-while-write capabilities, 1kB EEPROM, 2kB SRAM, 32 general purpose I/O lines, 32 general purpose working registers, a real time counter, three flexible timer/counters with compare modes and PWM, two USARTs, a byte oriented 2-wire serial interface, an 8-channel 10-bit A/D converter with optional differential input stage with programmable gain, programmable watchdog timer with internal oscillator, SPI serial port, a JTAG (IEEE 1149.1 compliant) test interface for on-chip debugging and programming and six software selectable power saving modes.