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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/20/12 15:48
Read: times


 
#186063 - RI Flag
Responding to: ???'s previous message
Thanks for your input,

I have taken your advice and havestarted writing my programme. I currently have 1 issue with JNB RI,$. When I single step through programme, I cannot jump over this instruction, the programme just freezes. I have checked a few websites and they all have it written the same way. This is my code below

READ_SERIAL:
JNB RI,$
MOV A,SBUF0
RET

READ_TABLE_SERIAL:
NEXT_BYTE2:
LCALL READ_SERIAL
MOV@R1,A
INC,R1
DJNZ R2,NEXT_BYTE2
RET

Even when I run programme and then pause it always ends up at same location JNB RI,$.

I am out of ideas and cant see whats wrong, your help is greatly appreciated

List of 17 messages in thread
TopicAuthorDate
Help. Writing Hex code from serial port to External device            01/01/70 00:00      
   Look at this            01/01/70 00:00      
      Using 8051            01/01/70 00:00      
   Why ASM?            01/01/70 00:00      
      Design your subroutine(s)            01/01/70 00:00      
   RI Flag            01/01/70 00:00      
      READ_SERIAL            01/01/70 00:00      
         RI setup            01/01/70 00:00      
            are you sure?            01/01/70 00:00      
               CKCON            01/01/70 00:00      
                  well, then            01/01/70 00:00      
                     Correct            01/01/70 00:00      
                        RI and TI            01/01/70 00:00      
                           Ok            01/01/70 00:00      
                              Diff Of TI and RI            01/01/70 00:00      
                                 Uart stall            01/01/70 00:00      
                        Oscilloscope            01/01/70 00:00      

Back to Subject List