Hmm, never realized PORTA and B were in there.
That's odd about PORTB pointing to an unimplemented register. It keeps the compiler from finding problems like what Gary had.
12F675 How do I address thee, let me count the ways.<pre>PORT TRIS<br>-------------<br>GPIO TRISIO<br>PORTA TRISA<br>PORTL TRISL<br>PORTH TRISH</pre>or you can use PIN numbers...<pre>HIGH 5 ; will set GPIO.5 to OUTPUT HIGH<br>or <br>TOGGLE 5</pre>Although a bit strange...
<pre>TOGGLE 13 ; will also toggle GPIO.5</pre>
OK, so that's only 6, who's got number 7 ??
Bookmarks