Hi,Malc

The 16F876A or 877A ( 40 pins ) are the ones ( huge memory, no internal bugs ...etc ...)

BUT, as they can do lots more they do need lots more understanding of their different options ...

Why don't you try to have a good working simple circuit before building the Babel tower ... you're on the soapy side ... still time to become humble.

Alain