Content originally posted in LPCWare by creafyumi on Sun Jul 08 20:09:55 MST 2012
Quote: Brutte
But, in case of write, how do you know that (reference, please)? This applies to a, b, .. or f "reserved" type? Or all of them:confused:
Or did you mean "(...)always make sure we will not toggle the bit [I]from 0[/I] to 1"?
What about read?
If it were so simple, why did NXP guys introduce 6 different descriptions + additional Glossary definition for the "reserved"?
By the way, LPCXpresso example of (a) type I gave above contradicts your thesis :).
It could be another bug, but works OK on my LPC1769.
Quote:
This applies to a, b, .. or f "reserved" type?
Quote:
If it were so simple, why did NXP guys introduce 6 different descriptions + additional Glossary definition for the "reserved"?
Of course this applies to all... Didn't you find that all a to f require the reserved bit be written as 0(if write action applied)? When read, there are different situations, sometimes the reserved bits are zeroes, sometimes the reserved bits are subject to changes if the reserved function enabled. Why so confused..
Quote:
a) "Reserved. The value read from a reserved bit is not defined."
b) "Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined."
c) "Reserved. User software should not write ones to reserved bits. These bits read always back as zeroes"
d) "Reserved, and must be written as 0"
e) "Reserved for Debug use. This bit reads as 0. When writing to the register you must write 0 to this bit, otherwise behavior is Unpredictable."
f) "Reserved."
Quote:
By the way, LPCXpresso example of (a) type I gave above contradicts your thesis :).
It could be another bug, but works OK on my LPC1769.
Just believe in yourself, do not trust examples. :)
Now it works OK, behavior maybe unpredictable in the future.