??? 11/11/08 15:43 Read: times |
#159949 - try ORL to set any bit in internal RAM Responding to: ???'s previous message |
SET ANY BIT
http://www.8052.com/51orl ORL iram addr,#data by using the ORL istruction you can SET any bit in any iram byte address 0x00 - 0xFF range. the #data should be an ace '1' to the desired position. eg: ORL 34h, #0b01000000 will set the bit at place 6 at 34h address. complemantary, CLEAR ANY BIT http://www.8052.com/51anl by using the ANL istruction you can CLEAR any bit in any iram byte address 0x00 - 0xFF range. the #data should be an zero '0' to the right position. eg: ANL 034h, #0b11111110 will CLEAR the bit at place 0 at 34h address. Bool math are used for the '51 MCU as Boollean Processor. K.L.Angelis |