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

Robertrip
Fri Apr 26 2024, 11:20 am
ArnoldDiant
Fri Apr 26 2024, 03:53 am
RodneyKnorb
Thu Apr 25 2024, 07:08 pm
Williamjef
Thu Apr 25 2024, 02:08 pm
SamuelSmise
Thu Apr 25 2024, 09:56 am
DustinErele
Thu Apr 25 2024, 08:44 am
ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm