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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/21/05 00:34
Read: times


 
#88023 - 8051 RS232 comunication
Hello everyone. I read few posting regarding Rs232 and VB comunication. But I did not find the solution...I have this problem:

- I'm sending a letter from an 8051 to a VB software in Windows. It works.

- Now I need to send a command from the VB software to the 8051. Doesn't work!

This is what I did:

Assembler code for the 8051:

WAIT3:
JNB RI, WAIT3 ;Wait for reception to be completed.
MOV A, SBUF ; put the character in A
CLR RI ; clear the receive flag
MOV R5, A ; save the value


In VB I did:

MSComm1.Output = "K" + Chr$(13) ' to send the character K

The 8051 stops working like it's waiting for the character...

Any idea?
Thanks.
Alex

List of 24 messages in thread
TopicAuthorDate
8051 <-> RS232 comunication            01/01/70 00:00      
   VB to Microcontroller            01/01/70 00:00      
      Very Informative!            01/01/70 00:00      
         Language(s)?            01/01/70 00:00      
            Languages            01/01/70 00:00      
   Line buffering?            01/01/70 00:00      
      furthermore Russell Bull            01/01/70 00:00      
      Line buffering            01/01/70 00:00      
         buffer            01/01/70 00:00      
            Serial Comms and Visual Basic            01/01/70 00:00      
               Another URL            01/01/70 00:00      
                  MSComm config            01/01/70 00:00      
                     More on VB setup            01/01/70 00:00      
                        VB Setup            01/01/70 00:00      
                           Code for 8051/VB            01/01/70 00:00      
                              Thank you            01/01/70 00:00      
   MSDN            01/01/70 00:00      
   Flush your buffers            01/01/70 00:00      
   Stu            01/01/70 00:00      
      REN ???            01/01/70 00:00      
         REN !!            01/01/70 00:00      
   Hardware/software            01/01/70 00:00      
      Got a MAX232 or 1488/9 chip?            01/01/70 00:00      
         MAX232 and oscilloscope            01/01/70 00:00      

Back to Subject List