K8076 and PIC18F2550

I decided that I’d like to start programming PIC microcontrollers and so I decided to buy the K8076 programming board. But up to now I wasn’t able to write/get an example code which only toggles one portpin. I tried differnet things, but after downloading, the PIC seems to do nothing. I also tried another uC, but it was the same.
What can be the problem? Maybe anyone already has a simple example (c/asm/hex)?

thx

What are you using to actually “run” the programmed PIC?

As far as I understand it, the K8076 is a PIC programmer only. Not a PIC experiment environment.

Yes, it’s just a programmer.
However, when I toggle a port, I should be able to measure it with a Multimeter (5V / 0V). I didn’t connect a LED or any other hardware to the uC.

Just to be sure, after programming it you leave the PIC in the programmer and measure what happens at the output ports?

That would assume the PIC is actually running its program while the programmer is idle. Are you sure this is the case?

There is no x-tal on the board so the PIC should be programmed AT LEAST to use its internal RC oscillator or otherwise it won’t do anything (no clock). Use power-on reset instead of MCLR also. Perhaps immediately after programming it is possible that it won’t work but than it should after powering the board off and on again after a few secs.

Thanks for your help, I just got my first program running :slight_smile:
My Problem: the programm I used was written for the PIC4550 and I didn’t change the clock configuration --> no clock

The PIC starts the program automatically, without putting it in an external circuit or power it off and on again.

One last question: Is there an enhanced datasheet for the K8076? Because I don’t know what the LEDs (LD2 - LD4) are for and I would be glad to know how the whole board works.

thx

Thanks for your feedback and happy it works!

ALWAYS double check the settings (CONFIG word) of your PIC because faults are easily made there. :wink:

You can deduct the function of LD2…LD4 out of the schematic diagram:

LD2: Program data (“writing” the PIC?)
LD3: Program clock
LD4: Programming voltage active

There’s a big chance that it is a smart idea not to place or remove a PIC while one of these LED’s (specially LD4) is lighting up. :wink: