Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Using pic micro controller with g540 programmer

Status
Not open for further replies.

maxim10373

Advanced Member level 4
Full Member level 1
Joined
Feb 26, 2010
Messages
116
Helped
1
Reputation
2
Reaction score
2
Trophy points
1,298
Activity points
2,066
hello,
I am try to burn a file with G540 programmer and its showing some messages I attached as files.I am Using PIC18F452 micro controller. Hex file loading and burning successfully
but circuit not working. I also attached the hex file.please help

Ajitkumar
 

Attachments

  • screen1.jpg
    screen1.jpg
    60 KB · Views: 179
  • screen2.jpg
    screen2.jpg
    214.5 KB · Views: 167
  • screen3.jpg
    screen3.jpg
    214.6 KB · Views: 162
  • screen.png
    screen.png
    105.8 KB · Views: 188
  • 123.pdf
    34.6 KB · Views: 161

If you have enabled the MCLR pin then you have to pull up MCLR pin to 5V using a 10k resistor. If you have enabled WDT then disable it. If you are trying to blink an LED the if you have used PORTx for LED then replace it with LATx.
 

Your programmer is telling you that there are no configuration settings contained within the hex file.

I have no idea what configuration settings would suit your hardware, but try the attached file, which requires crystal oscillator to function:

(rename junk3.txt to junk3.hex)

View attachment junk3.txt
 

Dear
Thanks for valuable reply.
I don't have more experience but I have completed the hardware.
(AN893).according to this attachment please tell me the MCLR is enabled.
Attached here with asm file also.I am confusing about the program burning method is
correct or not.

regards
Ajit
 

Attachments

  • pic18f.jpg
    pic18f.jpg
    77.6 KB · Views: 175
  • 3im_vf.rar
    4.5 KB · Views: 133

The circuit has the pullup resistor for MCLR pin. The code is lacking CONFIG bits settings. Are you using MPLAB IDE ?
 

I am guessing that maybe the config settings are shown in file <3im_vf.inc>

Your hex file needs to include these config settings
 

Hello Sir
Do any changes in this field?
 

Attachments

  • screen5.jpg
    screen5.jpg
    133 KB · Views: 156

Attachments

  • screen6.jpg
    screen6.jpg
    131.4 KB · Views: 168
  • 00843a.pdf
    294.7 KB · Views: 154

The problem is due to the fact that the G540 does not set the configuration settings from the HEX file. Instead you have to set the configuration settings yourself by using the "encrypt" button.
 

Tested with this code .problem still

- - - Updated - - -

I don't know which configuration I should set!
If i buy a PIC programmer can this problem solve?
 

To be honest I tried, a long time ago, G540 programmer; but Chinese product.....never works.
It was better for you to buy PICKIT2 or 3 rather than G540 programmer.
P.S: on what frequency your PIC is running? change the oscillator frequency bits
 
To be honest I tried, a long time ago, G540 programmer; but Chinese product.....never works.
It was better for you to buy PICKIT2 or 3 rather than G540 programmer.
P.S: on what frequency your PIC is running? change the oscillator frequency bits

The crystal frequency is 20Mhz
 

hello
thanks for All
I was used 20Mhz Oscillator instead of Crystal.
studied about the difference of Oscillator and crystal problem solved.
I need one help for, I need to star the circuit with a hall sensor +5 volt (according to diagram switch S1)
most halls sensor (like 43E) is giving negative output. for switching , any comparative circuit suit for switching please can you provide a circuit diagram

Thanks once again****
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top