This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to communicate between RS232 VB6.0 & 8051 keil C

I want to have some leds in P2.0~2.3 and show off the "ON" lamp in VB6.0 program though RS232 during the sensors are +5V output to P1.0~1.3 89S52 MCU. But it appears many errors and doesn't work in PC. Please advise me the comments for the following code. Thanks a lot!!

Parents
  • Do you actually understand what it's doing?

    If you do, then put in comments to show your understanding.

    If not, then clearly that is your basic problem!

    Why don't you just start with "Hello World", get to understand it, and work from there?

    PS

    Your layout is still messy; don't use TABs - they don't work on (most) internet forums - use only spaces for indenting.

    Note that any decent editor (including uVision) can be set to insert spaces when you press the TAB button:

    Edit > Configuration > Editor > Insert spaces for tabs

Reply
  • Do you actually understand what it's doing?

    If you do, then put in comments to show your understanding.

    If not, then clearly that is your basic problem!

    Why don't you just start with "Hello World", get to understand it, and work from there?

    PS

    Your layout is still messy; don't use TABs - they don't work on (most) internet forums - use only spaces for indenting.

    Note that any decent editor (including uVision) can be set to insert spaces when you press the TAB button:

    Edit > Configuration > Editor > Insert spaces for tabs

Children