Sorry to post so soon after my last thread, however I have stumbled across a problem with the porta pins on my 16F627 microcontrollers.
Say I program this into the microcontroller for testing:
loop:
HIGH porta.0
PAUSE 500
HIGH porta.1
PAUSE 500
HIGH porta.2
PAUSE 500
GOTO loop
The ports should then turn on one by one and stay on until the microcontroller is reset. However, they don't. Porta.0 will come on for 1/2 a second, go off, then a.1 will come on for 1/2 a second, turn off, and so on. So I am getting an output, but it's not correct.
I know that 16F628 ports default to analogue and I thought the case might be similar with the 627, so I added CMCON=7 at the start of the code. No luck with that either.
Can anyone shed some light on this problem?
Matthew
Bookmarks