Yeah, I think I might have a go at the BUTTON statement...

Let me go away and RTFM first, have a play, try and get something together before bailing be out

Before I start though, any comments on configuring PORTA (inc MCLR) for in/outputs ??

Malc