PIC-K150 and PIC16F628A Programming Error

Av | 12. april 2023

Struggling with programming PIC16F628A-I/P
Recently I received some PIC16 from Ebay i had ordered time back, because i wanted to upgrade my PIC-K150 software and in that i ran into many problems.
I connected my PIC-K150 and was ready to upload new software, but my PIC-K150 did not recognize my new PIC16F628A-I/P. The first i was thinking about was that i had received faulty PIC16F628A-I/P IC, and i started to investigate on the internet about this problem.

On the internet I discovered many had problem with this, and i remembered that many of my friends use to say about me is that if i have a problem, i never give up on solving it, no matter how long it takes. (Smile)

And, Yes, i planned not to give up, but i wanted to find a solution. My K150 never gave me problems before,  but we know that many things can happen. So the first i had in mind was to check out another way to program this device.

In this, i remember that Pickit3 maybe was the one that could help me in that situation. I carefully put PIC16F628A-I/P on a breadboard, connected 5 wires and opened my Pickit3 Programmer. And what happened was a error message in return that the device was not detected.
I disconnected all cables from the PIC16F628A-I/P and started over again because i maybe have done some wrong connection. And the same happened again.
After several try, i opened MPLAB and created a small program, and i switched Pickit3 into MPLAB Mode.
I changed some Fuses in the program i made, and i started to upload again.
The Pickit3 was working on it, but then i got error that it was not able to write to PIC16F628A-I/P
More and more i was wonder what is going on here, and i reverted Pickit3 to programming mode in programmer, and i tried to read from the PIC16F628A-I/P.
It then succeeded, i did not get any error, and happily i was able to program it.
It also came out with correct fuses set, (3F2A) and upload was success.
I continued with a Verification test, and it all was OK.

I was then thinking, maybe now my PIC-K150 is able to read and program this PIC16F628A-I/P, but NO, it did not recognize my PIC16F628A-I/P.

If one of our readers have figured out a solution, then we will be very happy to know.
Send us a letter to radio.free.norway@hotmail.com and we will be happy to read and answer you!

PICKIT3 PIN ——————-  PIC16F628a-I/P PIN
1. Vpp/MCLR   ——————> 4
2. VDD Target ——————-> 5 Target Volt
3. VSS (ground) —————–> 14 Ground
4. ICSPDAT/PGD —————> 13
5. ICSPCLK/PGC —————-> 12
6. — No connection

Thank you all, and happy day!

My Fuses:

// CONFIG
#pragma config FOSC = EXTRCCLK // Oscillator Selection bits (RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, Resistor and Capacitor on RA7/OSC1/CLKIN)
#pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT enabled)
#pragma config PWRTE = OFF // Power-up Timer Enable bit (PWRT disabled)
#pragma config MCLRE = ON // RA5/MCLR/VPP Pin Function Select bit (RA5/MCLR/VPP pin function is MCLR)
#pragma config BOREN = ON // Brown-out Detect Enable bit (BOD enabled)
#pragma config LVP = OFF // Low-Voltage Programming Enable bit (RB4/PGM pin has PGM function, low-voltage programming enabled)
#pragma config CPD = OFF // Data EE Memory Code Protection bit (Data memory code protection off)
#pragma config CP = OFF // Flash Program Memory Code Protection bit (Code protection off)

// #pragma config statements should precede project file includes.
// Use project enums instead of #define for ON and OFF.

LATEST UPDATE:
I have found a new software that works with PIC-K150 and can read and program PIC16F628A-I/P in normal way.
Here is the Link: https://www.phippselectronics.com/support/pic-k150-icsp-programmer-phi1072218/

Also windows profilic driver can be found.
Happy coding.

 

Legg igjen en kommentar