PDA

View Full Version : DATA on a PIC18F252



BigWumpus
- 11th October 2005, 14:56
Hello Melanie ;-)

What have I to do in order to get the DATA-statement work ?
Every second byte is lost. I think the Assembler (MPASMWIN 3.5 & 4.01) produce the wrong hex-file.
Compiling for a PIC16F872, there are zero-bytes inserted between every single byte of a DATA-Statement, but they are gone when compiling for a PIC18F252.

btw: the search-function is down, I think I have read of it before...

Melanie
- 11th October 2005, 22:30
http://www.picbasic.co.uk/forum/showthread.php?t=547

There are no current issues with DATA and internal EEPROM.

I can't vouch for MCS because I don't use it.

BigWumpus
- 13th October 2005, 10:28
Hello Melanie,

thank you for your answer. I've found the long thread from you too.

I think the conclusion is - buy a programmer from Melabs !
And this is not realy my solution - I will look inside the Assembler vom Microchip.

Melanie
- 13th October 2005, 14:14
I don't use any MeLabs programmers. If your programmer and its software is good it should work. It's all down as to how the HEX file is created... that's down to PBP and MPASM... if you're up-to-date you should have no issues.

As an aside, the 16F872 I've been using since at least PBP 2.42 with the MeLabs PM Assembler by default (that's a good three/four years now)... never any problems with internal EEPROM.

BigWumpus
- 14th October 2005, 09:05
Hello Melanie,

I think the problem is the program IC-Prog !
The 16Fxxx and the 18Fxxx uses another syntax to store the EEPROM-data into the hexfile.