Am 25.09.2012 10:13 schrieb Dennis Lee Bieber:
Or some bit setting registers, like on ATxmega: OUT = 0x10 sets bit 7
and clears all others, OUTSET = 0x10 only sets bit 7, OUTTGL = 0x10
toggles it and OUTCLR = 0x10 clears it.
Umpfzg. s/bit 7/bit 4/.
I don't think I'd want to work with any device where 0x10 (00010000
binary) modifies bit SEVEN. 0x40, OTOH, would fit my mental impression
of bit 7.
Of course. My fault.
It can as well be a bit mask, with OUTTGL = 0x11 toggling bit 4 and bit
0. Very handy sometimes.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list