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
Joined
Feb 26, 2010
Messages
111
Helped
1
Reputation
2
Reaction score
2
Trophy points
1,298
Activity points
2,033
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: 86
  • screen2.jpg
    screen2.jpg
    214.5 KB · Views: 85
  • screen3.jpg
    screen3.jpg
    214.6 KB · Views: 74
  • screen.png
    screen.png
    105.8 KB · Views: 90
  • 123.pdf
    34.6 KB · Views: 59

pic.programmer

Advanced Member level 3
Joined
Aug 19, 2015
Messages
773
Helped
141
Reputation
284
Reaction score
140
Trophy points
43
Activity points
7,531
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.
 

hexreader

Advanced Member level 2
Joined
Apr 7, 2011
Messages
544
Helped
196
Reputation
396
Reaction score
197
Trophy points
1,323
Location
England
Activity points
5,252
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
 

maxim10373

Advanced Member level 4
Joined
Feb 26, 2010
Messages
111
Helped
1
Reputation
2
Reaction score
2
Trophy points
1,298
Activity points
2,033
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: 87
  • 3im_vf.rar
    4.5 KB · Views: 56

pic.programmer

Advanced Member level 3
Joined
Aug 19, 2015
Messages
773
Helped
141
Reputation
284
Reaction score
140
Trophy points
43
Activity points
7,531
The circuit has the pullup resistor for MCLR pin. The code is lacking CONFIG bits settings. Are you using MPLAB IDE ?
 

hexreader

Advanced Member level 2
Joined
Apr 7, 2011
Messages
544
Helped
196
Reputation
396
Reaction score
197
Trophy points
1,323
Location
England
Activity points
5,252
I am guessing that maybe the config settings are shown in file <3im_vf.inc>

Your hex file needs to include these config settings
 

maxim10373

Advanced Member level 4
Joined
Feb 26, 2010
Messages
111
Helped
1
Reputation
2
Reaction score
2
Trophy points
1,298
Activity points
2,033
Hello Sir
Do any changes in this field?
 

Attachments

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

pjmelect

Advanced Member level 2
Joined
May 13, 2012
Messages
543
Helped
125
Reputation
250
Reaction score
121
Trophy points
1,323
Activity points
4,961
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.
 

maxim10373

Advanced Member level 4
Joined
Feb 26, 2010
Messages
111
Helped
1
Reputation
2
Reaction score
2
Trophy points
1,298
Activity points
2,033
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?
 

malik_zohaib

Full Member level 5
Joined
Sep 1, 2010
Messages
261
Helped
36
Reputation
72
Reaction score
35
Trophy points
1,308
Location
Pakistan
Activity points
2,707
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
 

maxim10373

Advanced Member level 4
Joined
Feb 26, 2010
Messages
111
Helped
1
Reputation
2
Reaction score
2
Trophy points
1,298
Activity points
2,033
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
 

maxim10373

Advanced Member level 4
Joined
Feb 26, 2010
Messages
111
Helped
1
Reputation
2
Reaction score
2
Trophy points
1,298
Activity points
2,033
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.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top