| ??? 06/02/02 09:14 Read: times |
#23750 - RE: any way of reading P2 SFR ? |
Hi Pranav,
there is no need to disable interrupts, if you update the shadow register always at first. Also you should use any RAM location, but not the working registers R0..R7. Since the working registers intended for working (changed often), not for permanent storing of values. E.g.: p2_shadow equ 30h mov_p2 macro new_val mov p2_shadow, new_val mov p2, new_val endm Peter |



