Tuesday, 17 December 2013

XL2000 8051 development board experiment 3 getting input from switches

org 0000h ;Start
ajmp loop
org 0080h ;0030h to the Department of between 00-30 to avoid sensitive Address
loop: MOV A,P0; I P0 state (switch) readA
MOV P1,A ;A data sent to the port P1 (light)
JMP LOOP ;A fresh start
END

No comments:

Post a Comment