pic18f6680

chz12

Newbie
Joined
Dec 18, 2024
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
35
Hello everyone, I am a student of Mechatronics Engineering and I am doing a project with a PIC18F6680. However, I don't know how I can program it. I made a code, but when I try to upload it to the PIC it gives me an error.

Context:
I am trying to make a program in MPLAB X IDE to then get the .hex file and with that file upload it using the Wellon Universal Programmer software and the Wellon Programmer VP898 programmer.

My question is: do some bits have to be enabled from the time the code is generated in MPLAB X IDE or do they have to be configured in the Wellon Universal Programmer software?

Please, if anyone knows how to solve this or has tried something similar, I would greatly appreciate your help.
I am lost in my project.
 

What error is produced? Is it an error from the VP898 or is it a problem of the PIC not running after being programmed?

Usually all the bits are embedded in the .hex file but configuration bits can sometimes be manually overridden.

Brian.
 

I want to think that the problem lies in how the PIC is configured, since when trying to load a program or modify the one that is already in the PIC, it does not allow me to do so. I do not understand why this happens if the PIC is completely new

For example, if I have a .hex file that was made with the MPLAB X IDE software, it will be compatible with the Wellon VP898 and if I want to load this same file into a PIC18F6680, is it possible to perform this operation? I have tried several times, but I cannot load the program. I am not sure if the problem is in the .hex file or in the Wellon configuration.
 

I guess nobody knows if said Wellon VP898 has correct support for PICF6680. But even if so, it has unlikely MPLAB X compatible in-circuit debugging features. Why not using a simple PICkit programming adapter?

You didn't yet tell on what kind of PCB the processor is mounted and how you connect the programmer. Does the programmer recognize the processor at all?
 

It is an adapter for the pic which I connect to the wellon
If I can read the program that the pic has with the wellon, it gives it to me in .hex, what I am trying to do is upload a new one which I don't know
 

Attachments

  • t12.jpeg
    183.9 KB · Views: 4

From what I can see in the PIC18F6680 data sheet, none of the packages can be used with a ZIF socket that the Wellon VP898 has, so I assume that is the reason for the (I must say horrible) wiring you show in your picture. I take it that you are attempting to use one of the Wellon adapters to give you access to the chip while it is still in the circuit. (Please correct me if I'm wrong and tell us how you have connected to the MCU.) (Also that programmer looks. like it has had a very hard life - do you knwo that it still works correctly at all?)
What is the error you are getting - in full - and in response to what command?
Is the MCU in circuit and, if so, what else is connected to the \MCLR\, PGM, PGC, PGD pins, and is the MCU powered by the circuit or the Wellon (if that is possible)
Do you have access to any other programmer?
We really need better quality information ("... gives me an error" is useful) if we are to try to help.
Susan
 

Cookies are required to use this site. You must accept them to continue using the site. Learn more…