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

MicroController Connection

Any one know how my program should be like when i need to pass in information for example "a" and display it in a display box... through serial communication.

Parents
  • "sorry, i don't quite understand what you are trying to mean..."

    You say, when you connect the PC and microcontroller to gether, it doesn't work.

    What you neeed to determine is why it doesn't work - then you can fix it!

    There are 3 possibilities:

    1. There's a problem at the PC end;
    2. There's a problem at the microcontroller end;
    3. There's problems at both ends!

    Dan's suggestion is to help you check if the microcontroller end is working: by removing your PC software from the equation, and using a terminal emulator instead, you can verify that the microcontroller end is working.

    You should start by running the microcontroller software in the simulator - this eliminates any problems due to your hardware.
    Set the simulator up so that it uses a PC COM port for its serial IO (see the Manual).

    In the simulator, you can single-step, examine variables, etc, etc...

Reply
  • "sorry, i don't quite understand what you are trying to mean..."

    You say, when you connect the PC and microcontroller to gether, it doesn't work.

    What you neeed to determine is why it doesn't work - then you can fix it!

    There are 3 possibilities:

    1. There's a problem at the PC end;
    2. There's a problem at the microcontroller end;
    3. There's problems at both ends!

    Dan's suggestion is to help you check if the microcontroller end is working: by removing your PC software from the equation, and using a terminal emulator instead, you can verify that the microcontroller end is working.

    You should start by running the microcontroller software in the simulator - this eliminates any problems due to your hardware.
    Set the simulator up so that it uses a PC COM port for its serial IO (see the Manual).

    In the simulator, you can single-step, examine variables, etc, etc...

Children