Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC18F2525 Config Word

Status
Not open for further replies.

cne

New Member
Hello,

I am building laser tag guns that I found on a website. I have constructed the circuits, but now I need to program the PIC's with the provided hex file.
I have a problem though, the hex file does not include the config word, so I need to enter it manually. The website provides the config settings for different software than the PICKIT2 programer application which I am using. Is there a way to convert these settings into a PICKIT2 config word?

Thank you in advance,

Cameron
 

Attachments

  • RevH%20Config%20Fuses.jpg
    RevH%20Config%20Fuses.jpg
    78.4 KB · Views: 257
  • PICKIT2 Config 18F2525.jpg
    PICKIT2 Config 18F2525.jpg
    92.4 KB · Views: 476
Maybe this will help you they should be right
Code:
CONFIG1H   :$300001 : 0x0002
CONFIG2L   :$300002 : 0x001F
CONFIG2H   :$300003 : 0x000E
CONFIG3H   :$300005 : 0x0001
CONFIG4L   :$300006 : 0x0081
CONFIG5L   :$300008 : 0x0007
CONFIG5H   :$300009 : 0x00C0
CONFIG6L   :$30000A : 0x0007
CONFIG6H   :$30000B : 0x00E0
CONFIG7L   :$30000C : 0x0007
CONFIG7H   :$30000D : 0x0040
 
Thanks for your reply,

I was just wondering where I insert this code.
Code:
CONFIG1H   :$300001 : 0x0002
CONFIG2L   :$300002 : 0x001F
CONFIG2H   :$300003 : 0x000E
CONFIG3H   :$300005 : 0x0001
CONFIG4L   :$300006 : 0x0081
CONFIG5L   :$300008 : 0x0007
CONFIG5H   :$300009 : 0x00C0
CONFIG6L   :$30000A : 0x0007
CONFIG6H   :$30000B : 0x00E0
CONFIG7L   :$30000C : 0x0007
CONFIG7H   :$30000D : 0x0040
 
Here try this it should be ok

I did this 3 times I just manual set the config but the hex is a lot smaller 43 bytes that's funny

You can load the hex you have it works fine it don't have all them set but it has what you need

I would use the Hex you have
 
Last edited:
Here you can try it you have the right chip just set them with the PICKIT2

I removed the hex just set like in the pic
 

Attachments

  • config.jpg
    config.jpg
    66.8 KB · Views: 207
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top