Problem: I need an MCU with more IO pins and at least as powerfull as the ATmega328p to fill a "gap".
Constraints: needs to either be supported or supportable by the Arduino IDE, or MPIDE, or GCbasic, as well as being DIP (through hole) and inexpensive.
Background: I can pretty much cover most MCU needs for low end requirements and program then successfully with, ATTiny 85, PIC16c54, PIC16c57 and Atmega 328p. I don`t play the "Fan Boy" game with only sticking to One processor type, I beleive in using the right tool for the job only, I will exclude the use of ARM for the time being as I have No experience with them and can`t afford the time needed for the learning curve.
I`v considered using the 8051 and derivatives but can`t seem to get them to do anything at all (the IDE`s are over complicated too!).
I`m leaning towards the Atmega32 sort or the 644.
now to My understanding (and Please correct me if I`m wrong) the atmega 32, is the same as the 8, 16 or 64 etc... with just More or less memory area.
and I`m fairly sure they`re not to be confused with the 1280, or 328 (for obvious reasons) and maybe not even the 644.
Tools: I have a USBASP, I can also use an arduino as an ICSP programmer, I have PICKIT2 (but no idea how to use it), I have MPIDE, Arduino IDE, and Great Cow Basic.
I`m not after anything Hyper powered over the top baby Monster! of a MCU, just something with more IO pins and at least 32k of mem and just 8 bit.
I already have an Atmega32, and I tried to put the arduino bootloader onto it with the USBASP, and it did "Something", but I`m not entirely sure what, but I could read the code back off it again, so that was a sort of Bonus (all other tries didn`t even do that much!).
does Anyone have Working experience of using a 40pin DIP ic, that can be programed with the Arduino IDE?
note: I have tried ideas on Chinglish sites to no avail, and also added the profiles to the arduino IDE, but when you read them, it says ****Doesn`t work**** in the header anyway 
can someone whom has DONE this themselves before, and got it working, help me out a little?

