8 years ago
memory to store up to 32 values which I can change when necessary.
According to the data sheet it has In Application Programming available.
I cannot find sufficient info on doing this.
Here is what I have found so far but does not work when I read back:
wtee : mov ta,#0AAh ;timed access
mov ta,#55h ;timed access
mov fcntl,#0Bh ;control reg for write
mov fdata,#3Fh ;upper flash msd
mov fdata,#00h ;upper flash lsd
mov fdata,#11h ;data to write
nop ;delay to wait for finish
ljmp loop ;back to outer loop of prog
rdee: mov dptr,#3f00h ;address I wrote in flash
movc a,@dptr ;read byte from mcu flash
mov dptr,#2000h ;external ram save data
movx @dptr,a ;save
When I check the memory location it is still FF
Any ideas or help would be greatly apreciated.
-- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com