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.

[Moved] pic programming for G540 and pic16f628a

Status
Not open for further replies.

ileperuma

Newbie level 5
Newbie level 5
Joined
Mar 8, 2011
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,330
i don''t have any knowledge about pic programming. but i want to learn it. i buy one of the programmer G540 and pic 16f528a chip. now i want to program this chip. i download two thee of Hex file written
for this pic16f628a chip.i loaded this one of file to the chip then coming error message like this. "'NON CONFIGARATION WORD IN THE HEX FILE. PLEASE SET AFTER LOADING''
please help me to solve this problem
 

Hi,

The Configuration Word is basic information about how the program code will use the Pic chip.

It is often written into the .hex code but it seems your hex files do not contain the Config details; so you have to manual enter them via the G540 programmers software

You will have to go back to the site you obtained the code from and see if they list the Config codes anywhere.

If you want to give the details of your program files and links to the sites you got the code from we might be able to help more.
 
Hi,

Your G540 software will have a screen where you can manually add in the Configurations parameters, either as a hex value like 0x2F4A or by selecting dropdown options; something like the screen shot below.

However what those parameters should be set to is dependent on the project you are making; without any links to the original project and source code its impossible to say what those values should be as they can vary significantly between projects and chips.
 

Attachments

  • 000067.jpg
    000067.jpg
    60.9 KB · Views: 124

View attachment 24 LED CHASER - SCHEMATIC.pdf sample led file
Hi,

Your G540 software will have a screen where you can manually add in the Configurations parameters, either as a hex value like 0x2F4A or by selecting dropdown options; something like the screen shot below.

However what those parameters should be set to is dependent on the project you are making; without any links to the original project and source code its impossible to say what those values should be as they can vary significantly between projects and chips.
 

Hi,

Thats just a hardware schematic, you really need to post a link to were you downloaded the software from / details of the original project which hopefully will have the config details.

However from seeing that diagram you could try the following values via your programmer.

__CONFIG _CP_OFF & _CPD_OFF & _LVP_OFF & _BOREN_OFF & _MCLRE_ON & _WDT_OFF & _PWRTE_ON & _INTOSC_OSC_NOCLKOUT

or as a hex value 0x3D30
 

Attachments

  • 000068.jpg
    000068.jpg
    40.1 KB · Views: 128
The Genius G540 programmer does not load the configuration information from the Hex file. You have to load it manually using the encrypt button.
 
please make me ASM file for pic16f628a. i need how the start with the configuration setting. i have no idea how to do this
thanks
 

please make me ASM file for pic16f628a. i need how the start with the configuration setting. i have no idea how to do this
thanks

I have never seen or used the G540, but seems its a regular problem with that programmer, see this thread.
https://www.edaboard.com/threads/281830/

The bit of code below shows how config is normally used in ASM

Code:
	list P=16F628a
	#include p16f628a.inc

	__CONFIG   _CP_OFF & _CPD_OFF & _LVP_OFF & _BOREN_OFF & _MCLRE_ON & _WDT_OFF & _PWRTE_ON & _INTOSC_OSC_NOCLKOUT 

	org	0
	goto	SETUP
	


SETUP

	clrf	PORTB		; outputs low
	clrf	PORTA		
	banksel	TRISB		; select bank1
	clrf	TRISB		; make output
	banksel 0
	bsf	PORTB,0		; turn on rb0
               

	end
 
still genius g540 problem

still i had the problem
i attach one of the file please advice me how burn this file into the pic 16f628a using genius G540
thanks
 

Attachments

  • 144_LED_V2.zip
    61.6 KB · Views: 109

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top