Atmel datasheet for the AT89C4051, a compact 20-pin 8051-compatible microcontroller with 4 KB of flash and an onboard analog comparator.