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

Serial Interface & Terminal Program

Hello,
I'm using a C167 Bord with uVision2. My program sets the configurations for the serial port,sends some data via the port and it works in the Serial Window #1 (I see the data which I had sent).

In the next step I wanted to display some values in the HYPER TERMINAL
but nothing happens in the Terminal and I don't know why.

thx for your help.

Parents
  • this is a simple program for the serial interface. If I simulate the programm I see "Hallo" in the Serial Window #1. In the next step I flashed the program on the chip and I wanted to see "hallo" in a Terminal Program (docklight) but it doesn't work...


    #include <REG167.H>
    #include <stdio.h>

    void main ()
    {
    /* 9600 Bd, 8 Datenbit, no Parity-Bit, one Stopp-Bit */

    DP3 |= 0x0400;
    DP3 &= 0xF7FF;
    S0TIC = 0x80;
    S0RIC = 0x00;
    S0BG = 0x40;
    S0CON = 0x8011;
    printf("hallo");
    while (1);

    }

Reply
  • this is a simple program for the serial interface. If I simulate the programm I see "Hallo" in the Serial Window #1. In the next step I flashed the program on the chip and I wanted to see "hallo" in a Terminal Program (docklight) but it doesn't work...


    #include <REG167.H>
    #include <stdio.h>

    void main ()
    {
    /* 9600 Bd, 8 Datenbit, no Parity-Bit, one Stopp-Bit */

    DP3 |= 0x0400;
    DP3 &= 0xF7FF;
    S0TIC = 0x80;
    S0RIC = 0x00;
    S0BG = 0x40;
    S0CON = 0x8011;
    printf("hallo");
    while (1);

    }

Children