I have managed to get a sample code of blinking the LEDs compiled and built into a hex file. I have managed to write the code onto a PIC18F2620 using a PICKIT2 programmer using pk2 in ubuntu. However, I can only run the microcontroller when I type in "pk2 -on" to turn on the power supply from the computer to the mcu. If I try to run the control code without a pk2 connected to be supplying the computer power supply to the mcu circuit (i.e. only connecting Vdd and Vss pins to the DC power supply and output pins), it seems that the code never executes. I'm suspecting that I'm doing something wrong with the MCLR pin. I haven't enclosed any software coding b/c I'm currently suspecting that it's a hardware problem. Does anyone have any ideas?
- posted
16 years ago