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.

PIC 18F252 programming problem

Status
Not open for further replies.

carrotts

Member level 1
Joined
Jan 31, 2002
Messages
40
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
298
I am trying to program a PIC18F252's Data EEPROM area. I have a USB programmer from Quasar Electronics. I write my code in Crownhill proton + and use the EDATA command. This creates Data to be stored in data eeprom at programming. When I load the resultant hex file into my programmer software I get my data bytes seperated by nulls. Is there any way of altering the hex, or do I have to wait for an update to the programmer software.

Cheers Carrotts
 

The 18F252 is a 16 bit device, you have to devine EEPROM data as WORDS using DW instead of BYTES that were defined using DB.

You can still access the high byte using LABEL + 1
For instance

DFIRM DW 00103H ; FIRMWARE RELEASE 3
DREV EQU DFIRM+1 ; REVISION: 1

When read from the EEPROM, DREV contains 1 and DFIRM contains 3.
I hope this helps.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top