CMOS
Advanced Member level 3
pwrte
Hi,
I have the following options which sets/resets bits of a particular 14-bit word. Upon bitwise "AND"ing the selected options starting from initial all '1' value i.e 3FFF I get the final output word.
WDT: ENABLED = 3FFF
DISABLED = 3FFB
PWRTE: DISABLED = 3FFF
ENABLED = 3FF7
OSCLIIATOR: RC = 3FFF
HS = 3FFE
XT = 3FFD
LP = 3FFC
CODE PROTECT: DISABLED = 3FFF
ENABLED = 000F
Suppose selected options are
WDT= DISABLED (3FFB)
PWRTE = ENABLED (3FF7)
OSC. = LP (3FFC)
CP = DISABLED (3FFF)
Then the final word is (3FFF AND 3FFB AND 3FF7 AND 3FFC AND 3FFF) = 3FF0
My problem is suppose if I have word 3FF0 how do I find out which of the above options were selected?
Hi,
I have the following options which sets/resets bits of a particular 14-bit word. Upon bitwise "AND"ing the selected options starting from initial all '1' value i.e 3FFF I get the final output word.
WDT: ENABLED = 3FFF
DISABLED = 3FFB
PWRTE: DISABLED = 3FFF
ENABLED = 3FF7
OSCLIIATOR: RC = 3FFF
HS = 3FFE
XT = 3FFD
LP = 3FFC
CODE PROTECT: DISABLED = 3FFF
ENABLED = 000F
Suppose selected options are
WDT= DISABLED (3FFB)
PWRTE = ENABLED (3FF7)
OSC. = LP (3FFC)
CP = DISABLED (3FFF)
Then the final word is (3FFF AND 3FFB AND 3FF7 AND 3FFC AND 3FFF) = 3FF0
My problem is suppose if I have word 3FF0 how do I find out which of the above options were selected?