I've been at this for hours. Please help.
Running on Windows 7 Ultimate
PBP 2.45, Microcode Studio Plus 2.1.0.7, MPLAB IDE 6.50, PICStart Plus
Microcode is configured for PBP compiler, MPASM Assembler and PICStart Plus Programmer
Everything seems happy. This has all worked before. I know it's me. :-P
Define OSCCAL_1K 1 ' Calibrate internal oscillator
LED Con 0 ' Alias GPIO.0 to LED
ANSEL = 0 ' Set all digital
CMCON = 7 ' Analog comparators off
mainloop:
Low LED ' Turn on LED connected to GPIO.0
Pause 500 ' Delay for .5 seconds
High LED ' Turn off LED connected to GPIO.0
Pause 500 ' Delay for .5 seconds
Goto mainloop ' Go back to mainloop and blink LED forever
End
I copied this code from the forum as well as trying several others. Nothing seems to work.
From Microcode, I hit "Compile and Program". It opens MPLAB. I enable the programmer, wait, and hit the program button.
MPLAB pops up a configuration warning:
"Configuration Memory has not been updated. Press "Yes" to accept the current configuration or "No" to abort the operation.
I don't know how to update the configuration so I've been hitting "yes".
The PICStart "programming" light comes on and seems to program.
Another Pop-up... "Calibration Memory Not Programmed"... "Calibration Memory is already programmed."
I hit ok.
"Programming/Verification completed successfully!"
I pull the PIC and insert it into the breadboard.
No joy.
Breadboard:
Vdd +5v
Vss Common
GPIO.3 (Pin 4) connected to +5 through 1k resistor
GPIO.0 (Pin 7) connected to LED to 270 ohm resistor to common.
LED orientation checked.
I reinstalled all software using "Administrator". Everything seems ok. Where am I going wrong?
Please help. THANK YOU!
Ross
Running on Windows 7 Ultimate
PBP 2.45, Microcode Studio Plus 2.1.0.7, MPLAB IDE 6.50, PICStart Plus
Microcode is configured for PBP compiler, MPASM Assembler and PICStart Plus Programmer
Everything seems happy. This has all worked before. I know it's me. :-P
Define OSCCAL_1K 1 ' Calibrate internal oscillator
LED Con 0 ' Alias GPIO.0 to LED
ANSEL = 0 ' Set all digital
CMCON = 7 ' Analog comparators off
mainloop:
Low LED ' Turn on LED connected to GPIO.0
Pause 500 ' Delay for .5 seconds
High LED ' Turn off LED connected to GPIO.0
Pause 500 ' Delay for .5 seconds
Goto mainloop ' Go back to mainloop and blink LED forever
End
From Microcode, I hit "Compile and Program". It opens MPLAB. I enable the programmer, wait, and hit the program button.
MPLAB pops up a configuration warning:
"Configuration Memory has not been updated. Press "Yes" to accept the current configuration or "No" to abort the operation.
I don't know how to update the configuration so I've been hitting "yes".
The PICStart "programming" light comes on and seems to program.
Another Pop-up... "Calibration Memory Not Programmed"... "Calibration Memory is already programmed."
I hit ok.
"Programming/Verification completed successfully!"
I pull the PIC and insert it into the breadboard.
No joy.
Breadboard:
Vdd +5v
Vss Common
GPIO.3 (Pin 4) connected to +5 through 1k resistor
GPIO.0 (Pin 7) connected to LED to 270 ohm resistor to common.
LED orientation checked.
I reinstalled all software using "Administrator". Everything seems ok. Where am I going wrong?
Please help. THANK YOU!
Ross