??? 02/20/12 16:57 Read: times |
#186065 - RI setup Responding to: ???'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(c8051f020.inc) 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. Dave |
Topic | Author | Date |
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 |