EasyManua.ls Logo

Abov MC96F6432 Series - Page 322

Abov MC96F6432 Series
327 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MC96F6432
322 June 22, 2018 Ver. 2.9
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

Table of Contents

Related product manuals