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 09:57
Read: 561 times

#186065 - RI setup
Responding to: Michael Karas's previous message
Hi Michael,

a)yes the reciever bit is set, "1"
b)yes the baud rate is set to 9600bps, TH1,#0FDH
c)yes the header file is included in the build, $include(
d)yes the crossbar is initilized in the main program to allow UART0 to operate P0.0 (tx),P0.1(rx).

I have yet to establish comms with my peripherial device, I am still troubleshooting the code before I introduce it. Everything else seems to work as i step through it except this step. I am aware RI sets when it recieves a byte from the serial port and then return to recieve next byte etc.

But problem is I cannot jump over this instruction like I can with JNB TI, $. I assume it can be jumped over regardless of recieveing a byte or not. Once I hit the jump over command the programme runs continuously and wont stop unless i hit the stop button, it should just jump over and set at the RET instruction so I can continue to single step through programme.


List of 17 messages in thread
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