Have a look at the ATmega640... series, with 54/86 I/O lines in 64/100 pin cases, as used e.g. in the Arduino Mega.