Hi Ken,
DIG is for digit. Nothing in there needs any include file. Dig is covered in the manual, but you have to look around a little bit for it. DIG returns the value of a decimal digit.
C var byte
D var byte
C=123
D = C DIG 0 ; Makes D = the lowest digit of C (3)
When I mentioned debug, I meant the DEBUG command. It lets you send serial out of any one of your PIC's pins. Then you can use the Uart tool on your Pickit2 to read any value you want. Much simpler than Mplab debugger if you ask me.
![]()




Bookmarks