OK, I'm now going to kick you where it hurts with my spikey heel just to make you feel doubly bad...
Your example code...
Fault 1.
The 16F628A has ANALOG feature pins on PortA. If you don't switch the ANALOG features OFF first, some of those pins won't work.
Fault 2.
Look at the PBP Manual. HIGH and LOW commands only work on an individual PIN and not on an entire PORT!
Fault 3.
Oh, and the 'device=' statement probably means you're on the wrong forum... so you defiitely deserve that kick! *smiles*
Bookmarks