Hard- and Software for the communication of the STK-200 via the SIO/UART ========================================================================= 1. Hardware Required is a 9 pin male plug for the STK200-board connection and either a 25-pin female or an additional 9-pin plug for the computer's serial interface. The following three pins have to be connected within a 9-pin or a 25-pin connector to ensure proper signal levels for the board and the computer: 9-pin: 25-pin: Name of the line ---------------------------------------------- Pin 4 = Pin 20 = Data Terminal Ready DTR Pin 8 = Pin 5 = Clear To Send CTS Pin 6 = Pin 6 = Data Set Ready DSR The following pins of the connectors have to be connected with a cable: 9-pin: 25-pin: Name of the line ---------------------------------------------- Pin 2 = Pin 3 = Read Data RD Pin 3 = Pin 2 = Transmit Data TD Pin 5 = Pin 7 = Signal Ground SG That's it all for the hardware part. 2. Software Basically every terminal program is applicable for communication. Common in the Windows world is HyperTerminal, as it is supplied with Win32. The installation is as follows: a) In the Start-menu select PROGRAMS-HYPERTERMINAL. b) In the open folder select HYPERTRM.EXE. c) Select a name for the connection, e.g. STK200Sio and click Ok. d) In the call-window leave the number empty. Open the selection box CONNECT_VIA and select DIRECTCONNECTION_VIA_COMX. (X is usually COM2, if your mause is connected to COM1.) Select Ok. e) In the PROPERTIES-window select a baudrate of 9600 bps, 8 databits, no parity, 1 stopbit and protocol HARDWARE. f) In the white HyterTerminal-window you can communicate with the STK200 now. After switching the STK200 board on it sends an identification string, then echoes back all all characters you send to the board. For a real hard test send a ASCII text file to the board (TRANSMIT-TEXTFILE) g) By closing the Hyperterminal window answer the dialog with YES. Answering the following question, if the session should be stored, also with YES and you can use the same terminal properties when you connect the next time to your STK200 board. To open the next session you can simply click on the proper icon in the HyperTerminal folder. 3. Experiences with HyperTerminal At baudrates above 19200 no proper connection is possible. Non-US-ASCII characters are not properly handled. That's Windows. At the beginning of a line one char is lost, if you transfer a text file. This is due to the addition of a linefeed char after the STK200 has received a carriage return. There is not enough time to echo the next char then. (C)2002 by http://www.avr-asm-tutorial.net