Marks256
New Member
I think i have everything hooked up right, because MPLAB is able to verify the target, and when i try to program the target, mplab says it was successful;
I am trying to program a PIC16f84a using Bill's (blueroomelectronics) poster. I can't get the LED to do anything! I know for a fact that the LED is in correctly. I copied the circuit exactly, except for the crystal. Since i didn't have a 4MHz crystal, i am using a 3.588513MHz crystal.
I really don't know what i am doing wrong, but this is really making me mad. I just want to see the damn led blink!!!!
Here is the code i am trying to execute:
with an LED connected to RB0.
Please help. I just want the led to show some sign of life!
Code:
Connecting to MPLAB ICD 2
...Connected
ICDWarn0030: MPLAB ICD2 is about to download a new operating system. If MPLAB IDE is just starting, it will appear to "hang" at the splash screen. Please be patient. MPLAB IDE will finish it's intialization after the OS is downloaded. (Note: You may wish to select to ignore this warning in the future.)
Downloading Operating System
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
...Reading ICD Product ID
Running ICD Self Test
...Passed
...Download Operating System Succeeded
Setting Vdd source to target
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Programming Target...
...Erasing Part
Verifying...
...Verify Succeeded
...Programming succeeded
17-Jul-2007, 11:22:28
MPLAB ICD 2 Ready
I am trying to program a PIC16f84a using Bill's (blueroomelectronics) poster. I can't get the LED to do anything! I know for a fact that the LED is in correctly. I copied the circuit exactly, except for the crystal. Since i didn't have a 4MHz crystal, i am using a 3.588513MHz crystal.
I really don't know what i am doing wrong, but this is really making me mad. I just want to see the damn led blink!!!!
Here is the code i am trying to execute:
Code:
;*** WDT reset toggles RB0
list p=16F84A
include <p16F84A.inc>
__CONFIG 0x3FF5
org 0
bsf STATUS, RP0
movlw b'00001110'
movwf OPTION_REG
movlw b'11111110'
movwf TRISB
bcf STATUS, RP0
movlw 1
xorwf PORTB, f
sleep
end
with an LED connected to RB0.
Please help. I just want the led to show some sign of life!