Gabes:
{Quote hidden}>My program seems to be going along quite nicely so far but now I've hit a brick
> wall called DATA EEPROM MEMORY. I just cant seem to write to it!
>
>This is what i have currently in the program and im still running it in the
> simulation. The eeprom Window doesnt update with the new value. Is there
> something im doing wrong here?
>
>--------------------------------------------------
> BCF STATUS, RP0 ;Bank 0
> ;set eeprom address
> movf address, W
> movwf EEADR
>
> ;write data to EEDATA
> movf data1, W
> movwf EEDATA
>
> BSF STATUS, RP0 ;Bank 1
> BCF INTCON, GIE ;Disable INT's
> movlw 0x55
> movwf EECON2 ;Write 55h
> movlw 0xAA
> movwf EECON2 ;Write AAh
> bsf EECON1, WR ;Set WR bit begin write
> bsf INTCON, GIE
>--------------------------------------------------
You forgot the
"BSF EECON1, WREN ; Enable Write"
line
-- Lauri
---
<a href="http://www.ee.oulu.fi/~lapi/">For more info.</a>