Do programming to toggle P1 a total of 200 times. Use RAM location 32H to hold your counter value instead of registers R0 –R7. Test result in SimHardware.

ORG 0000H

MOV 32H,#0C8H

MOV A,#0FFH

AGAIN:

MOV P1,A

MOV R3,#08H

BACK:

DJNZ R3,BACK

CPL A

DJNZ 32H,AGAIN

END 

Comments

Popular posts from this blog

Foil type strain gauge

Working of hair hygrometer.