K8048 / VM111 problem

Hello,
I’m trying to program using a Vellaman VM111 board using a PIC 16f627, MPLAB and progpic2.
I have no problem programming the board to do what we want, but cannot get the pic to operate when taken from the board and placed on its own separate protoboard.
I’m pretty sure I’m following the correct procedures, voltage, pin connections etc as shown in other electronics sources.
I’m not too sure though about the configuration statement at the start of my programming.
Everything works well (on the board) when I use the statement… __ CONFIG 0x3f61
Could anyone tell me if this configuration is correct, for when I want it to use it’s own oscillator, and want pin 4 to use the master clear function.
If not, could you advise me on what to do.
Thanks

HELLO THERE !

I presume, that “on the board” means, while your microcontroller is sitting on VM 111, and “it’s own oscillator” means the internal osc. option instead of xt-osc., so that you can avoid the need of another
quarts crystal on your breadboard ?
(I often use this method myself when experimenting.)

If so: One simple approach will be to open PICPROG2, load your HEX-file in question, and change the
value “3F61” in the config window to “3F70”, reprogram the PIC, and you still preserve the MCLRE-
pin functionality. Then he’s free to go !

JP3 + JP4 have from now on no significance, because the internal oscillator circuitry no longer have
a connection to the outside world, and when you decide to move the PIC to the breadboard, you
can use these two additional pins as input’s/output’s as you like.
(for clarity’s sake: under these conditions, you can still test it onboard VM 111.)

The more demanding approach: you make a copy of your ASM-file in question, rename it, to avoid
“tampering” with the original, and open the copy, make these changes: *, save it, let MPASMWIN.EXE
do the rest, and then you have a new, different HEX-file.
(It’s good practice to have the correct configuration already in the ASM-file, someone have told me.)

  • First of all: Find the line starting with “__config”, then find and DELETE _XT_OSC, then type in
    _INTRC_OSC_NOCLKOUT instead.

Hope it works !