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

Back to Subject List

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


 
#169923 - Second after it.......
Responding to: ???'s previous message
Once checking the program, i created the main program through which i send two 8 bits here the check is different, i used Accumulator registor A 's value as a check to decide MSBYTE AND LSBYTE



ORG 000H
        JMP     MAIN
ORG 023H
        JMP     SERIAL
ORG 030H
MOV DPTR,#0000H
MAIN:
        INC DPTR
        MOV     SCON,#50H
        MOV     TMOD,#20H
        MOV     TH1,#-24
        SETB    TR1
        SETB    EA
        SETB    ES
        MOV A,#00
        MOV SBUF,'B'
        JZ $
        MOV TMOD,#00
        CLR TR1
        CLR EA
        CLR ES
        JMP$

SERIAL:
        CLR     TI
 
        MOV A,#01
        MOV SBUF,'C'
        RETI

SKIP:
        MOV     SBUF,DPH
RETI
FINISH: RETI
END


 


Now what problem did i faced
As you can see that i have moved B as my first value and C as my second value to check the program.
But when i run it i just get U on the screen.
I run this proram through the edsim51 simulator, sim535 and JISM simulator, edsim didnt work for any code, sim535 and JISM worked correctly for the first two codes but were not displaying the U for the third code so i guessed that when they are not giving the correct display how could i use them to debug my program.
Wel i think that it wont be difficult for you people to anwer it.


List of 26 messages in thread
TopicAuthorDate
Is this Code Correct for 16 Bit Serial Transmission            01/01/70 00:00      
   No.            01/01/70 00:00      
      Sir            01/01/70 00:00      
         Insert program code            01/01/70 00:00      
            How to post legible source code            01/01/70 00:00      
            Who would bother to read uncommented code?            01/01/70 00:00      
               Worse than that            01/01/70 00:00      
         So you will understand            01/01/70 00:00      
   what code?            01/01/70 00:00      
      Program with comments            01/01/70 00:00      
         The first after it            01/01/70 00:00      
            Second after it.......            01/01/70 00:00      
               Simulators            01/01/70 00:00      
               Remove all the silly code lines!            01/01/70 00:00      
                  Comments first, then discussing intention/reality            01/01/70 00:00      
                     Careful Commenting Catches Cruddy Coding!            01/01/70 00:00      
            So where did all the comments go?!            01/01/70 00:00      
               To achieve 16 bit communication            01/01/70 00:00      
                  Exactly what was your "target"?            01/01/70 00:00      
                  How?            01/01/70 00:00      
            Return from interrupt            01/01/70 00:00      
               Of course not            01/01/70 00:00      
                  But how it could be different            01/01/70 00:00      
                     Any more information required            01/01/70 00:00      
                        As previously stated            01/01/70 00:00      
                           and summarised...            01/01/70 00:00      

Back to Subject List