Discussion in "Project Help" started by    yogesh puri    May 24, 2017.
Wed May 24 2017, 04:06 am
#1
i am unable to simulate following code in protous. output port p1 not giving any results as per programe. i need this code on urgent basis. pl. help me.

;******************************************************************************************************
;
;******************************************************************************************************
; XTAL Freq = 12 MHz

;DATA IN PORT P3
;+++++++++++++++++++++++++++++++++++
;
;##################################################
MOV P3,#0FFH ; P3 ASSIGNED AS INPUT PORT FOR LM324 OUTPUT


MAIN:
MOV A,P3
CLR C
SUBB A,#11111110B
JNZ NEXT
AJMP EMPTY

NEXT: MOV A,P3
CLR C
SUBB A ,#11111100B
JNZ NEXT1 ; 2 KEY PRESSED
AJMP NOTOK

NEXT1: MOV A ,P3
CLR C
SUBB A ,#11111000B
JNZ NEXT2 ; 8 KEY PRESSED
AJMP OK
NEXT2:
AJMP MAIN

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

EMPTY:
;CAGE IS EMPTY
MOV P1,#11110000B
AJMP MAIN
NOTOK:
;PART IS NOT OK
MOV P1,#10101010B

AJMP MAIN
OK:
;PART IS OK
MOV P1,#00000000B
AJMP MAIN


END
Wed May 24 2017, 10:31 am
#2

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

WilliamErync
Sun May 05 2024, 02:35 am
Danielnof
Sat May 04 2024, 11:12 pm
oriminna
Sat May 04 2024, 08:28 pm
scaneraNom
Sat May 04 2024, 02:21 am
gtaletrzua
Fri May 03 2024, 10:55 am
Clydehet
Wed May 01 2024, 06:44 pm
Davidoried
Wed May 01 2024, 06:11 pm
KevinTab
Sun Apr 28 2024, 05:35 am