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