Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCU can not receive the data #37

Closed
GoogleCodeExporter opened this issue Mar 4, 2016 · 1 comment
Closed

MCU can not receive the data #37

GoogleCodeExporter opened this issue Mar 4, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Hi,I try to build a communication between the tablet PC and the MCU with PL2303 
chip. My tablet PC use Android 4.0 system. My MCU is a 51 series. I choose the 
setting '/dev/ttyUSB0' and 'Baud rate 1200' on tablet PC. I tried the 
'Loopback' and 'Send 01010101', but the MCU can not receive any data. Does 
anyone know what is the problem?


The program in the MCU.
Crystal oscillator 11.0595 MHz

#include <REG52.H>
#include <stdio.h>
unsigned char b;

void main (void)
 {
        SCON = 0x50;               
    TMOD|= 0x20;                  
    PCON|=0x80;                                                           TH1 = 0xD0;
        TL1 = 0xD0;         
    TR1=1; 
        ES   = 1;       
    EA   = 1; 

        P0=0xff;
    b=0xff; 

    while(1)
    { 

      if (RI)       
      {  RI=0;      
         b=SBUF;    
         P0=b;
       }  
 } 
}

Original issue reported on code.google.com by 01bffe8...@gmail.com on 26 Nov 2012 at 9:06

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by cedric.p...@gmail.com on 20 Feb 2013 at 5:26

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant