DiscoEd
- 28th December 2009, 03:25
Greetings,
I've been experimenting with my newly acquired Pickit3 Debug Express.
So far, I have been very successful in programming the 18f45k20 demo board using the MPLab IDE and the C18 compiler.
Once I was sure that the board was working, I decided to have go at it using PBP. Unfortunately, I can not get the LED blink on PORTD.0 (or any other pin for that matter.) I've been beating my head against this for three days.
I've tried the following...
Compiling and Programming from within MPLAB.
Result: (Seemed to put the code into the program memory, but wouldn't blink the LED)
Compiling in MPLAB and Programming with PK3CMD.exe
Result: (Seemed to put the code into the program memory, but wouldn't blink the LED)
Compiling with PBPW and Programming with PK3CMD.exe
>PBPW -aMPASMWIN -P18f45k20 blink
followed by..
>PK3CMD -P18f45k20 -fblink.hex -m -v3.25
Result: (Seemed to put the code into the program memory, but wouldn't blink the LED)
Everything seems to be working according to all of the documents I've read. Looking at the code in program memory it even seems plausible, but it just won't blink the LED.
If someone has a working snippet of code that has worked for the 18f45k20 to blink and led, I'd be grateful if you could please post it. Maybe then I could figure out what I'm doing wrong.
Thank you,
DiscoEd
I've been experimenting with my newly acquired Pickit3 Debug Express.
So far, I have been very successful in programming the 18f45k20 demo board using the MPLab IDE and the C18 compiler.
Once I was sure that the board was working, I decided to have go at it using PBP. Unfortunately, I can not get the LED blink on PORTD.0 (or any other pin for that matter.) I've been beating my head against this for three days.
I've tried the following...
Compiling and Programming from within MPLAB.
Result: (Seemed to put the code into the program memory, but wouldn't blink the LED)
Compiling in MPLAB and Programming with PK3CMD.exe
Result: (Seemed to put the code into the program memory, but wouldn't blink the LED)
Compiling with PBPW and Programming with PK3CMD.exe
>PBPW -aMPASMWIN -P18f45k20 blink
followed by..
>PK3CMD -P18f45k20 -fblink.hex -m -v3.25
Result: (Seemed to put the code into the program memory, but wouldn't blink the LED)
Everything seems to be working according to all of the documents I've read. Looking at the code in program memory it even seems plausible, but it just won't blink the LED.
If someone has a working snippet of code that has worked for the 18f45k20 to blink and led, I'd be grateful if you could please post it. Maybe then I could figure out what I'm doing wrong.
Thank you,
DiscoEd