Chris, my interpretation of slau049b is that a block outside of the one
currently executing the code will (should) require checking of the flash busy
bit. Program will only stall if the block being written is the same as the one
from which the code is being executed. (although, I may have misinterpreted
this!)

Cheers
Harry



-----Original Message-----
From: mspgcc-users-ad...@lists.sourceforge.net
[mailto:mspgcc-users-ad...@lists.sourceforge.net]on Behalf Of Chris Liechti
Sent: Sunday, December 07, 2003 2:27 PM
To: mspgcc-users@lists.sourceforge.net
Subject: Re: [Mspgcc-users] Re: 2x 128Bytes self read/write

Steve Underwood wrote:
> Daniel Néri wrote:
>> Steve Underwood <ste...@coppice.org> writes:
>>> You can't write bytes. You have to write whole 16 bit words.
>>
>> Sorry, but this is simply not true. MSP430 flash memory is bit-, byte-
>> and word-programmable.
>>
> Then tell us how. The rest of us only know how to program whole 16 bit
> words, including the chip's designers. Everyone else gets the effect of
> programming a bit or byte in the way I described. You write a whole
> word, where the bit you don't want to change are set to 1.

sorry, but the data book is not on your side ;-)
it states that one can write a byte, word or series of them.
see slau049c.pdf section 5.3 (page 134) and following.

from what i understand, you can actualy use any instruction to write to
flash, including bic.b bic.w, mov., mov.w, etc. (except "bis", it wont
help much ;-)
the restrictions are, that you can only clear bits, that a write to the
flash is slower and that you must not access flash while writing is in
progress (can only happen if your program runs from RAM).

chris



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&opÌk
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


Reply via email to