English
Language : 

Z51F3220FNX Datasheet, PDF (311/312 Pages) Zilog, Inc. – Z8051 Series 8-Bit Microcontrollers
Z51F3220
Product Specification
 If you use input bit port for compare jump instruction, you have to copy the input port as internal paramet
er or carry bit and then use compare jump instruction.
bit tt;
while(1){
tt=P00;
if (tt==0){ P10=1;}
else {P10=0;}
P11^=1;
}
zzz: MOV C,080.0 ; input port use internal parameter
MOV 020.0, C ; move
JB 020.0, xxx ; compare
SETB 088.0
SJMP yyy
xxx: CLR 088.0
yyy: MOV C,088.1
CPL C
MOV 088.1,C
SJMP zzz
PS029902-0212
PRELIMINARY
309