Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/24/03 12:50
Read: times


 
#57155 - what wrong in my program
Hi all
This is my program

ORG 00H
MOV 00H,#08H ;COUNTER
MOV 02H,#02H
MOV ACC,#0C0H
PUSH ACC
MOV ACC,#0E1H
PUSH ACC

PROSES_0 : POP ACC
MOV P2,ACC ; CHECK CONTENT ACC
CJNE A,#00H,PROSES_1
JMP PROSES_0
PROSES_1 : JNB ACC.7,PUTER_01
JMP MULAI_0
PUTER_01 : RL A
DJNZ 00H,PROSES_1
JMP NEXT_DATA
MULAI_0 : MOV 03,#00H
MULAI_1 : INC 03H ;RESULT PROSES
MULAI_2 : MOV C,ACC.7
MOV P0.2,C
RL A
DJNZ 00H,LAGI_01
JMP NEXT_DATA
LAGI_01 : MOV C,ACC.7
MOV P0.3,C
ANL C,P0.2
MOV P0.4,C
CPL P0.2
CPL P0.3
MOV C,P0.3
ANL C,P0.2
ORL C,P0.4
JNC CONVERT_0
JMP MULAI_1
NEXT_DATA : POP ACC
CJNE A,#00H,NEXT_DATA_1
JMP CONVERT_0
NEXT_DATA_1 : MOV 00H,#08H
JMP LAGI_01
CONVERT_0 : MOV P1,03H
END

why The result P1 in AT89C51 different with result P1 in TS Control emulator 8051. what is wrong ? , my hardware or software. Thank for your answer.

List of 12 messages in thread
TopicAuthorDate
what wrong in my program            01/01/70 00:00      
   RE: what wrong in my program            01/01/70 00:00      
   RE: what wrong in my program            01/01/70 00:00      
      RE: Vectors            01/01/70 00:00      
   RE: what wrong in my program            01/01/70 00:00      
   RE: what wrong in my program            01/01/70 00:00      
   RE: what wrong in my program            01/01/70 00:00      
   RE: what wrong in my program            01/01/70 00:00      
      RE: what wrong in my program            01/01/70 00:00      
      RE: what wrong in my program            01/01/70 00:00      
         RE: what wrong in my program            01/01/70 00:00      
            RE: what wrong in my program            01/01/70 00:00      

Back to Subject List