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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/31/08 17:48
Read: times


 
#150110 - Guess
Responding to: ???'s previous message
Derek Kennedy said:
Sadly, it seems to get stuck at the part of BASIC-52 startup that waits for the user to press the space bar (inside the auto-baud routine). Seems that the terminal emulator handling doesn't integrate properly with the 'JB RDX,$' instruction.


I'm guessing you're going to have a hard time finding a simulator that deals with auto-baud very well. Most (if not all) simulators deal with UART I/O by placing the data directly in SBUF while most (if not all) auto-bauds operate by measuring bit times on the RDX line--that's what it looks like your code is doing. So when data comes in on a simulator, it's almost guaranteed that the simulator is not going to simulate wiggling the RDX port pin. It's just going to put the "received" byte in SBUF and set RI.

I'd just comment out the auto-baud code if you're going to use it in a simulator and then uncomment it when you want to take it a real device.

#include "standard/recommendations/to/use/ICE/instead/of/simulator.c"


Regards,
Craig Steiner


List of 13 messages in thread
TopicAuthorDate
Simulator to run BASIC-52            01/01/70 00:00      
   sdcc simulator            01/01/70 00:00      
      sdcc simulator            01/01/70 00:00      
         Guess            01/01/70 00:00      
            Correct guess            01/01/70 00:00      
            simulated input?            01/01/70 00:00      
               Shared extensions            01/01/70 00:00      
                  LCD driven by 8032?            01/01/70 00:00      
                     8032 LCD            01/01/70 00:00      
                        impressive!            01/01/70 00:00      
                           general purpose computer            01/01/70 00:00      
   Pinnacle52            01/01/70 00:00      
      Pinnacle52            01/01/70 00:00      

Back to Subject List