I think I'm starting to get some progress.
If I write the code, as below, my ONA does not turn on when measured with a multi-meter.
But if I put a LED over PORTD.0 (ONA) AND GND and I press the on button, it flickers.
So with the loop ONA does not stay high, but flickers
Without the loop ONA does stay high?
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=477&stc=1" border=1">
Bookmarks