futz
Active Member
Well, mine is missing the config line. I need to add one. It's assuming you're setting it with MPLAB.I'll give that a try. I'm sure with Bill's code it's something basic I'm missing in terms of writing, compiling, programming the PIC.
Here's a bad, but working, config line, shown in context with the preceding two lines:
Code:
LIST p=16F88
include "P16F88.inc"
__config _CONFIG1, 0x3f2a
No.1) I open up MPLAB.
2) I select File> New.
3) This opens an "Untitled" window, which I notice is very bare, as in no code or even PC numbers in the margin when I type stuff in. That's new to me, because they're always there when you compile from GCBASIC.
4) I copy and paste in futz's code, but the text is all black, as in no colour-coding that I usually see in a compiled GCBASIC program. Also, the "program," "release from reset," etc icons are not present.
That's where I'm at. Can you get me to point B?
Do this:
1. Start MPLAB
2. Click Project/Project Wizard
3. Click Next
4. Select your exact MCU from the list and hit Next
5. Select your language toolsuite (Microchip MPASM Toolsuite) and Next
6. Create a directory for it and a New Project File in that directory and Next
7. Hit next at Step Four as you don't have a source file saved yet
8. Hit Finish
9. Click Project/Add New File To Project. Be sure you're pointing to the correct directory. Name the file something.asm and hit Save.
10. Paste the source code into the window and hit CTRL-S
Assemble and program at will
Last edited: