mov a,P1
anl a,#0f0h
orl a,pin_value
mov P1,a