background image

TS-5400 User’s Manual 

Technologic Systems 

 

10/31/03

 

8

5.1  Serial Port Configuration Registers 

Because both serial ports are 100% PC compatible, software written for the PC that accesses serial 
ports directly or through standard BIOS calls will work without modification on the TS-5400. The details 
of the COM port internal registers are available in most PC documentation books or the data sheet for 
the National Semiconductor NS16C550 may be consulted. 

5.2  Serial Port Hardware 

 

Each RS-232 serial port has 4 lines buffered: the Rx and Tx data lines and the CTS / RTS handshake 
pair. This is quite sufficient to interface with the vast majority of serial devices.  If additional handshake 
lines are required, it will be necessary to add a TS-SER daughter board.  The TS-5400 serial signals are 
routed to 10-pin header labeled COM2 and a standard 9-pin Sub-D male labeled COM2.  A serial 
adapter cable can be plugged into the COM2 header to convert this into a standard DB9 male 
connector. The pin-outs for the 10-pin header and DB9 male connector are listed above. The RTS 
signal also drives the DTR pin on COM2, DTR is always the same state as RTS.  

5.3  RS-485 Support 

An option is available to add support to COM1 for half 
duplex or full duplex RS-485.  RS-485 drivers allow 
communications between multiple nodes up to 4000 feet 
(1200 meters) via twisted pair cable. Half-duplex RS-485 
requires one twisted pair plus a Ground connection, while 
full duplex requires two twisted pair plus a Ground. 

For half-duplex operation, a single twisted pair is used for 
transmitting and receiving. Bit 6 at I/O location 75h must 
be set to enable RTS mode or bit 7 can be set to enable 
Automatic mode.  In RTS mode, the serial port RTS signal 
controls the RS-485 transmitter/receiver (See Automatic 
mode below).  When RTS is asserted true, the RS-485 
transmitter is enabled and the receiver disabled. When 
RTS is de-asserted the transmitter is tri-stated (disabled) 
and the receiver is enabled. Since the transmitter and 
receiver are never both enabled, the serial port UART 
does not receive the data transmitted.  

For full-duplex operation, two twisted pairs are used and 
the transmitter can typically be left on all the time.  Simply 
use RTS mode, and set RTS true. 

See Figure 2 above for connector pin-outs. 

 

 

 

5  GND 

 

 

Rx -   9 

4  Rx +  

 

[in] 

CTS 

3  TX data 

[out] 

 [out] 

RTS 

2  RX data 

[in] 

Tx -   6 

1   Tx + 

Figure 2 – 

COM1

 9-pin Sub D                 

Pin-out [signal direction is in brackets] 

PLEASE NOTE: 

COM1 has connections 

for the RS-232 port and the RS-485 port 
on the same 9 pin connector, only one of 
the two functions will be used at a time. 

 

 

5V Power  10  5  GND 

 

 

NC 

4  DTR (RTS)  [out] 

[in] 

CTS 

3  TX data 

[out] 

 [out] 

RTS 

2  RX data 

[in] 

NC 

1  NC 

Figure 1 – 

COM2

 Serial Port Header and 

DB9 Pin-out [signal direction is in brackets] 

PLEASE NOTE: 

The serial port headers 

use a non-standard numbering scheme. 
This was done so the header pins would 
have the same numbering as the corre-
sponding DB-9 pin; i.e. pin 8 (CTS) on the 
header connects to pin 8 on the DB-9 

 

RS-485 Quick start procedure: 

1.  The RS-485 option must be installed 

2.  Install FD jumper for full-duplex or HD 

for half-duplex RS-485 operation 

3.  Attach the RS-485 cable to the 9-pin 

Sub-D connector. 

4.  Set the COM1 UART serial parameters 

(baud rate, data, parity, and stop bits, 
interrupts, etc). 

5.  Run Auto485.exe utility 

 

 

(configures bits 6 and 7 at I/O 75h)

 

(and initializes Timer2) 

6.  For Half-Duplex RTS mode:   To 

transmit data, assert RTS and write the 
data to the UART.    

To receive 

data, deassert RTS and read the data 
from the UART 

7.  For Half-Duplex Automatic mode:  just 

read or write data to the UART 

  

Содержание TS-5400

Страница 1: ...TS 5400 User s Manual ...

Страница 2: ... Hills AZ 85268 480 837 5200 FAX 837 5300 info embeddedx86 com http www embeddedx86 com This revision of the manual is dated October 23 2003 All modifications from previous versions are listed in the appendix Copyright 1998 2003 by Technologic Systems Inc All rights reserved ...

Страница 3: ...nt the RMA number on the outside of the package This limited warranty does not cover damages resulting from lighting or other power surges misuse abuse abnormal conditions of operation or attempts to alter or modify the function of the product This warranty is limited to the repair or replacement of the defective unit In no event shall Technologic Systems be liable or responsible for any loss or d...

Страница 4: ...BUTTON 17 13 PC 104 BUS EXPANSION 18 14 LOADING OR TRANSFERRING FILES 19 14 1 Developing with the Technologic Systems TS 9500 19 14 2 Transferring files with Compact Flash 19 14 3 Zmodem Downloads 19 15 DEBUGGING 20 15 1 Integrated BIOS Debugger 20 15 2 Using other debuggers 20 16 VIDEO KEYBOARD AND CONSOLE REDIRECTION 21 17 SYSTEM BIOS SETUP SCREENS 22 17 1 Main CMOS Configuration Screen 22 17 2 ...

Страница 5: ...v Int 15h Function B040h Matrix Keypad Support 31 Int 15h Function A1h Console I O Redirection 31 Int 15h Function B020h Jumper Pin Status 32 APPENDIX F USING A HIGHER RATE 10X BAUD CLOCK 33 APPENDIX G FURTHER REFERENCES 34 APPENDIX H MANUAL REVISIONS 34 ...

Страница 6: ...fairly short This is because for the most part the TS 5400 is a standard x86 based PC compatible computer and there are hundreds of books about writing software for the PC platform The primary purpose of this manual is documenting where the TS 5400 differs from a standard PC 2 PC Compatibility PC compatibility requires much more than just an x86 processor It requires PC compatible memory and I O m...

Страница 7: ...g The remainder of the Flash memory 1920 KB is configured as two solid state disk SSD drives appearing as drive A and drive B Drive A uses 896 KB of Flash memory while drive B uses the remaining 1024 KB of Flash memory Both drives are fully supported by the BIOS as INT 13h drives The physical Flash memory is accessed by the BIOS in protected mode at memory address 148M The Flash memory is guarante...

Страница 8: ...pping CF cards at least Windows ME seems to prefer this Note The TS 5400 always needs to be powered off before swapping CF cards 4 5 Non Volatile SRAM The 32 pin socket can also optionally hold 32 KB of Non volatile SRAM memory This behaves exactly like battery backed SRAM This or the DiskOnChip may be installed but not both Non volatile SRAM provides non volatile memory with unlimited write cycle...

Страница 9: ...n RTS mode the serial port RTS signal controls the RS 485 transmitter receiver See Automatic mode below When RTS is asserted true the RS 485 transmitter is enabled and the receiver disabled When RTS is de asserted the transmitter is tri stated disabled and the receiver is enabled Since the transmitter and receiver are never both enabled the serial port UART does not receive the data transmitted Fo...

Страница 10: ... transceiver at the correct times This only requires the TIMER2 to be initialized once based on baud rate and data format and bit 7 at I O location 75 must be set A utility called AUTO485 exe is included in the AUTOEXEC bat that simplifies this task 5 5 Adding Serial Ports If your project requires more than two serial ports additional ports may be added via the PC 104 expansion bus Technologic Sys...

Страница 11: ...e to a standard alphanumeric LCD display At system reset the port defaults to DIO mode If using an LCD display this port can be switched to LCD mode by writing a 1 into bit 4 at I O location Hex 7D or the BIOS call to enable the LCD also sets bit 4 at I O location Hex 7D See Section 7 for LCD mode When the LCD port is in DIO mode pins LCD_RS and LCD_WR are digital inputs LCD_EN is a digital output...

Страница 12: ...n D0 D7 are bi directional buffered copies of the data bus and carry all data and commands to the LCD Table 3 is not the standard pin outs given for LCD displays But this pin out allows a standard ribbon cable to be used when the ribbon cable is attached to the backside of the LCD Example LCD code is available at http www embeddedx86 com downloads util zip 8 Matrix Keypad Support The DIO2 port sig...

Страница 13: ...e DM9102A and do not require initialization by the processor DOS TCP IP Configuration Packet Driver and WATTCP A standard packet driver for DOS is installed on the board as shipped along with sample network applications written with the public domain Waterloo TCP IP software WATTCP WATTCP is a freely available package including source code that provides TCP IP connectivity for programs written for...

Страница 14: ...www embeddedx86 com Technologic Systems Example Configuration Pinging www embeddedx86 com 209 130 84 83 sent PING 1 PING receipt 1 response time 0 00 seconds Ping Statistics Sent 1 Received 1 Success 100 Average RTT 0 35 seconds A Other WATTCP examples include serial to telnet redirector http file download telnet server and finger Many more can be downloaded from the internet as freeware DOS TCP I...

Страница 15: ...g eth1 By default the eth1 config file has ENABLE no which means eth1 will not be configured on boot up Change this to yes if you want eth1 configured by the startup scripts The TCP IP network settings are configured in the file etc sysconfig network_cfg here is a listing Technologic Systems General Network Configuration File NETWORKING yes GATEWAY 192 168 0 1 Gateway for internet access GW_DEV et...

Страница 16: ...lock operation for a minimum of 10 years in the absence of power It is located at the standard PC I O addresses of Hex 070 and 071 The top 48 bytes index 50h through 7Fh are not used by the BIOS and are available for user applications The RTC is capable of generating a square wave output function with a period of 500 mSec to 122 uSec The square wave output pin is connected to IRQ8 on the processor...

Страница 17: ...itional failsafe feature In order to load the WDTMRCTL register a specific sequence of three word writes is required A 3333h followed by CCCCh followed by the value to be loaded into the WDTMRCTL register must be written to the WDTMRCTL register In order to clear the WDT counter feeding the watchdog a clear count key sequence must be written to the WDTMRCTL register This is a specific two word wri...

Страница 18: ... not turn on at all when power is applied the most likely problem is the power supply Check that the 5V and GND connections are not reversed A diode protects the board against damage in such a situation It is preferred to use BIOS interrupt functions to interface software with the user LED and option jumpers Please see Appendix F for further details and the utility disk for example code The LED ca...

Страница 19: ...it version of the PC 104 bus We have found this allows the support of the vast majority of PC 104 boards including all of the above mentioned examples IRQ3 and IRQ4 are typically used by COM2 and COM1 and are not available on the PC 104 bus If a daughter board must use either IRQ3 or IRQ4 it is possible to reconfigure the Elan520 registers and reassign IRQ lines Contact us for details Pin B19 norm...

Страница 20: ...14 3 Zmodem Downloads Using the Zmodem protocol to send files to and from the TS 5400 is simple and straightforward The only requirement is a terminal emulation program that supports Zmodem and virtually all do If you are using Windows 95 or later for your development work the HyperTerminal accessory works well To download a file to the TS 5400 from your host PC execute DL BAT at the DOS command l...

Страница 21: ...our application code the debugger will automatically be invoked To resume type the G command to GO or continue on with the rest of initialization From DOS ROM by typing INT3 at the command prompt If the full command com interpreter is running this is an internal command If only mini command com is running this will execute a small utility that simply contains an INT 3 instruction From the BIOS Set...

Страница 22: ...es for display and keyboard input which are rerouted to the serial port Any program that accesses the video or keyboard hardware directly will not work Keyboard redirection is limited simply because most of the extended keys on the keyboard function keys and Alt key in particular are not sent by the terminal emulator For these reasons the console redirection feature is meant more for system develo...

Страница 23: ... the CMOS memory on every boot any changes will be lost Basic CMOS Configuration Setup disk drives drive mapping boot order misc Custom Configuration Setup custom features for Technologic Systems boards Shadow Configuration Setup ROM BIOS shadowing in RAM Start System BIOS Debugger Enter debugger see section 15 Start RS232 Manufacturing Link Enter manufacturing mode to link with host PC Format Int...

Страница 24: ...e 2 Not installed Ext Floppy 1 Not installed Ide 3 Not installed 31MB E X Tab to select or to modify Esc to return to main menu The factory defaults shown will first attempt to boot from Compact Flash as Drive C If no CF is installed the BIOS will then boot from Drive A If a CF is installed but it is not desired to boot from this drive change the Boot 1st setting to Drive A In order for the Compac...

Страница 25: ...S 5400 User s Manual Technologic Systems 10 31 03 24 Master DIP switch 5 off change the IDE DRIVE GEOMETRY for Ide 2 to AUTOCONFIG PHYSICAL and change the DRIVE ASSIGNMENT for Drive D to Ide 2 Sec Master ...

Страница 26: ...mine when to flush cache to SDRAM This setting defaults to Write Through and may be set to Write Back by the user to optimize performance Refer to the AMD Elan SC520 users manual section 8 4 2 2 for more information on cache mode CPU Speed This will set the clock speed for the CPU core This can be set to 100 MHz or 133 Mhz The default speed for commercial temperature products is 133 MHz the defaul...

Страница 27: ...llows BIOS extension ROMs to be copied to SDRAM in upper memory regions to reduce access times Execution directly from ROM is significantly slower than executing from SDRAM The region from C000 C7FF is usually reserved for the video BIOS extension in a PC compatible system shadowing is enabled to optimize the video BIOS functions The region from E000 FFFF contains the embedded BIOS code in the TS ...

Страница 28: ...ologic Systems 10 31 03 27 Appendix A Board Diagram and Dimensions Appendix B Operating Conditions Operating Temperature 0 to 70 C Extended temperature range is optional Operating Humidity 0 to 90 relative humidity non condensing ...

Страница 29: ... 1M 15M or 31M or 63M BIOS Shadow RAM E0000h 896k 128k Elan520 Configuration Registers DF000h 892k 4k PC 104 Bus D2000h 840k 52k DiskOnChip or SRAM D0000h 832k 8k PC 104 Bus or SDRAM user configurable in CMOS setup see sec 17 4 C8000h 800k 32k PC 104 typically video BIOS C0000h 768k 32k PC 104 typically video memory A0000h 640k 128k Lower Memory RAM 00000h 00000 640k Figure 3 TS 5400 Memory Map ...

Страница 30: ...ers on TS 9500 196h 197h Reserved for A D Converter 170h 177h Secondary IDE TS 9500 140h 15Fh User Chip Select PC 104 Bus 080h 0FFh Internal Elan520 peripherals 074h 07Fh DIO and Control registers 072h 073h LCD port 070h 071h RTC and CMOS memory 060h 064h Keyboard Controller TS 9500 000h 05Fh Internal Elan520 peripherals Table 11 TS 5400 I O Map I O Address R W Resource 74h Read Product Code 40h P...

Страница 31: ... CY 0 carry flag AH 0 AL SP_VERSION For standard versions of the BIOS this is 0 An SP number is assigned when custom modifications are made to the BIOS for a client and it is returned in this register Contact us for further information 00h for standard products BH BIOS Version Major Number E g If the current BIOS version is 2 40 the register will contain 02h BL BIOS Version Minor Number E g If the...

Страница 32: ...f the following 0 9 A D and returns the scan code for Carriage Return A custom translation table is 16 words long where each word is a scan code ASCII pair for a key Information on scan codes can be found in books on IBM PC hardware Example programs are included on the utility disk See Section 8 for further details ENTRY AX B040h BH 00 Disable matrix keypad Enable matrix keypad Enable matrix keypa...

Страница 33: ...ist below ENTRY AX B020h EXIT CY 0 carry flag AX 0 BX Jumper Pin Status If Bit X 1 the jumper is installed BX Bit Jumper Description 0 JP1 Auto CMOS configuration 1 JP2 Console Redirected to COM port JP6 determines COM port 2 JP3 Write Enable flash A 3 JP4 Console set to 115K baud JP4 off 9600 baud 4 JP5 User definable 5 JP6 Console switched to COM1 JP2 must be installed Table 13 Int15h Function B...

Страница 34: ...d The baud rate clock for each COM port is controlled by bit 2 in the UART Control Register UART1CTL and UART2CTL UART1CTL DFCC0h UART2CTL DFCC4h Clearing bit 2 to a 0 will change the clock to the 10X rate NOTE You must not modify the other bits of this register You must use a read modify write procedure to change these bits The following code written in Turbo C provides an example for changing CO...

Страница 35: ...loads 12887 pdf Intel 386EX User s Guide http developer intel com design intarch manuals 272485 htm Maxim Integrated Products http www maxim ic com National Semiconductor NS16C450 Data Sheet Omen Technologies http www omen com PC 104 Consortium Web Site http www pc104 org Waterloo TCP IP Software WATTCP http www wattcp com Appendix H Manual Revisions 12 14 01 12 31 02 10 23 03 Initial release Upda...

Отзывы: