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 08:48
Read: 505 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      Dave McNamara      01/27/12 15:42      
   Look at this      Michael Karas      01/27/12 18:46      
      Using 8051      Dave McNamara      01/28/12 03:19      
   Why ASM?      Andy Neil      01/30/12 14:43      
      Design your subroutine(s)      David Prentice      01/30/12 15:20      
   RI Flag      Dave McNamara      02/20/12 08:48      
      READ_SERIAL      Michael Karas      02/20/12 09:25      
         RI setup      Dave McNamara      02/20/12 09:57      
            are you sure?      Erik Malund      02/20/12 10:04      
               CKCON      Dave McNamara      02/20/12 10:22      
                  well, then      Erik Malund      02/20/12 11:17      
                     Correct      Dave McNamara      02/20/12 12:11      
                        RI and TI      Erik Malund      02/20/12 12:24      
                           Ok      Dave McNamara      02/20/12 12:32      
                              Diff Of TI and RI      Michael Karas      02/20/12 12:57      
                                 Uart stall      Maarten Brock      02/22/12 07:01      
                        Oscilloscope      Per Westermark      02/20/12 17:04      

Back to Subject List