Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

89c430 timed access for upper memory

8 views
Skip to first unread message

Me

unread,
Jan 30, 2014, 3:44:22 PM1/30/14
to
I am using the DS89c430 microcontroller and I wish to use part of the flash
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
nop
nop
ljmp loop ;back to outer loop of prog

rdee: mov dptr,#3f00h ;address I wrote in flash
clr a
movc a,@dptr ;read byte from mcu flash
mov dptr,#2000h ;external ram save data
movx @dptr,a ;save
ljmp loop

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

0 new messages