After reading the datasheet it seems that this device uses a differen scheme
that the 16F628 i am used to.
I know always RTFM :-))
-----Oorspronkelijk bericht-----
Van:
piclist-bounces@... [mailto:
piclist-bounces@...] Namens Jinx
Verzonden: dinsdag 12 augustus 2008 14:25
Aan: Microcontroller discussion list - Public.
Onderwerp: Re: [PIC] EEread in 16F685 results in same output in MPLAB-SIM
> For every PIC there are some little differences on how to read the
> eeprom.You must read the datasheet of the 16F685, sure there are one
> example!
Harry's example is almost the same the d/s
BANKSEL EEADR ;
MOVLW CONFIG_ADDR ;
MOVWF EEADR ;Address to read
BSF EECON1,RD ;EE Read
MOVF EEDAT,W ;Move data to W
Harry, there's no time delay for reading EEPROM
"To read a data memory location, the user must write the address to the
EEADR register and then set control bit RD of the EECON1 register, as shown
in Example 10-1.
The data is available, at the very next cycle, in the EEDAT register.
Therefore, it can be read in the next instruction"
and it should work in MPLAB. I used something like it a few days ago with a
16F88
--
http://www.piclist.com PIC/SX FAQ & list archive View/change your membership
options at
http://mailman.mit.edu/mailman/listinfo/piclist--
http://www.piclist.com PIC/SX FAQ & list archive
View/change your membership options at
http://mailman.mit.edu/mailman/listinfo/piclist