PIC 18f4550 and Hi-tech PRO compiler

Right just started a little project using the 18f4550 for usb and wanted to save some data in the internal eeprom.

Easy or so i thought, as i am using Hi-tech PRO 18 V9.63 PL3 i thought i would use th eeprom_read and eeprom_write commands.

So to test i used MPLAB and put a message in the eeprom and checked my read routine, OK, and so as my checksum failed i tested the write routine and NOTHING

Now i have checked the config and i have _CONFIG( 1, USBPLL & IES0DIS & FCMDIS & HSPLL & CPUDIV1 & PLLDIV5); _CONFIG( 2, VREGEN & PWRTDIS & BOREN & BORV20 & WDTDIS & WDTPS32K); _CONFIG( 3, PBDIGITAL & LPTDIS & MCLREN); _CONFIG( 4, XINSTDIS & STVREN & LPVDIS & ICPORTDIS & DEBUGDIS); _CONFIG( 5, UNPROTECT) _CONFIG( 6, UNPROTECT) _CONFIG( 7, UNPROTECT)

and if i check the config in MPLAB it says EEPROM_WRITE PROTECT is DISABLED

Anybody have any ideas?

Ive downloaded code from the web to do the eeprom_write code inline and still nothing.

joolzg

--
--------------------------------- --- -- -
Posted with NewsLeecher v4.0 Beta 20
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -
Reply to
joolzg
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.