Chris, I take back what I said in my last post! The TI document SLAS272C states
essentially what you have said, (see page 15) although slau049b implies that the
infomem flash is outside of the "main" flash modules.(It seems that TI document
writers may be somewhat schizophrenic! Although, SLAS272C is specific to the
MSP430F149, so other family members may operate differently!?)

It took me a while to realise that the document was talking about the flash
array, and not the "segments" within that array. (512 bytes, or 256 bytes for
INFOMEM flash)

So, it would seem that the flash busy bit is superfluous, unless you are running
your routines from within SRAM.

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