LMAO!
I posted YOUR program above! I googled and searched this forum to try and find where I got it from but never found it.
I'll have to look this over again, I must miss something obvious. You have GPIO, I only see PORT and TRIS registers as relevant on a 16F877.
Robert
Bookmarks