(sorry for repeating the post, but with some difference) Hello, I'm using a C161 Bord with uVision3. 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(for exemple "hello"), but there is displaying just the first character ('h') followed continuously by spaces with a high speed. Here is the source code from exemples:
void main (void) { /* execution starts here */ /* init physical memory model */ BUSCON0 |= 0x003F; /*; 0 Wait no Delay */ P3 |= 0x0400; /* SET PORT 3.10 OUTPUT LATCH (TXD) */ DP3 |= 0x0400; /* SET PORT 3.10 DIRECTION CONTROL (TXD OUTPUT) */ DP3 &= 0xF7FF; /* RESET PORT 3.11 DIRECTION CONTROL (RXD INPUT) */ S0TIC = 0x80; /* SET TRANSMIT INTERRUPT FLAG */ S0RIC = 0x00; /* DELETE RECEIVE INTERRUPT FLAG */ S0BG = 0x19; /* SET BAUDRATE TO 19200 BAUD AT 16MHZ */ S0CON = 0x8011; /* SET SERIAL MODE */ printf("hello"); while (1) { } }
thx for your help.
My evalboard is Phytec KitCON-161 from SIEMENS . In the CD-documentation i found a QUICKSTART file (HELLO161.H86) which I downloaded to flash. And this worked fine in the hyper terminal. Well, i think that the problem is at the uVision settings, isn't it? Where can I find the correct settings. May be you'll guide me at the \Boards directory of the Keil, sorry - it doesn't work for serial interface projects...