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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/24/09 19:03
Read: times


 
#162766 - Your test case may be incorrect
Responding to: ???'s previous message
I'm not sure if your test is a supported way of the Keil simulator to simulate reception of serial data.

As you have noticed, SBUF is two registers. One read-only and one write-only. The processor will select the correct register depending on the data-direction implied by the op-code. But what isn't clear is if the Keil debugger has an input box where you can write data that simulates UART receive, or if it is a box that can simulate a UART transmit.

But note that the debugger have a virtual variable that can be assigned to simulate that the UART have received data. You can use the debugger script language either send in a continuous number of characters, or have a button introduce a single received character.

In your post, you never mention what broke in your program after your changes. Only that you after the program broke, you have located a specific situation in the simulator where you do not know exactly what happens, and what is expected to happen. If this is related to your changes or to the problem with your program can not be deduced from your text, or from the description of your analysis of the problem.

List of 9 messages in thread
TopicAuthorDate
SBUF problem            01/01/70 00:00      
   Your test case may be incorrect            01/01/70 00:00      
      Can not deduce            01/01/70 00:00      
   what is the state of the RI pin at idle?            01/01/70 00:00      
      U's            01/01/70 00:00      
         sorry, not the RI bit, the RI pin            01/01/70 00:00      
   May be here..            01/01/70 00:00      
      Good link            01/01/70 00:00      
      Thanks Everybody            01/01/70 00:00      

Back to Subject List