Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Main movlw 0x00 ; EE pointer
movwf EE_ADR ;
Read_Loop call EE_RD ;
movf R_DATA,W ;
movwf PORTC ;
call Delay ;call a 1Sec delay
incfsz EE_ADR,F ;
goto Read_Loop ;
Wait_Here goto Wait_Here
EE_RD ;
movf EE_ADR,W ;
banksel EEADR ;
movwf EEADR ; Data Memory Address to read
banksel EECON1 ;
bcf EECON1,EEPGD ; Point to Data memory
bsf EECON1,RD ; EE Read
banksel EEDATA ;
movf EEDATA,W ; W = EEDATA
banksel R_DATA ;
movwf R_DATA ; Move W into R_DATA
return
Gayan, I see with the poster you are going to have to spoon feed him all the way. I was the one who helped him out on the EE_Read and EE_Write code. I did not modify his code, I gave him a copy of my code that does work. As for incrementing or whatever else he wants to do, he'll have to write the code himself.
I see you have a "Call Delay" instruction in there. He's going to mail you back now and complain that it doesn’t work.