Octagon 2060 PC/104 Reference Manual

2060 PC/104 CPU Card
Reference manual
Manual part #6413, rev. F07
CONTACT INFORMATION
Front Desk: 303–430–1500
FastHelp@octagonsystems.com
www.octagonsystems.com
1
Copyright
OS Embedder™ is a trademark, and Octagon Systems Corporation®, and the Octagon logo are registered trademarks of Octagon Systems Corporation. ROM– DOS™ is a trademark of Datalight. QNX® is a registered trademark of QNX Software Systems Ltd. Windows XP® and Windows CE.net® are registered trademarks of Microsoft Corporation. HyperTerminal ™ is a copyright of Hilgraeve, Inc. CompactFlash™ is a trademark of San Disk Corporation. Ethernet® is a registered trademark of Xerox Corporation.
Disclaimer
Copyright 2004, 2005, 2006, 2007—Octagon Systems Corporation. All rights reserved. However, any part of this document may be reproduced, provided that Octagon Systems Corporation is cited as the source. The contents of this manual and the specifications herein may change without notice.
The information contained in this manual is believed to be correct. However, Octagon assumes no responsibility for any of the circuits described herein, conveys no license under any patent or other right, and makes no representations that the circuits are free from patent infringement. Octagon makes no representation or warranty that such applications will be suitable for the use specified without further testing or modification.
Octagon Systems Corporation general policy does not recommend the use of its products in life support applications where the failure or malfunction of a component may directly threaten life or injury. It is a Condition of Sale that the user of Octagon products in life support applications assumes all the risk of such use and indemnifies Octagon against all damage.
Technical Support
Carefully recheck your system before calling Technical Support. Run as many tests as possible; the more information you can provide, the easier it will be for Technical Support staff to help you solve the problem. For additional technical assistance, try the following:
Technical Support telephone: 303–426–4521 E-mail Technical Support:
support1@octagonsystems.com Applications Notes (via web): http://www.octagonsystems.com/Solutions/appnotes.html FAQ (via web):
http://www.octagonsystems.com/pages/faqs.html
Revision History
Revision Reason for Change Date
A Production Release 02 / 04
B Updated thermal information 07 / 04
C Clarified floppy drive 12 / 04
D Clarified ATX power requirements 11 / 05
E Removed reference to CD 08 / 06
F Specified that CGA monitors are not
supported.
11/07
2
IMPORTANT!
Please read the following section before installing your product:
Octagon’s products are designed to be high in performance while consuming very little power. In order to maintain this advantage, CMOS circuitry is used.
CMOS chips have specific needs and some special requirements that the user must be aware of. Read the following to help avoid damage to your card from the use of CMOS chips.
Using CMOS circuitry in industrial control
Industrial computers originally used LSTTL circuits. Because many PC components are used in laptop computers, IC manufacturers are exclusively using CMOS technology. Both TTL and CMOS have failure mechanisms, but they are different. Described below are some of the failures that are common to all manufacturers of CMOS equipment.
The most common failures on CPU control cards are over voltage of the power supply, static discharge, and damage to the serial and parallel ports. On expansion cards, the most common failures are static discharge, over voltage of inputs, over current of outputs, and misuse of the CMOS circuitry with regards to power supply sequencing. In the case of the video cards, the most common failure is to miswire the card to the flat panel display. Miswiring can damage both the card and an expensive display.
Multiple component failures: The chance of a random component failure is
very rare since the average MTBF of an Octagon card is greater than 11 years. In a 7 year study, Octagon has never found a single case where multiple IC failures were not caused by misuse or accident. It is very probable that multiple component failures indicate that they were user–induced.
Testing “dead” cards: For a card that is “completely nonfunctional”, there is
a simple test to determine accidental over voltage, reverse voltage or other “forced” current situations. Unplug the card from the bus and remove all cables. Using an ordinary digital ohmmeter on the 2,000 ohm scale, measure the resistance between power and ground. Record this number. Reverse the ohmmeter leads and measure the resistance again. If the ratio of the resistances is 2:1 or greater, fault conditions most likely have occurred. A common cause is miswiring the power supply.
Improper power causes catastrophic failure: If a card has had reverse
polarity or high voltage applied, replacing a failed component is not an adequate fix. Other components probably have been partially damaged or a failure mechanism has been induced. Therefore, a failure will probably occur in the future. For such cards, Octagon highly recommends that these cards be replaced.
3
Other over-voltage symptoms: In over-voltage situations, the
programmable logic devices, EPROMs and CPU chips, usually fail in this order. The failed device may be hot to the touch. It is usually the case that only one IC will be overheated at a time.
Power sequencing: The major failure of I/O chips is caused by the external
application of input voltage while the Micro PC power is off. If you apply 5V to the input of a TTL chip with the power off, nothing will happen. Applying a 5V input to a CMOS card will cause the current to flow through the input and out the 5V power pin. This current attempts to power up the card. Most inputs are rated at 25 mA maximum. When this is exceeded, the chip may be damaged.
Failure on powerup: Even when there is not enough current to destroy an
input described above, the chip may be destroyed when the power to the card is applied. This is due to the fact that the input current biases the IC so that it acts as a forward biased diode on power–up. This type of failure is typical on serial interface chips but can apply to any IC on the card.
Under-rated power supply: The board may fail to boot due to an under-
rated power supply. It is important that a quality power supply be used with the 2060 CPU Card that has sufficient current capacity, line and load regulation, hold up time, current limiting, and minimum ripple. The power supply for the 2060 must meet the startup risetime requirements specified in the ATX Power Design Guide, version 1.1, section 3.3.5. This assures that all the circuitry on the CPU control card sequences properly and avoids system lockup.
Excessive signal lead lengths: Another source of failure that was identified
years ago at Octagon was excessive lead lengths on digital inputs. Long leads act as an antenna to pick up noise. They can also act as unterminated transmission lines. When 5V is switch onto a line, it creates a transient waveform. Octagon has seen sub-microsecond pulses of 8V or more. The solution is to place a capacitor, for example 0.1 µF, across the switch contact. This will also eliminate radio frequency and other high frequency pickup.
Avoiding damage to the heatsink or CPU
WARNING!
When handling any Octagon Single Board Computer, extreme care must be taken not to strike the heatsink (if installed) against another object, such as a table edge. Also, be careful not to drop the Single Board Computer, since this may cause damage to the heatsink or CPU as well.
Note Any physical damage to the single board computer card is not covered under
warranty.
4
Excessive Thermal Stress
This card is guaranteed to operate over the published temperature ranges and relevant conditions. However, sustained operation near the maximum temperature specification is not recommended by Octagon or the CPU chip manufacturer due to well known, thermal related, failure mechanisms. These failure mechanisms, common to all silicon devices, can reduce the MTBF of the cards. Extended operation at the lower limits of the temperature ranges has no limitations.
5
Table of Contents
Technical Support ............................................................................................................................................. 2
Revision History ................................................................................................................................................ 2
Using CMOS circuitry in industrial control ........................................................................................................ 3
Avoiding damage to the heatsink or CPU............................................................................................................ 4
Excessive Thermal Stress ................................................................................................................................. 5
Table of Contents .................................................................................................................................................. 6
List of Figures...................................................................................................................................................... 10
List of Tables........................................................................................................................................................ 11
Overview: Section 1 – Installation ................................................................................................................. 12
Chapter 1: Overview.......................................................................................................................................... 13
Description .......................................................................................................................................................... 13
2060 CPU Card major hardware features ......................................................................................................... 13
CPU processor ................................................................................................................................................. 13
SDRAM ............................................................................................................................................................ 13
On-board flash ................................................................................................................................................. 13
CompactFlash socket ...................................................................................................................................... 13
Hard disk and floppy disk ports ..................................................................................................................... 14
USB ports ........................................................................................................................................................ 14
Digital I/O ........................................................................................................................................................ 14
Serial ports protected against ESD ................................................................................................................ 14
Multifunctional printer port ........................................................................................................................... 15
Multipurpose connectors and cables............................................................................................................... 15
Hardware reset................................................................................................................................................ 15
Video ................................................................................................................................................................ 16
Speaker, keyboard, and mouse ports.............................................................................................................. 16
Real time calendar/clock with battery–backup.............................................................................................. 16
Setup information stored in EEPROM for high reliability ........................................................................... 16
Watchdog timer added for safety.................................................................................................................... 16
PC/104 interface .............................................................................................................................................. 16
5 Volt only operation lowers system cost ....................................................................................................... 17
Rugged environmental operation ................................................................................................................... 17
Size................................................................................................................................................................... 17
2060 CPU Card major software features ........................................................................................................... 18
Diagnostic software verifies system integrity automatically ........................................................................ 18
Phoenix software BIOS ................................................................................................................................... 18
Octagon BIOS extensions................................................................................................................................ 18
Boot sequence .................................................................................................................................................. 18
Chapter 2: Quick start ...................................................................................................................................... 19
Component diagrams, connectors and cables .................................................................................................... 19
2060 CPU Card connectors and jumpers ....................................................................................................... 23
2060 CPU Card high-density and custom cables........................................................................................... 24
Custom cables.................................................................................................................................................. 27
Custom cables.................................................................................................................................................. 28
Installing the 2060 CPU Card............................................................................................................................ 28
Equipment required ........................................................................................................................................ 28
Hardware mounting ........................................................................................................................................ 29
2060 CPU Card power supply requirements.................................................................................................. 30
Connecting a monitor and keyboard .................................................................................................................. 31
Monitor ............................................................................................................................................................ 31
Keyboard and mouse ....................................................................................................................................... 31
Speaker ............................................................................................................................................................ 31
Installing an operating system........................................................................................................................... 32
OS on floppy onto a hard drive or CompactFlash.............................................................................................. 32
OS on CD-ROM onto a hard drive or CompactFlash ........................................................................................ 33
Chapter 3: Setup programs.............................................................................................................................. 36
6
Operating systems other than DOS................................................................................................................... 36
Setup.................................................................................................................................................................... 36
Main menu....................................................................................................................................................... 37
Hard drive submenus...................................................................................................................................... 38
Advanced menu ............................................................................................................................................... 39
Advanced Chipset Control submenu .............................................................................................................. 40
I/O Device Configuration submenu ................................................................................................................ 41
PCI Configuration submenu ........................................................................................................................... 42
PCI/PNP ISA UMB Region Exclusion submenu............................................................................................ 42
PCI/PNP ISA IRQ Resource Exclusion submenu .......................................................................................... 43
PCI/PNP ISA DMA Resource Exclusion submenu ........................................................................................ 43
Boot menu........................................................................................................................................................ 44
Expanded Boot screen..................................................................................................................................... 44
Exit menu ........................................................................................................................................................ 45
Chapter 4: Save and run programs................................................................................................................ 46
Save and run your programs on the 2060 CPU Card........................................................................................ 46
Saving programs and support files .................................................................................................................... 46
Adding your application.................................................................................................................................. 46
Overriding the autoexecution of your application ......................................................................................... 47
Overview: Section 2 – Hardware ....................................................................................................................48
Chapter 5: Serial ports...................................................................................................................................... 49
Description .......................................................................................................................................................... 49
Mating receptacle ............................................................................................................................................ 49
Serial port configurations................................................................................................................................... 49
Setup menu for COM ports............................................................................................................................. 52
Function and use of serial ports......................................................................................................................... 52
Mating receptacle ............................................................................................................................................ 52
COM1 as serial console device........................................................................................................................ 53
COM ports as RS–232 I/O............................................................................................................................... 53
COM2 as RS–422 and RS–485 networks ....................................................................................................... 53
RS–422............................................................................................................................................................. 53
RS–485............................................................................................................................................................. 54
Chapter 6: LPT1 parallel port ......................................................................................................................... 56
LPT1 parallel port............................................................................................................................................... 56
Mating receptacle ............................................................................................................................................ 56
Printer ................................................................................................................................................................. 57
Installing a printer.......................................................................................................................................... 57
Floppy disk drive on LPT1 ................................................................................................................................. 58
Chapter 7: Console devices .............................................................................................................................. 59
Description .......................................................................................................................................................... 59
Selecting console devices .................................................................................................................................... 59
Monitor and keyboard console ........................................................................................................................ 59
Serial console................................................................................................................................................... 60
Chapter 8: CompactFlash, SDRAM, and battery backup........................................................................... 63
Description .......................................................................................................................................................... 63
CompactFlash ..................................................................................................................................................... 63
Creating a bootable CompactFlash ................................................................................................................ 63
SDRAM................................................................................................................................................................ 64
Battery backup for real time calendar clock...................................................................................................... 64
Installing an AT battery ................................................................................................................................. 64
Chapter 9: External drives............................................................................................................................... 65
Description .......................................................................................................................................................... 65
Floppy disk controller ......................................................................................................................................... 67
Power requirements ........................................................................................................................................ 67
Installing a floppy disk drive .......................................................................................................................... 67
Hard disk controller............................................................................................................................................ 67
Master/slave designation for IDE devices ...................................................................................................... 68
Installing a hard drive .................................................................................................................................... 68
Chapter 10: Bit-programmable digital I/O.................................................................................................... 69
7
Description .......................................................................................................................................................... 69
Interfacing to switches and other devices ...................................................................................................... 70
Organization of banks ..................................................................................................................................... 71
Port addressing................................................................................................................................................ 71
I/O lines pulled low.......................................................................................................................................... 72
Configuring and programming the I/O ports..................................................................................................... 72
Programming the I/O ...................................................................................................................................... 72
Configuring the I/O ......................................................................................................................................... 72
Writing and reading from I/O ......................................................................................................................... 73
I/O output program examples......................................................................................................................... 73
I/O input program examples ........................................................................................................................... 74
Enhanced INT 17h function definitions............................................................................................................. 74
Initialize I/O .................................................................................................................................................... 74
Write I/O .......................................................................................................................................................... 75
Read I/O ........................................................................................................................................................... 76
Chapter 11: CRTs and flat panels................................................................................................................... 77
Description .......................................................................................................................................................... 77
Video features ..................................................................................................................................................... 77
Connecting a monitor.......................................................................................................................................... 77
Connecting a flat panel display.......................................................................................................................... 79
Flat panels requiring bias voltage.................................................................................................................. 79
Connecting the flat panel to the 2060 CPU Card .......................................................................................... 79
Programming the video BIOS ............................................................................................................................ 81
Additional notes on video BIOS...................................................................................................................... 81
Chapter 12: PC/104 expansion......................................................................................................................... 82
Description .......................................................................................................................................................... 82
Chapter 13: USB ................................................................................................................................................. 83
Description .......................................................................................................................................................... 83
Overview: Section 3 – System management................................................................................................. 84
Chapter 14: Watchdog timer and hardware reset ......................................................................................85
Description .......................................................................................................................................................... 85
Timeout period (ranges) .................................................................................................................................. 85
Booting, power down, and strobing the watchdog timer ............................................................................... 85
Watchdog function definitions using enhanced INT 17h handler ....................................................................86
Enable watchdog ............................................................................................................................................. 86
Strobe watchdog .............................................................................................................................................. 87
Disable watchdog............................................................................................................................................. 87
Hardware reset ................................................................................................................................................... 88
Chapter 15: Serial EEPROM............................................................................................................................ 89
Description .......................................................................................................................................................... 89
Enhanced INT 17h function definitions............................................................................................................. 89
Serial EEPROM .................................................................................................................................................. 89
Read a single word from the serial EEPROM................................................................................................ 89
Write a single word to the serial EEPROM ................................................................................................... 90
Read multiple words from the serial EEPROM............................................................................................. 90
Write multiple words to the serial EEPROM ................................................................................................ 91
Return serial EEPROM size ........................................................................................................................... 92
Chapter 16: CPU clock, system jumpers, user jumper, and BIOS recovery .........................................93
CPU clock ............................................................................................................................................................ 93
System jumpers................................................................................................................................................... 93
System jumper................................................................................................................................................. 94
Extended BIOS jumper ................................................................................................................................... 94
Video jumper.................................................................................................................................................... 94
User jumper..................................................................................................................................................... 94
BIOS recovery jumper..................................................................................................................................... 95
BIOS programming using PHLASH.EXE...................................................................................................... 95
INT17 calls to read user jumper ........................................................................................................................ 96
Chapter 17: Troubleshooting........................................................................................................................... 97
Boot Block Recovery............................................................................................................................................ 97
8
Memory conflicts using operating system other than DOS .............................................................................. 97
No system LED activity...................................................................................................................................... 97
No CRT or flat panel video ................................................................................................................................. 97
Video is present but is distorted......................................................................................................................... 98
No serial console activity .................................................................................................................................... 99
Garbled serial console screen activity................................................................................................................ 99
System generates a BIOS message but locks up when booting........................................................................ 99
System will not boot from CompactFlash .......................................................................................................... 99
System locks up on power-up; may or may not respond to reset switch ........................................................ 100
System locks up after power-down/power-up .................................................................................................. 100
LED signaling of “beep” codes .......................................................................................................................... 100
Technical assistance ......................................................................................................................................... 104
Overview: Section 4 – Appendices................................................................................................................ 105
Appendix A: 2060 CPU Card technical data............................................................................................... 106
Technical specifications .................................................................................................................................... 106
CPU................................................................................................................................................................ 106
Bus clock ........................................................................................................................................................ 106
BIOS............................................................................................................................................................... 106
SDRAM .......................................................................................................................................................... 106
On-board flash ............................................................................................................................................... 106
Floppy drive................................................................................................................................................... 106
Hard drive...................................................................................................................................................... 106
CompactFlash socket .................................................................................................................................... 106
USB................................................................................................................................................................ 106
Serial I/O........................................................................................................................................................ 106
Parallel port................................................................................................................................................... 106
Digital I/O ...................................................................................................................................................... 106
Speaker, Keyboard, and Mouse ports........................................................................................................... 106
Video .............................................................................................................................................................. 107
Watchdog timer ............................................................................................................................................. 107
Real time clock............................................................................................................................................... 107
Expansion ...................................................................................................................................................... 107
Operating systems......................................................................................................................................... 107
Bus mastering ............................................................................................................................................... 107
Power requirements ...................................................................................................................................... 107
Environmental specifications ....................................................................................................................... 107
Size................................................................................................................................................................. 107
Weight............................................................................................................................................................ 107
Mating connectors............................................................................................................................................. 108
Maps .................................................................................................................................................................. 109
Jumper settings ................................................................................................................................................ 111
Connector pin–outs ........................................................................................................................................... 112
Appendix B: Software utilities...................................................................................................................... 117
Introduction....................................................................................................................................................... 117
Support commands........................................................................................................................................ 117
GETVIDEO.EXE............................................................................................................................................... 118
I17HNDLR.EXE................................................................................................................................................ 118
PGMVIDEO.EXE.............................................................................................................................................. 118
PHLASH.EXE ................................................................................................................................................... 119
RESET.COM ..................................................................................................................................................... 120
Appendix C: Accessories.................................................................................................................................. 121
Warranty ............................................................................................................................................................. 122
Limitations on warranty................................................................................................................................... 122
Service policy..................................................................................................................................................... 122
Returning a product for repair ......................................................................................................................... 122
Returns.............................................................................................................................................................. 123
Governing law ................................................................................................................................................... 123
9
List of Figures
Figure 2–1 2060 CPU Card component diagram (top) ......................................................................20
Figure 2–2 2060 CPU Card component diagram (bottom)................................................................21
Figure 2–3 2060 CPU Card dimensions.............................................................................................22
Figure 2–4 HDC-18-HDD/FP cable....................................................................................................25
Figure 2–5 2060 CPU Card HDC-18-SBC-Multiport cable ..............................................................27
Figure 2–6 Power connector, J3 .........................................................................................................30
Figure 2–7 Connecting a monitor and keyboard ............................................................................... 31
Figure 2–8 Installing an operating system........................................................................................35
Figure 5–1 COM ports ........................................................................................................................ 50
Figure 5–2 W2 jumper pin locations ..................................................................................................52
Figure 5–3 Typical RS–422 four-wire interface circuit.....................................................................54
Figure 5–4 Typical RS–485 4–wire interface circuit.........................................................................54
Figure 5–5 Typical RS–485 2–wire half duplex interface circuit .....................................................55
Figure 6–1 LPT1 as a printer port.....................................................................................................57
Figure 7–1 Monitor and keyboard as console ....................................................................................60
Figure 7–2 The 2060 CPU Card and a serial console........................................................................62
Figure 9–1 2060 CPU Card with floppy/IDE device..........................................................................66
Figure 10–1 Typical digital I/O configuration .....................................................................................70
Figure 10–2 Organization of banks......................................................................................................71
Figure 11–1 The 2060 CPU Card and a VGA monitor........................................................................ 78
Figure 11–2 The 2060 CPU Card and a flat panel display ................................................................. 80
Figure 12–1 Typical PC/104 module stack ..........................................................................................82
Figure 16−1 W3 jumper pin locations .................................................................................................93
10
List of Tables
Table 2–1 2060 CPU Card connector functions ............................................................................... 23
Table 2–2 2060 CPU Card jumper functions ...................................................................................23
Table 2–3 HDC-18-HDD/FP cable description ................................................................................24
Table 2–4 HDC-18-SBC-Multiport cable description ......................................................................26
Table 2–5 Power connector: J3 .........................................................................................................30
Table 5–1 Serial port configurations................................................................................................50
Table 5–2 COM1 and COM2 connector pin-outs (J2 connector).....................................................51
Table 5–3 J7 – COM2 connector pin-outs and pin-outs for 2060 RS–422/485 cable......................51
Table 5–4 COM2 jumper: W2 ...........................................................................................................51
Table 6–1 LPT1 connector pinout (on the Multiport cable) ............................................................56
Table 6–2 2060 LPT-to-Floppy Adapter Cable ................................................................................58
Table 8–1 Battery Connector............................................................................................................64
Table 10–1 J2 – Digital I/O connector................................................................................................ 69
Table 10–2 STB-20 interface ..............................................................................................................70
Table 10–3 Digital I/O port address ...................................................................................................71
Table 10–4 Digital I/O port byte.........................................................................................................72
Table 11–1 J5 – CRT connector..........................................................................................................78
Table 11–2 Flat panel connector on the HDD/FP cable ....................................................................80
Table 16−1 CPU clock speed: W3 .......................................................................................................93
Table 16−2 System configuration jumper: W1...................................................................................94
Table 17–1 BIOS beep codes.............................................................................................................101
Table A–1 Mating connectors..........................................................................................................108
Table A–2 HDC-18-HDD/FP cable description (part # 6386) ........................................................108
Table A–3 HDC-18-SBC-Multiport cable description (part # 6387) ..............................................108
Table A–4 2060 CPU Card DMA map ............................................................................................109
Table A–5 2060 CPU Card I/O map................................................................................................109
Table A–6 2060 CPU Card interrupt map...................................................................................... 110
Table A–7 2060 CPU Card memory map........................................................................................110
Table A−8 System configuration jumper: W1.................................................................................111
Table A–9 COM2 jumper: W2 .........................................................................................................111
Table A−10 CPU clock speed: W3 .....................................................................................................111
Table A–11 J1 – CompactFlash ........................................................................................................112
Table A–12 J2 – 2060 HDC-18-SBC-Multiport connector ...............................................................113
Table A–13 J3 – Power connector .....................................................................................................114
Table A–14 J4 – PC/104 connector....................................................................................................114
Table A–15 J5 – CRT connector ........................................................................................................ 115
Table A–16 J6 – Additional digital I/O connector ............................................................................115
Table A–17 J7 – COM2 connector pinouts for RS–422/RS–485 ......................................................115
Table A–18 J500 – 2060 HDD/FP connector ....................................................................................116
Table C–1 Cables and accessories...................................................................................................121
Table C–2 Digital I/O accessories ...................................................................................................121
11
Overview: Section 1 – Installation
Section 1 provides installation and programming instructions, startup options, and system configuration program examples. The following chapters are included:
Chapter 1: Overview
Chapter 2: Quick start
Chapter 3: Setup programs
Chapter 4: Save and run programs
12
Chapter 1: Overview
Description
The 2060 PC/104 CPU Card is intended for higher-performance, low-power embedded control applications. The 2060 CPU Card integrates serial communications, IDE hard disk port, floppy disk support on LPT1, CompactFlash socket, a multifunctional parallel port, digital I/O, two USB ports, keyboard, mouse and speaker ports, and video. The 2060 CPU Card can be used in a stand-alone mode or expanded through a PC/104 interface.
Note The 2060 is a stand-alone CPU card. It cannot be used as an expansion card on
another CPU card.
The 2060 CPU Card comes with a BIOS loaded on a flash device for easy updates. It is fully compatible with most popular operating systems.
2060 CPU Card major hardware features
CPU processor
The CPU is a high-performance, low-power AMD Geode GX1 processor with a clock speed of 233 or 300 MHz, jumper selectable. It uses the CS5530A companion chip for some of the peripherals. The 2060 CPU Card has an ISA bus speed of 8.33 MHz.
SDRAM
The memory socket can accept up to 256 MB capacity SO-DIMM modules.
On-board flash
On board is a 512 KB Surface Mount (SMT) boot flash that contains the BIOS.
CompactFlash socket
The CompactFlash socket accepts a Type I or Type II CompactFlash card. The CompactFlash appears as an IDE device to the system. It is implemented with an ATA-4 compliant IDE controller, and appears in Setup as the Primary IDE device.
13
Hard disk and floppy disk ports
The hard drive is routed through an 80-pin connector on the bottom side of the board. The Octagon 2060 HDD/FP cable breaks out 40 of the pins into two standard 40-pin IDE hard drive connectors. Note that the IDE connectors do not supply +5V to a hard drive.
The hard drive is implemented with a second ATA-4 compliant IDE controller (the CompactFlash uses the Primary IDE controller). The BIOS supports up to two IDE drives in addition to the CompactFlash.
A floppy drive is supported through the LPT port. LPT is routed through an 80-pin connector on the top side of the board. The Octagon 2060 Multiport cable breaks out the pins into a standard 25-pin LPT port. The Octagon LPT-to-Floppy cable connects directly into the LPT port and provides a standard 34-pin floppy drive connector. Note that only the LPT-to-Floppy cable part # 6470 can be used with this card, as the floppy pin out from the LPT port differs from other cards. Floppy drive is selected as one of the options in the LPT menu of BIOS Setup.
USB ports
The CS5530A companion chip supports two USB 1.1 channels, which are available when using an operating system that supports USB. There is no support from Octagon for DOS legacy USB.
Both channels are open HCI compliant. USB1 is routed through the 80-pin connector on the top side of the board. The Octagon 2060 Multiport cable breaks out the pins into a standard USB connector. USB2 is routed through the 80-pin connector on the bottom side of the board, and uses the Octagon 2060 HDD/FP cable.
Note that USB devices are hot-swappable when a device is plugged into a standard USB connector, as pins on the connectors determine the order in which they make contact. Devices are not hot-swappable when connected to a non-standard header. You can hot swap a device through the USB connector on the 2060 Multiport cable, or through another USB connector wired to the 80-pin header, but you cannot hot swap at the 80-pin header itself.
Digital I/O
The 2060 has 16 digital I/O lines on the 80-pin connector (accessed through the 2060 Multiport cable) and an additional eight lines on a separate connector. These 24 digital I/O lines will interface with logic devices, switch inputs, LEDs and industry standard opto module racks. The I/O lines are 0–5V logic compatible. They can be individually programmed as inputs or outputs. The 2060 Digital I/O cable provides connection to the additional eight I/O lines.
Serial ports protected against ESD
The 2060 CPU Card has two serial ports. COM1 and COM2 provide RS–232C. COM2 also supports RS–422 and RS–485 interfaces. COM1 and COM2 are routed through the Octagon 2060 Multiport cable for RS–232C. RS–422 and RS–485 are provided through a separate connector. The 2060 RS-422/485 cable provides a
14
standard COM port connector for RS–422 and RS–485.
Multifunctional printer port
The 2060 CPU Card incorporates the latest enhanced parallel port and includes unidirectional, bi-directional, ECP, EPP, and Floppy Drive modes.
The following represent applications in the multifunctional parallel port:
LPT1 for PC compatible printers
17 general purpose digital I/O lines
Floppy disk drive port
Multipurpose connectors and cables
Most of the peripherals on the 2060 CPU Card are routed through two 80-pin connectors. Octagon has cables that break out these 80 pins into industry standard connectors. Because of the compact form factor of the 2060 CPU Card some additional connectors are nonstandard, and are supported by Octagon cables. These cables are listed below:
HDC-18-SBC-MULTIPORT-2060 interface cable Connects into J2 on the
top of the board and provides industry standard connectors for COM1, COM2, Digital I/O, USB1, LPT1, PC battery, and PS/2 compatible keyboard and mouse, as well as a PC speaker and a Reset switch. Part number 6387.
HDC-18-SBC-HDD/FP-2060 cable Connects into J500 on the bottom of the
board and provides a standard 40-pin hard drive connector, USB2, and a 34-pin flat panel interface. Part number 6386.
2060 COM2 RS-422/485 Cable Connects into J7 to provide RS–422 and RS–
485 through a standard serial port interface. Part number 6393.
2060 Digital I/O Cable Connects into the optional J6 connector for eight
additional digital I/O lines. Part number 6394.
2 mm VGA-12 Cable Connects into J5 and provides a standard 15-pin
VGA interface. Part number 6392.
LPT-to-Floppy Adapter Cable Connects into the LPT port and provides a
standard 34-pin floppy drive interface. Part number 6470. Note that only the LPT-to-Floppy cable part # 6470 can be used with this card, as the floppy pin out from the LPT port differs from other cards.
Hardware reset
A hardware reset ensures complete reset of the system and all attached peripherals. A hardware reset can be done by any of the following methods:
An expired watchdog timer cycle
Depressing the reset switch
Cycling power
Power supervisor reset
15
Video
The 2060 CPU Card supports CRT monitors up to 1280 x 1024 x 8 bpp (bits per pixel) resolution, and flat panel displays with up to 1024 x 768 x 8 bpp resolution. CGA monitors are not supported;
Speaker, keyboard, and mouse ports
The 2060 Multiport cable contains a PC speaker, a PS/2 keyboard connector, and a PS/2 mouse connector. Neither the keyboard nor the mouse is required for operation.
Real time calendar/clock with battery–backup
The real time clock is fully AT compatible. An optional off-card battery powers the real time clock when the 5 volt supply is removed. The AT battery is connected via the 2060 Multiport cable.
Setup information stored in EEPROM for high reliability
Loss of Setup data is serious in industrial applications. Most PCs store Setup information in battery-backed CMOS RAM. If the battery fails or is replaced during routine maintenance, this information is lost. Without a keyboard and monitor in embedded applications, time consuming re-initialization is required. The 2060 CPU Card stores the Setup information in EEPROM with 1024 words available to the user. Software routines to use this available memory come with the 2060 CPU Card.
Watchdog timer added for safety
The watchdog timer resets the system if the program stops unexpectedly. The watchdog is enabled, disabled and strobed under software control; it can also be enabled or disabled in Setup. The time-out period is programmable from 2 ms to 120 seconds, with a variability of ±50%.
PC/104 interface
The PC/104 interface accepts an 8- or 16-bit PC/104 expansion board. PC/104 expansion boards are available from several manufacturers. PC/104 expansion boards may be stacked on the PCS–620 to form a fully-integrated system.
16
5 Volt only operation lowers system cost
5V ±5%
+12V supplied to PC/104 connector from the power connector or the ISA bus;
not required for 2060 CPU Card operation
Rugged environmental operation
Operating temperature –40° to 85°C @ 300 MHz
–40° to 85°C @ 233 MHz Nonoperating temperature –55° to 95°C, nonoperating
Relative humidity 5% to 95% noncondensing
Shock 40g, 3 axis
Vibration 5g, 3 axis
Size
3.55 in. x 3.75 in. x 0.80 in., PC/104 form factor
17
2060 CPU Card major software features
Diagnostic software verifies system integrity automatically
The 2060 CPU Card has built-in diagnostic software that can be used to verify on­card I/O and memory functions. On power-up, a series of tests is performed. If a problem occurs, the failed test can be identified by a flashing LED or a beep code. The test is performed automatically every time the system is reset or powered up. Memory verification does not require software, test equipment, monitor, keyboard, disks, or test fixtures. See the “Troubleshooting” chapter for a listing of tests and failures and their descriptions.
Phoenix software BIOS
The 2060 CPU Card has a Phoenix Software BIOS with Octagon BIOS extensions. The BIOS extensions support the INT17 functions.
Octagon BIOS extensions
On-board BIOS extensions allow easy access to watchdog timer functions, serial EEPROM, digital I/O, etc.
Boot sequence
A 2060 CPU Card can be configured to boot from CompactFlash, a floppy disk, a hard disk, or a CD–ROM.
18
Chapter 2: Quick start
This chapter covers the basics of setting up a 2060 CPU Card system. The following topics are discussed:
Component diagrams, connectors and cables
Installing the 2060 CPU Card
Connecting a monitor and keyboard
Installing an operating system
Component diagrams, connectors and cables
Figures 2–1 and 2–2 show the connectors and their locations on the 2060 CPU Card. Figure 2–3 shows the dimensions of the 2060 CPU Card in inches and millimeters. The sections immediately following those figures describe the connectors and the high-density cables.
The 2060 CPU Card contains static-sensitive CMOS components. To avoid damaging your card and its components:
Ground yourself before handling the card
Disconnect power before removing or inserting a PC/104 expansion
board.
WARNING!
19
Figure 2–1 2060 CPU Card component diagram (top)
20
Figure 2–2 2060 CPU Card component diagram (bottom)
21
Figure 2–3 2060 CPU Card dimensions
22
2060 CPU Card connectors and jumpers
Table 2–1 lists the connector reference designators and function for each of the connectors. Table 2–2 lists the jumper block reference designators and functions for each of the jumper blocks. To view the physical location of each connector and jumper block refer to the illustration on page connectors see page the following section.
Table 2–1 2060 CPU Card connector functions
Connector Function
J1 CompactFlash
J2 Multiport I/O
J3 Power J4 PC/104
J5 CRT Video
J6 Digital I/O (eight lines)
J7 COM2 RS–422/RS–485
J500 Hard drive/Flat panel
XU1 SDRAM SODIMM
Table 2–2 2060 CPU Card jumper functions
107. For information on the high-density and custom cables see
20. For information on mating
Jumper Function
W1 Display jumper / system
jumpers
W2 COM2 RS–422/RS–485
termination
W3 CPU clock speed select
23
2060 CPU Card high-density and custom cables
The 2060 CPU Card has two 80-pin connectors that provide an interface for several of the card functions. Octagon has two high-density cables that break out these connectors into industry-standard interfaces. There are also four custom cables that provide connectivity for some of the functions.
Connector J2, on the front side of the board, uses the HDC-18-SBC-Multiport-2060 Interface Cable, part #6387. This cable provides an interface for LPT, COM1 and COM2, Digital I/O, USB1, Speaker, Keyboard, Mouse, AT Battery, and Reset. The LPT connector can also be used as a floppy drive connector.
Connector J500, on the backside of the board, uses the HDC-18-HDD/FP-2060 cable, part #6386. This cable provides two hard drive connectors, a flat panel connector, and USB2. Note that the hard drive connectors do not provide power to the drives. Table 2–3 and figure 2–4 show the HDD/FP cable, while table 2–4 and figure 2–5 show the Multiport cable.
Table 2–3 HDC-18-HDD/FP cable description
HDC-18-HDD/FDD
cable
Side A Side B
IDE drive IDE drive
Flat Panel USB2
IDE drives
Interfaces to two standard 40-pin IDE devices, such as hard drives or CD-ROM drives. These connectors are on the Secondary IDE channel. The IDE devices themselves should have settings for Master or Slave. These connectors do not supply power to IDE devices.
Flat Panel
Interfaces to a 34-pin flat panel.
USB2
Standard USB connector.
Caution
USB devices are hot-swappable when a device is plugged into a standard USB connector, as pins on the connectors determine the order in which they make contact. Devices are not hot-swappable when connected to a non-standard header. You can hot swap a device through the USB connector on the 2060 Multiport cable, or through another USB connector wired to the 80-pin header, but you cannot hot swap at the 80-pin header itself.
24
Figure 2–4 HDC-18-HDD/FP cable
USB2
Flat
80-pin connector, plugs into J500 on bottom of 2060 CPU Card
IDE Drive
IDE Drive
25
Table 2–4 HDC-18-SBC-Multiport cable description
HDC-18-SBC-Multiport cable
Side A Side B
PS/2 Keyboard
PS/2 Mouse Reset PC Speaker AT Battery LPT / Floppy
USB1 Digital I/O COM2 COM1
Keyboard and mouse
Standard PS/2 keyboard and mouse connectors.
Reset
A momentary contact switch is used to reset the 2060 CPU Card.
PC Speaker
8 ohm speaker.
AT battery
Mates with a standard AT style, 3.6V battery.
LPT1 / Floppy
A standard DB-25 connector that can connect directly to a printer. This port can also function as a floppy disk drive port when using a LPT-to-Floppy Adapter Cable. Note that only the LPT-to-Floppy cable part # 6470 can be used with this card, as the floppy pin out from the LPT port differs from other cards.
USB1
Standard USB connector.
Caution
USB devices are hot-swappable when a device is plugged into a standard USB connector, as pins on the connectors determine the order in which they make contact. Devices are not hot-swappable when connected to a non-standard header. You can hot swap a device through the USB connector on the 2060 Multiport cable, or through another USB connector wired to the 80-pin header, but you cannot hot swap at the 80-pin header itself.
Digital I/O
16 Digital I/O lines.
COM2 and COM1
Standard DB-9 connectors that connect to RS–232 serial devices.
26
Figure 2–5 2060 CPU Card HDC-18-SBC-Multiport cable
g
PS/2 Keyboard
5 6
3
1
5 6
3
1
PS/2 Mouse
4
2
PC Speaker
AT Battery
4
2
Reset Switch
LPT / Floppy
80-pin connector, plugs into J2 on top of 2060 CPU Card
COM1
USB1
Di
ital I/O
COM2
27
Custom cables
The following four custom cables are available from Octagon.
COM2 RS-422/485 Cable Connects into J7 to provide RS–422 and RS–485
through a standard serial port interface. Part number 6393.
2060 Digital I/O Cable Connects into the J6 connector for eight additional
digital I/O lines. Part number 6394.
2 mm VGA–12 Cable Connects into J5 and provides a standard 15-pin
VGA interface. Part number 6392.
LPT-to-Floppy Adapter Cable Connects into the LPT port and provides a
standard 34-pin floppy drive interface. Part number 6470. Note that only the LPT-to-Floppy cable part # 6470 can be used with this card, as the floppy pin out from the LPT port differs from other cards.
Installing the 2060 CPU Card
WARNING!
The 2060 CPU Card contains static-sensitive CMOS components. To avoid damaging your card and its components:
Ground yourself before handling the card and observe proper ESD
precautions
Disconnect power before removing or inserting a PC/104 expansion
board
Equipment required
To install the 2060 CPU Card you will need the following equipment (or equivalent):
2060 CPU Card
+5V power supply – see Power Supply Requirements section
A device with an operating system. The device could be a CompactFlash, hard
disk, or CD ROM. The operating system can be Windows NT, Windows CE.net, Linux, QNX, or DOS. Note: Windows 2000 and Windows XP/XP
Embedded will run with known issues, however, new driver development is not supported by the CPU manufacturer.
PS/2 style keyboard
2060 MPC-18 multiport cable, #6387
Null modem adapter, #2740 (for serial console)
VGA monitor
2060 Utilities zip file (see page 117)
Windows HyperTerminal or equivalent terminal emulation software (for serial
28
console)
Your PC (for serial console)
Hardware components required to mount the 2060 (included):
4 threaded hex standoffs (4–40 x ¾”)
4 screws (4–40 x 3/16”)
4 internal star lock washers (#4)
4 nuts (4–40)
Refer to the 2060 CPU Card component diagram, figure 2–1 on page location of various connectors, and to the mounting hole diagram, figure 2–3 on
22, for mounting the 2060 CPU Card.
page
20, for the
Hardware mounting
1. Use the standoffs, washers, and screws and place them in the four holes on the 2060 board. Refer to Figure 2–3 for the center-to-center mounting hole dimensions and for the location of the designated holes used for mounting the hardware.
WARNING!
All four standoffs, screws and washers must be used to secure the
2060. The standoffs ensure full support of the board.
WARNING!
Verify that the washers and standoffs do not touch any of the component pads adjacent to the mounting holes. Damage will occur at power-up.
2. Connect a 5V power source to the 2060. Refer to the Power Supply Requirements section, page Refer to Figure 2–6 and Table 2–5.
30. The power supply connector is located at J3.
Make sure the power supply is OFF when connecting the power cable to the 2060 CPU Card board. Damage to the 2060 CPU Card may occur if the power is ON when connecting the power cable.
Note The +12V and –12V signals are routed to the PC/104 bus only.
Note See Appendix A – Connectors for additional mating information.
Accidentally crossing the wires, i.e., plugging +5V wires into the ground connector or the ground wires into the +5V connector will damage the 2060.
WARNING!
WARNING!
29
Figure 2–6 Power connector, J3
J3
Table 2–5 Power connector: J3
Pin Function
1 +5v
2 GND
3 +12V
4 –12V
2060 CPU Card power supply requirements
The 2060 CPU Card is designed to operate from a single +5 VDC supply, connected at J3. The typical current requirements for the 2060 CPU Card is listed in the Technical data appendix. If you are using the PC/104 interface, you may also require +12 VDC.
The user should consider factors such as the power cable conductor gauge, number and length of conductors, mating connectors, and the power requirements of external devices such as hard drives, floppy drives, displays, mouse, and keyboard.
It is important that a quality power supply be used that has sufficient current capacity, line and load regulation, hold up time, current limiting, and minimum ripple.
The power supply for the 2060 must meet the startup risetime requirements specified in the ATX Power Design Guide, version 1.1, section 3.3.5. This ensures that all the circuitry on the 2060 CPU Card sequences properly and avoids system lockup.
Also, select a power supply that discharges quickly. If large power supply output capacitors are used, powering the system down and then up may lock up the 2060 CPU Card. If the power supply does not drain below 0.7V, the CMOS components on the 2060 CPU Card will act like diodes and forward bias, potentially damaging the 2060 CPU Card circuitry.
The proper selection of a quality power supply ensures reliability and proper functioning of the 2060 CPU Card.
30
Connecting a monitor and keyboard
Figure 2–7 shows the 2060 CPU Card with a monitor and keyboard. The following sections describe how to connect these items.
Figure 2–7 Connecting a monitor and keyboard
VGA Monitor
2060 HDC-Multiport Cable, connector J2 on top of board
2060
PS/2 Keyboard
2 mm VGA–12 cable
Monitor
The 2060 CPU Card interfaces to a standard VGA monitor through the J5 connector using a 2 mm VGA–12 cable. Connect one end of the 2 mm VGA–12 cable into J5 and connect the other end to a VGA monitor cable.
Note The video jumper, W1[5–6], must be installed to use a monitor. This jumper is
installed by default.
Keyboard and mouse
The 2060 CPU Card accepts an AT style keyboard and has a PS/2 type connector, located on the HDC-18-SBC-Multiport cable. The mouse port is also on the HDC­18-SBC-Multiport cable, with a PS/2 type connector.
Speaker
The HDC-18-SBC-Multiport cable contains a PC speaker.
31
Installing an operating system
The 2060 CPU Card does not come with an installed operating system. You can install an operating system onto a hard drive or CompactFlash. Octagon Systems has software development kits available for Windows CE.net, Linux, QNX, and ROMDOS 7.1. These kits directly support the unique features of Octagon products, such as digital I/O, watchdog timer, etc., eliminating the need to write special drivers. Other software kits may also be available. Contact Octagon Systems for information concerning the software development kits.
To install an operating system you will need:
2060 HDC-18-SBC-Multiport cable, #6387
2060 HDC-18-HDD/FP cable, #6386
2 mm VGA-12 video cable, #6392
PS/2 style keyboard
VGA monitor
Floppy drive or CD-ROM drive, depending on the operating system media to be
used. If using floppy you will also need the LPT-to-Floppy Adapter cable, #6470
Operating system media
Hard drive or CompactFlash to install the operating system onto.
OS on floppy onto a hard drive or CompactFlash
Refer to Figure 2–6 on page 35 for the following:
1. Attach the HDC-18-SBC-Multiport cable to J2, HDC-18-HDD/FP cable to J500, the LPT-to-Floppy Adapter cable to the LPT port on the HDC-18-SBC­Multiport cable, and the 2 mm VGA–12 video cable to J5.
2. Connect the PS/2 keyboard to the HDC-18-SBC-Multiport cable, a VGA monitor to the VGA–12 video cable, and a floppy drive to the LPT-to-Floppy Adapter cable.
3. If using a hard drive, configure it as a master device and install it on the HDC­18-HDD/FP cable.
Note IDE devices have a jumper or a switch that designates whether the device is a
master or a slave device. If only one device is connected to a port, it must be configured as a master. If two devices are connected, one must be configured as a master and one as a slave. The 2060 does not use the CS signal (Cable Select) to designate master or slave on a multi-connector cable. You can use BIOS Setup to designate either the master or the slave as a boot device.
4. If using a CompactFlash, install it into the CompactFlash socket.
5. Apply power to the 2060 CPU Card system. A logon message similar to the one below will appear on your PC monitor:
Copyright 1985-2003 Phoenix Technologies Ltd.
32
All Rights Reserved
Octagon Systems: 2060 CPU Card V1.00
Build Time: 01/27/03 16:59:27
CPU =Cyrix MediaGXm300 MHz
638K System RAM Passed
130048K Extended RAM Passed
System BIOS shadowed
6. Enter Setup by pressing the F2 key during BIOS POST sequence (this occurs between the memory test and bootup).
Main Advanced Boot Exit System Time: System Date: Legacy Diskette A: Legacy Diskette B: > Primary Master > Primary Slave > Secondary Master > Secondary Slave >Memory Cache: >Boot option: System Memory: Extended Memory:
F1 Help ^v Select Item -/+ Change Values F9 Setup Defaults Esc Exit <> Select Menu Enter Select > Sub-Menu F10 Save and Exit
PhoenixBIOS Setup Utility
[00:00:36] [01/01/1988] [Disabled] [Disabled] [None] [None] [3253MB] [None]
640 KB 130048 KB
Item Specific Help
<Tab>, <Shift-Tab>, or <Enter> selects field.
Note Your display message may be slightly different
7. Change the LPT setting (in the Advanced menu) to Floppy Drive.
8. Change the boot sequence to floppy drive first.
9. Insert the operating system media into the floppy drive.
10. Reboot the system. The system should boot to the floppy drive.
11. Refer to the OS documentation to load the operating system.
OS on CD-ROM onto a hard drive or CompactFlash
Refer to Figure 2–6 on page 35 for the following:
1. Attach the HDC-18-SBC-Multiport cable to J2, HDC-18-HDD/FP cable to J500, and the VGA–12 video cable to J5.
2. Connect the PS/2 keyboard to the HDC-18-SBC-Multiport cable, a VGA monitor to the VGA–12 video cable, and a CD-ROM drive to the HDC-18­HDD/FP cable. Configure the CD-ROM drive as a master.
3. If using a hard drive, configure it as a slave device and install it on the HDC­18-HDD/FP cable.
Note IDE devices have a jumper or a switch that designates whether the device is a
master or a slave device. If only one device is connected to a port, it must be configured as a master. If two devices are connected, one must be configured as a
33
master and one as a slave. The 2060 does not use the CS signal (Cable Select) to designate master or slave on a multi-connector cable. You can use BIOS Setup to designate either the master or the slave as a boot device.
4. If using a CompactFlash, install it into the CompactFlash socket.
5. Apply power to the 2060 CPU Card system. A logon message similar to the one below will appear on your PC monitor:
Copyright 1985-2003 Phoenix Technologies Ltd.
All Rights Reserved
Octagon Systems: 2060 CPU Card V1.00
Build Time: 01/27/03 16:59:27
CPU =Cyrix MediaGXm300 MHz
638K System RAM Passed
130048K Extended RAM Passed
System BIOS shadowed
6. Enter Setup by pressing the F2 key during BIOS POST sequence (this occurs between the memory test and bootup).
Main Advanced Boot Exit System Time: System Date: Legacy Diskette A: Legacy Diskette B: > Primary Master > Primary Slave > Secondary Master > Secondary Slave >Memory Cache: >Boot option: System Memory: Extended Memory:
F1 Help ^v Select Item -/+ Change Values F9 Setup Defaults Esc Exit <> Select Menu Enter Select > Sub-Menu F10 Save and Exit
PhoenixBIOS Setup Utility
[00:00:36] [01/01/1988] [Disabled] [Disabled] [None] [None] [3253MB] [None]
640 KB 130048 KB
Item Specific Help
<Tab>, <Shift-Tab>, or <Enter> selects field.
Note Your display message may be slightly different
7. Configure the CD–ROM as a master device, and change the boot sequence to CD-ROM drive first.
8. Insert the operating system media into the CD-ROM drive.
9. Reboot the system. The system should boot to the CD-ROM.
10. Follow the on-screen dialog to load the operating system. Refer to the OS documentation for further information.
34
Figure 2–8 Installing an operating system
2060 HDC-Multiport Cable, connector J2 on top of board
VGA Monitor
PS/2 Keyboard
Power Supply
2 mm VGA-12 cable
CD-ROM to IDE connector on HDD/FP cable, J500 on back of board
2060
Hard drive to IDE connector on HDD/FP cable, J500 on back of board
Floppy drive to LPT port on HDC-18­Multiport cable, via LPT-to-floppy cable
CompactFlash installed into CompactFlash socket
35
Chapter 3: Setup programs
This chapter discusses running the Setup configuration program on the 2060 CPU Card. Setup configures devices set up by the BIOS such as serial ports, floppy drives, etc.
Operating systems other than DOS
If you are using an operating system other than DOS the X jumper should be removed. The X jumper maps the INT17 extended BIOS into the 0xD8000­0xDFFFF memory. This can cause problems with applications or hardware running on other operating systems if they attempt to use this memory range. Removing the X jumper frees this memory for use by other operating systems.
Setup
Setup can be entered by pressing the “F2” key during the BIOS POST sequence (this occurs between the memory test and boot).
Also, by removing the “S” jumper W1[1–2], you will force the setup to revert to the factory programmed defaults shown in the following menus. This allows the user to reconfigure the setup.
Note The Setup defaults might vary slightly from those shown in the following menus
depending on the BIOS revision on your card.
The system will display the 2060 CPU Card PhoenixBIOS Setup Utility Main menu. Select the submenu by using the up/down arrows, then press <ENTER> (when using a monitor connected to the 2060 CPU Card). For a serial console configuration, Ctrl + E is up and Ctrl + X is down.
36
Main menu
The Main menu allows you to set the basic system configuration.
Main Advanced Boot Exit System Time: System Date: Legacy Diskette A: Legacy Diskette B: > Primary Master > Primary Slave > Secondary Master > Secondary Slave >Memory Cache: >Boot options: System Memory: Extended Memory:
F1 Help ^v Select Item -/+ Change Values F9 Setup Defaults Esc Exit <> Select Menu Enter Select > Sub-Menu F10 Save and Exit
System Time: Sets the time for the system clock.
System Date: Sets the date for the system clock.
Legacy Diskette A: Enables or disables a legacy floppy disk drive. Note that the 2060 only
supports a floppy drive through the LPT port. You must enable this item and select floppy in the LPT Setup screen.
Legacy Diskette B: Enables or disables a second legacy floppy disk drive. Note that Diskette A
must be enabled before Diskette B is accessible. The menu items for Diskette B are then the same as for Diskette A.
>Primary Master Accesses submenu for a Primary Master disk drive. Options are None, CD-
ROM, ATAPI Removable, Other ATAPI, User, and Auto. This channel is hardwired to the CompactFlash, and cannot be used for other devices.
>Primary Slave Same as Primary Master. This channel is reserved and cannot be used.
>Secondary Master Same as Primary Master. Note that the 2060 CPU Card only supports
three IDE devices total (CompactFlash and two Secondary devices.)
>Secondary Slave Same as Primary Master. Note that the 2060 CPU Card only supports
three IDE devices (CompactFlash and two Secondary devices.)
>Memory Cache: Enables or Disables the memory cache.
>Boot options: Enables or Disables the following features: Quickboot
Mode, Summary Screen, Floppy Check, Hard disk Pre-Delay. Skipping these tests during boot will decrease the time needed to boot the system.
System Memory: Displays the amount of system memory which is on the card.
Extended Memory: Displays the amount of extended memory on the card.
PhoenixBIOS Setup Utility
[00:00:36] [01/01/1988] [Disabled] [Disabled] [None] [None] [None] [None]
640 KB 130048 KB
Item Specific Help
<Tab>, <Shift-Tab>, or <Enter> selects field.
37
Hard drive submenus
The Hard drive submenus allow you to set the primary/secondary/master/slave parameters. Except for older disk drives, the Auto selection will detect and display the correct parameters.
Main Primary Master [3253MB] Item Specific Help
PhoenixBIOS Setup Utility
Type:
Multi-Sector Transfers: LBA Mode Control: 32 Bit I/O: Transfer Mode: Ultra DMA Mode:
F1 Help ^v Select Item -/+ Change Values F9 Setup Defaults Esc Exit <> Select Menu Enter Select > Sub-Menu F10 Save and Exit
[Auto]
[16 Sectors] [Enabled] [Disabled] [Fast PIO 4] [Disabled]
User = you enter parameters of hard-disk drive installed at this connection. Auto = autotypes hard-disk drive installed here. CD-ROM = a CD- ROM drive is installed here. ATAPI Removable = removable disk drive is installed here.
Type: Specifies types of hard drives. Choices are None, Auto, CD-ROM, ATAPI
removable, Other ATAPI, and User. Selecting User allows you to specify the parameters of your hard drive.
Note UltraDMA modes are not supported directly by the 2060. These modes require an
80-pin connector, and there is no adapter available for the IDE connector used on the 2060.
38
Advanced menu
The Advanced menu allows you to set advanced system configuration. Note that if items are incorrectly set in this menu, the system might malfunction.
Main Advanced Boot Exit Item Specific Help
PhoenixBIOS Setup Utility
Setup Warning Setting items on this menu to incorrect values may cause your system to malfunction.
Serial Video: Baud Rate:
POST Video Mode:
>Advanced Chipset Control >I/O Device Configuration >PCI Configuration
Secured Setup Configurations Installed O/S: Reset Configuration Data: Large Disk Access Mode: Watchdog: PCI IRQ Routing:
F1 Help ^v Select Item -/+ Change Values F9 Setup Defaults Esc Exit <> Select Menu Enter Select > Sub-Menu F10 Save and Exit
[Enabled] [38K]
[Text]
[No] [Other] [No] [DOS] [Disabled] [Method 1]
Enables redirection of video and keyboard to serial port COM1.
Serial Video: Enabled, Disabled. Enables redirection of video and keyboard to
COM1.
Baud Rate: 9600, 19.2K, 38.4K, 57.6K, 115K. Selects baud rate for serial
console.
Post Video Mode: Text, Graphical. Selects which video mode to display during POST.
Secured Setup Configurations: Yes or No. Yes prevents the operating system from
overriding selections you have made in Setup.
Installed O/S: ` Other, Win95. Selects the operating system you use most often.
Reset Configuration Data: Yes or No. Yes erases all configuration data in a section of memory
for ESCD (Extended System Configuration Data) which stores the configuration settings for non-PnP plug in devices. Select Yes when required to restore the manufacturer’s defaults.
Large Disk Access Mode: DOS, Other. Select DOS if you have DOS. Select Other for another
operating system such as Unix.
Watchdog: Enabled, Disabled. Enables watchdog timer.
PCI IRQ Routing: Method 1, 2.
39
Advanced Chipset Control submenu
The Advanced Chipset Control submenu allows you to set the video and PS/2 mouse configurations.
Advanced Advance Chipset Control Item Specific Help
PhoenixBIOS Setup Utility
Memory speed:
Video Resolution: PS/2 Mouse: Multiple Monitor Support:
F1 Help ^v Select Item -/+ Change Values F9 Setup Defaults Esc Exit <> Select Menu Enter Select > Sub-Menu F10 Save and Exit
[Low]
[High] [Auto Detect] [Motherboard Disabled]
Memory speed: Low, Medium, High. Configures DRAM performance options. High
is a 100 MHz memory clock, Medium is an 80 MHz memory clock, and Low is a 66 MHz memory clock. Low is recommended for Industrial Temperature Range Applications
Video Resolution: Low, Medium, High, Super.
PS/2 Mouse: Disabled, Enabled, Auto Detect. Frees up IRQ12 if disabled.
Multiple Monitor Support: Motherboard Disabled, Motherboard Primary, Adapter Primary.
40
I/O Device Configuration submenu
The I/O Device Configuration submenu allows you to set the I/O configurations.
Advanced I/O Device Configuration Item Specific Help
PhoenixBIOS Setup Utility
Serial port A: Base I/O address: Interrupt: Serial port B: Base I/O address: Interrupt: Interface: Parallel port: Mode: Base I/O address: Interrupt: Local Bus IDE Adapter:
F1 Help ^v Select Item -/+ Change Values F9 Setup Defaults Esc Exit <> Select Menu Enter Select > Sub-Menu F10 Save and Exit
[Enabled] [3F8] [IRQ 4] [Enabled] [2F8] [IRQ 3] [RS232] [Enabled] [Bi-directional] [378] [IRQ 7] [Both]
Serial port A: Enabled, Disabled, Auto, OS controlled
Base I/O address: 3F8*, 2F8, 3E8, 2E8
Interrupt: IRQ3, IRQ4*
Serial port B: Same as Serial Port A.
Base I/O address: 3F8, 2F8*, 3E8, 2E8
Interrupt: IRQ3*, IRQ4
Interface: RS232*, RS422, RS485
Parallel port: Disabled, Enabled, Auto, OS controlled. Enabled allows user to set
configuration, while Auto uses the BIOS or OS configuration.
Mode: Output only, Bi-directional, EPP, ECP, Floppy. If Floppy is selected, you
must also enable Floppy Drive A in the Main menu. If ECP mode is selected another menu item appears for selection of DMA channel, with choices of DMA1 or DMA3.
Base I/O address: 378*, 278, 3BC
Interrupt: IRQ5, IRQ7*
Local Bus IDE Adapter: Disabled, Primary, Secondary, Both. Enables the integrated local
bus IDE adapter. Note: CompactFlash is on the Primary channel. The mutifunction IDE drive cable uses the Secondary channel.
*default
41
PCI Configuration submenu
The I/O Device Configuration submenu allows you to set the PCI configurations.
Advanced PCI Configuration Item Specific Help
PhoenixBIOS Setup Utility
>PCI/PNP ISA UMB Region Exclusion >PCI/PNP ISA IRQ Resource Exclusion >PCI/PNP ISA DMA Resource Exclusion ISA graphics device installed:
F1 Help ^v Select Item -/+ Change Values F9 Setup Defaults Esc Exit <> Select Menu Enter Select > Sub-Menu F10 Save and Exit
[No]
Reserve specific upper memory blocks for use by legacy ISA devices
PCI/PNP ISA UMB Region Exclusion See submenu
PCI/PNP ISA IRQ Resource Exclusion See submenu
PCI/PNP ISA DMA Resource Exclusion See submenu
ISA graphics device installed: Yes, No
PCI/PNP ISA UMB Region Exclusion submenu
The PCI/PNP ISA UMB Region Exclusion submenu reserves the specified block of upper memory for use by legacy ISA devices. Options are Available or Reserved.
Advanced PCI/PNP ISA UMB Region Exclusion Item Specific Help
C800 - CBFF: CC00 - CFFF: D000 - D3FF: D400 - D7FF: D800 - DBFF: DC00 - DFFF:
F1 Help ^v Select Item -/+ Change Values F9 Setup Defaults Esc Exit <> Select Menu Enter Select > Sub-Menu F10 Save and Exit
Available means the operating system is free to configure or use the
PhoenixBIOS Setup Utility
[Available] [Available] [Available] [Available] [Available] [Available]
Reserves the specified block of upper memory for use by legacy ISA devices
region for automatic assignment during start-up operations.
Reserved means the operating system cannot automatically use or assign the region. The region will be assigned later by the function or device attached.
If you experience problems with an auxiliary card, consult the manual for the card and use this screen to reserve the regions required by the card.
42
PCI/PNP ISA IRQ Resource Exclusion submenu
The PCI/PNP ISA IRQ Resource Exclusion submenu reserves the specified IRQ for use by legacy ISA devices. Options are Available or Reserved.
Advanced PCI/PNP ISA IRQ Resource Exclusion Item Specific Help
PhoenixBIOS Setup Utility
IRQ 3: IRQ 4: IRQ 5: IRQ 7: IRQ 9: IRQ 10: IRQ 11:
F1 Help ^v Select Item -/+ Change Values F9 Setup Defaults Esc Exit <> Select Menu Enter Select > Sub-Menu F10 Save and Exit
[Available] [Available] [Available] [Available] [Available] [Available] [Available]
Reserves the specified IRQ for use by legacy ISA devices
PCI/PNP ISA DMA Resource Exclusion submenu
The PCI/PNP ISA DMA Resource Exclusion submenu reserves the specified DMA channels for use by legacy ISA devices. Options are Available or Reserved.
Advanced PCI/PNP ISA DMA Resource Exclusion Item Specific Help
DMA 0: DMA 1: DMA 2: DMA 3: DMA 5: DMA 6: DMA 7:
F1 Help ^v Select Item -/+ Change Values F9 Setup Defaults Esc Exit <> Select Menu Enter Select > Sub-Menu F10 Save and Exit
PhoenixBIOS Setup Utility
[Available] [Available] [Available] [Available] [Available] [Available] [Available]
Reserves the specified DMA channel for use by non-Plug-and-Play ISA devices.
43
Boot menu
The Boot menu allows you set the order of drives for booting.
Advanced Boot Order Item Specific Help
PhoenixBIOS Setup Utility
+Removable Devices +Hard Drive CD-ROM Drive
F1 Help ^v Select Item -/+ Change Values F9 Setup Defaults Esc Exit <> Select Menu Enter Select > Sub-Menu F10 Save and Exit
Keys used to view or configure devices: <Enter> expands or collapses devices with a + or - <Ctrl+Enter> expands all ³ <Shift + 1> enables or disables a device. <+> and <-> moves the device up or down. <n> May move removable device between Hard Disk or Removable Disk <d> Remove a device that is not installed.
Expanded Boot screen
The expanded screen allows you set the order of drives for booting.
Advanced Boot Order Item Specific Help
-Removable Devices Legacy Floppy Drives
-Hard Drive Bootable Add-in Cards CD-ROM Drive
F1 Help ^v Select Item -/+ Change Values F9 Setup Defaults Esc Exit <> Select Menu Enter Select > Sub-Menu F10 Save and Exit
PhoenixBIOS Setup Utility
Same description as Boot menu.
44
Exit menu
The Exit menu allows you to save or discard changes made during Setup. Esc does not exit this menu, you must select one of the menu items and press Enter. You can also press F9 or F10 at any time to exit Setup. When using the serial console F9 and F10 are not available; you must press down/up arrow to get to the proper option then press enter.
Main Advanced Boot Exit
Item Specific Help
Exit Saving Changes Exit Discarding Changes Load Setup Defaults Discard Changes Save Changes
F1 Help ^v Select Item -/+ Change Values F9 Setup Defaults Esc Exit <> Select Menu Enter Select > Sub-Menu F10 Save and Exit
PhoenixBIOS Setup Utility
Exit System Setup and
save your changes to CMOS.
45
Chapter 4: Save and run programs
Save and run your programs on the 2060 CPU Card
Once you have written, tested and debugged your application, you can then save it to a device such as CompactFlash or hard drive. When you reboot the 2060 CPU Card, your program can automatically load and execute.
This chapter describes the following:
Saving an application program to hard disk or CompactFlash
Autoexecuting the program from the 2060 CPU Card
Overriding autoexecution of your program.
The examples in this chapter are for ROM–DOS – the procedures will vary for different operating systems. Some Microsoft programs make undocumented DOS calls. With ROM–DOS, an error returns when an undocumented DOS call is made, causing your program to operate erratically. We recommend using Microsoft’s MSDOS when using programs with undocumented DOS calls.
Saving programs and support files
A disk drive or CompactFlash must contain proper formatting. To format the CompactFlash or to add your own operating system, please refer to the Compact Flash, SDRAM, and battery backup chapter.
WARNING!
Reformatting the CompactFlash requires the use of a floppy, hard drive, or R/W CD-ROM to restore system files.
Adding your application
1. To add your application to your CompactFlash use the DOS COPY command
2. Add or remove any device drivers for your application. You may want to do the same for the CONFIG.SYS file on the CompactFlash. Remember to add these drivers to your drive as well.
3. To autoexecute your application, add your application name to the AUTOEXEC.BAT file.
46
Overriding the autoexecution of your application
You may stop the autoexecution of your application by doing one of the following options:
Option 1
1. Press F5 or F8 on your local keyboard. For more information, see your ROM– DOS manual. Note that this option does not work if you are using a terminal emulator (serial console).
Option 2
1. Press Ctrl–C when the system is first starting. This halts all batch files.
2. Change AUTOEXEC.BAT and/or CONFIG.SYS to not call out your program.
Option 3
1. Install a floppy.
st
2. Change Setup option “Boot Order” to “Boot 1
3. Change Setup to enable the floppy.
4. Boot from floppy.
5. Change AUTOEXEC.BAT on C:.
: Drive A:”.
Option 4
1. Remove CompactFlash from target system.
2. Install CompactFlash in host system CompactFlash adapter.
3. Edit Config.sys and/or Autoexec.bat.
4. Reinstall CompactFlash in target system.
47
Overview: Section 2 – Hardware
Section 2 discusses usage, functions, and system configurations of the 2060 CPU Card major hardware features. The following chapters are included:
Chapter 5: Serial ports
Chapter 6: LPT1 parallel port
Chapter 7: Console devices
Chapter 8: CompactFlash, SDRAM, and battery backup
Chapter 9: External drives
Chapter 10: Bit-programmable digital I/O
Chapter 11: CRTs and flat panels
Chapter 12: PC/104 expansion
Chapter 13: USB
48
Chapter 5: Serial ports
Description
The 2060 CPU Card has two serial ports, COM1 and COM2, which are accessed through the multipurpose connector, J2. These serial ports interface to a printer, terminal, or other serial device. Both ports support 5-, 6-, 7-, or 8-bit word lengths, 1, 1.5, or 2 stop bits, and baud rates up to 115.2K.
The serial ports have the following specifications:
16550 compatible
16-byte FIFO buffers
IEC 1000, level 3, ESD protection
— Contact discharge ±6 kV — Air–gap discharge ±8 kV
Backdrive protection
Up to 115.2k baud operation
Mating receptacle
Use a 2060 HDC-18-SBC-Multiport cable to connect the COM ports to external serial equipment. The two COM connectors of the 2060 HDC-18-SBC-Multiport cable are DB-9 female connectors that plug directly into a 9-pin PC serial cable. See
26 and 27 for information on the 2060 HDC-18-SBC-Multiport cable. Use a
pages 2060 RS–422/485 cable for connecting RS–422 and RS–485 devices, through the J7 connector.
Figure 5–1 (following page) shows two serial devices connected to the 2060 CPU Card. It also shows the schematic for connecting RS–422 and RS–485 devices. Note that you cannot use COM2 for RS–232 and RS–422/485 at the same time.
Serial port configurations
COM1 and COM2 are 8-wire RS–232 interfaces. COM2 can also be configured in BIOS Setup for 4-wire RS–422/RS–485 interfaces. RS–422 and RS–485 use the J7 connector. Some configurations of RS–422/RS–485 also require jumpers.
The COM ports are defined in table 5–1. Tables 5–2 and 5–3 show the COM pin­outs for the two COM ports as well as the pin-out for the RS–422/485 cable, and table 5–4 shows the jumper settings.
49
Figure 5–1 COM ports
2060
Table 5–1 Serial port configurations
RS–422/485 cable
HDC-18-SBC Multiport cable J2 connector, on front of board
COM2 COM1
Serial Device
Serial Device
RS–422 or RS–485
COM
Port
COM1
COM2
COM2
* = default
Address IRQ Interface BIOS
Setup for
COM2
3F8h*, 2F8h, 3E8h, 2E8h
3F8h, 2F8h*, 3E8h, 2E8h
3F8h, 2F8h*, 3E8h, 2E8h
IRQ4*, IRQ3
IRQ4, IRQ3*
IRQ4, IRQ3*
RS–232 – 8 wire
RS–232 – 8 wire
RS–422 – 4 wire
RS–485 – 4 wire
NA
RS232
RS422/485
Connector
(2060 HDC-18-SBC-
Multiport cable)
COM1
COM2
J7 – RS–422/ RS–485
50
Table 5–2 COM1 and COM2 connector pin-outs (J2 connector)
COM1 COM2
Pin# RS–232
signal
B1 B2 B3 B4 B5 B6 B7 B8 B9
DCD DSR RxD RTS TxD CTS DTR RI GND
Pin# RS–232
signal
B10 B11 B12 B13 B14 B15 B16 B17 B18
DCD DSR RxD RTS TxD CTS DTR RI GND
Table 5–3 J7 – COM2 connector pin-outs and pin-outs for 2060 RS–422/485 cable
J7 connector DB–9
connector
Pin # Signal Pin # Pin #
1 TXD+ 1
2 TXD– 6
nc 2
nc 7
nc 3
nc 8
4 RXD+ 4
5 RXD– 9
3 GND 5
Table 5–4 COM2 jumper: W2
W2 – COM2 jumper
COM Port
COM2
* Default. These jumpers terminate the network. If the 2060 CPU Card is not at an end of the network, leave these jumpers off . See Figure 5–2 for the pin numbering on jumper blocks W2 and W3.
Interface Jumper Settings
RS–422/RS–485 no termination
RS–422/RS–485 with termination
No jumpers on W2
W2[1–3], W2[2–4]*
51
Figure 5–2 W2 jumper pin locations
2060
W1
2 4
W2 1 3
2 4
W3 1 3
Setup menu for COM ports
The I/O Device Configuration submenu allows you to set the I/O configurations. You must enable COM2 and select the interface you are using. You must also set the jumpers for the interface (see table above).
Advanced I/O Device Configuration Item Specific Help
PhoenixBIOS Setup Utility
Serial port A: Serial port B: Interface: Parallel port: Mode: Base I/O address: Interrupt: DMA channel:
F1 Help ^v Select Item -/+ Change Values F9 Setup Defaults Esc Exit <> Select Menu Enter Select > Sub-Menu F10 Save and Exit
[3F8/IRQ4] [Disabled] [RS-232] [Enabled] [Bi-directional] [378] [IRQ 7] [DMA 1]
Function and use of serial ports
Mating receptacle
Use a 2060 HDC-18-SBC-Multiport cable to connect the COM ports to external serial equipment. The two COM connectors on the HDC-18-SBC-Multiport cable are DB–9 female connectors that plug directly into a 9-pin PC serial cable. See
26 and 27 for information on the 2060 HDC-18-SBC-Multiport cable. Use an
pages RS–422/485 cable for connecting RS–422 and RS–485 devices, through the J7 connector.
Note See pages
26 and 27, and Appendix A – Mating connectors for mating information.
52
COM1 as serial console device
You can use COM1 as a console device to communicate with another PC. For COM1 to be a serial console, the “V” video jumper W1[5–6] must be removed. See the Console devices chapter for more information.
Note When interfacing the 2060 CPU Card to your desktop PC, you must use a null
modem adapter.
COM ports as RS–232 I/O
COM1 and COM2 are 8-wire RS–232 interfaces. You can connect two serial I/O devices. COM1 is always configured as RS–232. COM2 must be enabled in BIOS Setup.
In the default configuration, the video jumper W1[5–6] is installed. This jumper automatically disables the Serial Video option in the Advance menu in Setup, and the COM1 port is available for serial I/O devices. In some instances, such as running a program on the 2060 CPU Card that will ultimately be used on another card without on-board video, you might want to remove the video jumper and still use COM1 as a COM port instead of a serial console. In this instance, you must go into Setup and set Serial Video in the Advanced menu to Disabled.
COM2 as RS–422 and RS–485 networks
COM2 can be used as RS–422 or RS–485. RS–422 and RS–485 use differential signaling to communicate between the devices on a network. Differential signal reduces the effect of environmental noise, allowing communication over distances up to 1200 meters.
The RS–422 and RS–485 receivers provide a marking condition for shorted, open, or inactive lines. Note that RTS is used differently by RS–422 and RS–485. Review the information in the following sections regarding RTS.
RS–422 is a point-to-point configuration. RS–485 is a multi-node configuration that allows up to 32 nodes on a network. COM2 can be configured in BIOS Setup as either RS–232, RS–422, or RS–485. Refer to table 5–4 on page
51 for jumper
settings for terminating an RS–422/485 network.
RS–422
RS–422 is typically a point to point configuration. RS–422 is also specified for multi-drop (party-line) applications where only one driver is connected to, and transmits on, a “bus” of up to 10 receivers. The device at the end of an RS–422 network must be terminated. The 2060 CPU Card optionally terminates with a 100 ohm resistor. Refer to Table 5–4. Figure 5–3 shows a typical RS–422 four-wire interface circuit.
The RTS signal must not be enabled by the software or the RS–422 transmitter will be disabled.
53
Figure 5–3 Typical RS–422 four-wire interface circuit
X
Ω
X
X
R
X
Ω
Ω
Xmitte
Xmitte
Receive
R
RO
R
X
TX +
mitter
RX
100 Ω
Receiver
TX –
RX +
RX
TX +
TX –
mitter
100
Receiver
100 Ω
100 Ω
RX
Gnd
RS–485
An application may implement a node as either the “host” node or as a “remote” node in an RS–485 network. There can be as many as 32 nodes without any bus repeaters in the network. A host is referred to as the node that initiates communication; while a remote is referred to as a node that is addressed by the host.
In any given communication sequence in an RS–485 network, there can only be one host. The host is responsible for initiating communication, maintaining network registration, and providing housekeeping tasks with other nodes. Remotes, however, cannot initiate a communication. They can only respond to messages that are addressed to them from the host.
The devices at each end of an RS–485 network must be terminated. Any node located between the end points should not be terminated. The 2060 CPU Card optionally terminates with a 100 ohm resistor. Refer to Table 5–4 on page Figures 5–4 and 5–5 show typical RS–485 networks.
RS–485 uses the RTS signal to control the transmitter. RTS must be set to “1” to receive characters, and set to “0” to transmit characters.
Figure 5–4 Typical RS–485 4–wire interface circuit
DE
DI
TX +
mitter
100
RE
RO
TX –
Receiver
100
X +
R
Receiver
DE
r
DE
r
Receiver
100
100 Ω
RX
51.
X
TX +
mitter
TX
E
r
DE
54
X
R
RO
X
X
X
R
RO
Figure 5–5 Typical RS–485 2–wire half duplex interface circuit
DI
TX +
mitter
TX –
Receiver
X –
100 Ω
mitter
Receiver
RO
RE
mitter
DI
100 Ω
Receiver
TX +
mitter
Receiver
X –
DE
120
55
Chapter 6: LPT1 parallel port
LPT1 parallel port
LPT1 is a multifunction parallel port, which is accessed through the multipurpose connector, J2. It supports the unidirectional standard mode, bi-directional mode, enhanced parallel port (EPP) mode, extended capabilities port (ECP) mode, as well as a floppy drive. The default I/O address for LPT1 is 378h, with the default interrupt is IRQ7. You can choose the addresses 278h or 3BCh, or interrupt IRQ5, in the 2060 CPU Card BIOS Setup utility.
If the LPT port is used for a floppy drive it cannot be used at the same time as a printer port.
Mating receptacle
Use the 2060 HDC-18-SBC-Multiport cable to connect the LPT port to external parallel equipment. The LPT connector is a DB–25 female connector which plugs directly into a 25-pin parallel cable. Table 6–1 shows the pinout for the LPT connector. Table A–12 on page
114 shows the pinout for the J2 connector.
Note See pages
26 and 27, and Appendix A – Mating connectors for mating information
on the multipurpose connector.
Table 6–1 LPT1 connector pinout (on the Multiport cable)
LPT1 connector
DB-25 Pin #
1 A1 STB* AFD* A2 14 2 A3 PD[0] ERR* A4 15 3 A5 PD[1] INIT* A6 16 4 A7 PD[2] SLIN* A8 17 5 A9 PD[3] Gnd A10 18 6 A11 PD[4] Gnd A12 19 7 A13 PD[5] Gnd A14 20 8 A15 PD[6] Gnd A16 21 9 A17 PD[7] Gnd A18 22 10 A19 ACK* Gnd A20 23 11 A21 BUSY Gnd A22 24 12 A23 PE Gnd A24 25 13 A25 SLCT*
* = active low
J2 Pin #
Pin Name
Pin Name
J2 Pin #
DB-25 Pin#
56
Printer
Installing a printer
1. Make sure that the LPT1 port is in standard or bi-directional mode. This is done in Setup.
2. Connect the 2060 HDC-18-SBC-Multiport cable to J2 on the 2060 CPU Card.
3. Connect the DB–25 of the 2060 HDC-18-SBC-Multiport cable to the printer cable.
Figure 6–1 LPT1 as a printer port
2060
HDC-18-SBC Multiport cable J2 connector, on front of board
LPT1 connector
57
Floppy disk drive on LPT1
The LPT1 parallel port can also be used as a floppy disk drive port. Octagon has a 2060 LPT-to-Floppy Adapter cable (part #6470) that plugs into the LPT connector on the 2060 HDC-18-SBC-Multiport cable, and provides a standard 34-pin connector on the other end. Table 6–2 shows the wiring diagram of the 2060 LPT­to-Floppy Adapter cable.
Note that only the LPT-to-Floppy cable part # 6470 can be used with this card, as the floppy pin out from the LPT port differs from other cards.
Table 6–2 2060 LPT-to-Floppy Adapter Cable
LPT1 as Floppy Disk Port
J2 Pin # LPT Pin # Floppy
Pin #
A1 1 NC STB* NC
A2 14 2 AFD* RWC2*
A3 2 8 PD0 IDX2*
A4 15 32 ERR* HEAD2* A5 3 26 PD1 TRK02*
A6 16 18 INIT* DIR2*
A7 4 28 PD2 WP2*
A8 17 20 SLIN* STEP2*
A9 5 30 PD3 RDD2*
A10 18 9 GND GND
A11 6 34 PD4 DCH2*
A12 19 11 GND GND
A13 7 NC PD5 NC
A14 20 13 GND GND
A15 8 NC PD6 NC
A16 21 15 GND GND A17 9 NC PD7 NC
A18 22 17 GND GND
A19 10 12 ACK DSB2*
A20 23 19 GND GND
A21 11 16 BUSY MOB2*
A22 24 21 GND GND
A23 12 22 PE WD2*
A24 25 23 GND GND
A25 13 24 SLCT WE2*
* active low
LPT Signal Name
Floppy Signal
Note: To use the LPT port as a floppy drive port, you must enter Setup, set the LPT mode to Floppy in the I/O Device Configuration menu, and enable Legacy Diskette A in the Main menu.
58
Chapter 7: Console devices
Description
The 2060 CPU Card has three options for console devices. You can use a monitor and a keyboard as your console. You can use COM1 as the console, or you can run the system without a console device.
Selecting console devices
The following represent the options on the 2060 CPU Card for console devices:
A standard VGA/SVGA monitor and a keyboard.
Serial console from COM1. A serial cable/null modem adapter plugged into a
host PC running HyperTerminal (or equivalent) provides both input and output. The local keyboard also allows input but is not required.
No console device means no video output, either from a monitor or the serial
console. A local keyboard allows input but is not required.
Monitor and keyboard console
To use a monitor and keyboard as the console, you will need the following equipment (or equivalent):
2060 CPU Card
2060 HDC-18-SBC-Multiport cable, #6387
2 mm VGA-12 video cable, #6392
PS/2 style keyboard
VGA monitor
To connect a monitor and keyboard:
1. Refer to Figure 2–1 on page jumpers before installing the 2060 CPU Card.
2. Make sure that the “V” video jumper, W1[5–6], is installed.
3. Connect the VGA–12 video cable into J5.
4. Connect the 2060 HDC-18-SBC-Multiport cable into J2.
5. Connect a VGA monitor to the VGA–12 cable, and a PS/2 style keyboard to the HDC-18-SBC-Multiport cable.
20 for the location of various connectors and
59
Figure 7–1 Monitor and keyboard as console
VGA Monitor
PS/2 Keyboard
2060 HDC-Multiport Cable, connector J2 on top of board
2060
2 mm VGA-12 cable
Serial console
COM1 is used as the console device if the serial console is enabled.
To use COM1 as the console, you will need the following equipment (or equivalent):
2060 CPU Card
2060 HDC-18-SBC-Multiport cable, #6387
Null modem adapter, #2470 (9-pin to 9-pin)
Host computer running HyperTerminal (or equivalent)
Serial cable to connect 2060 COM1 to host computer serial port
PS/2 style keyboard (optional)
Refer to Figure 2–1 on page before installing the 2060 CPU Card.
1. Remove the “V” video jumper, W1[5–6].
2. Connect the 2060 HDC-18-SBC-Multiport cable into J2.
3. Connect the null modem adapter to COM1 of the HDC-18-SBC-Multiport cable.
4. Connect the serial cable between the null modem adapter and the serial port of the host computer.
20 for the location of various connectors and jumpers
Follow these steps to use the serial console:
60
5. For communication using HyperTerminal (or equivalent), the following settings must be used:
Connect using:
Baud rate:
Communications parameters:
Flow control:
Terminal support:
ANSI terminal option– Wrap lines that exceed terminal width:
Direct to COM1, COM2, COM3, or COM4
(select the port the serial cable is connected to)
38400
no parity, 8 data bits, 1 stop bit
none
ANSI
Yes (uncheck box)
6. Start HyperTerminal. You are now ready to establish communications between the host PC and the 2060 CPU Card.
7. Power on the 2060 CPU Card. Console data will be redirected to COM1 and will be displayed on the host computer.
8. If you do not get the proper logon message check the HyperTerminal serial parameters of the host PC to make sure they match the settings in step 5. You might also try removing the “S” jumper to force the 2060 card to the system defaults, which includes 38400 baud rate.
61
Figure 7–2 The 2060 CPU Card and a serial console
2060
COM1 on HDC-18 cable
Null Modem Adapter
Serial cable to PC COM port
HyperTerm
or other
terminal emulator
HDC-18-SBC Multiport cable J2 connector, on front of board
COM port
Desktop PC
62
Chapter 8: CompactFlash, SDRAM, and battery backup
Description
The 2060 CPU Card is shipped with a 512 KB SMT flash. It is soldered directly onto the PCB board. This flash contains the BIOS.
The memory socket can accept up to 256 MB capacity SO-DIMM modules.
The HDC-18-Multiport cable has a connector for an AT battery to back-up the real time clock.
CompactFlash
The CompactFlash socket supports 3.3 V devices. The CompactFlash appears to the system as an IDE device. It is automatically detected and configured as a hard drive during bootup. To configure the 2060 CPU Card to boot from a CompactFlash, refer to the following section “Creating a Bootable CompactFlash.”
The CompactFlash socket is connected to the Primary IDE channel. This channel is configured for a Master device only. Therefore, if a CompactFlash device is installed, it will show up as a Master on the Primary IDE channel. Any additional IDE devices will show up as Secondary IDE devices.
Note Octagon Systems only recommends Industrial Grade CompactFlash (NAND
technology) that implements ECC error code correction, and wear level technology.
Creating a bootable CompactFlash
A CompactFlash as shipped from the factory may or may not be formatted; even if formatted, it may or may not be bootable. The following sequence shows how to create a bootable CompactFlash, and how to configure the 2060 CPU Card to boot from the CompactFlash.
CAUTION
You must use an external drive such as a hard drive, floppy, or CD to sys the CompactFlash.
1. Create a bootable external device.
Note Octagon offers OS Embedders that include a CD boot disk for a variety of operating
systems. Contact your Octagon representative for additional information.
2. Change the boot sequence in BIOS Setup so the 2060 CPU Card boots from the external drive first. Reboot from the external device.
3. Use FDISK to create partitions on the CompactFlash. Refer to your operating system manual for the appropriate parameters for using FDISK. You might also have to refresh the MBR (Master Boot Record).
4. Reboot, using the external device.
63
5. Format the CompactFlash.
6. Copy your operating system from the external device to the CompactFlash.
7. Change the boot sequence in Setup so that the CompactFlash (hard drive) is first. Remove the external device and power off the 2060 CPU Card.
8. Reboot.
SDRAM
The memory socket can accept up to 256 MB capacity SO-DIMM modules using PC100 or PC133 memory sticks. Note that if the Memory Speed in BIOS Setup is set to High, you must use PC133 memory sticks.
Battery backup for real time calendar clock
An AT battery can be installed to back up the CMOS real time clock. The battery can be installed on the 2060 HDC-18-SBC-Multiport cable.
Installing an AT battery
1. Power off the 2060 CPU Card.
2. Install the 3.6V AT clock battery on the 2060 HDC-18-SBC-Multiport cable.
Table 8–1 Battery Connector
J3 – battery connector
Pin # Pin Name
1 Battery+ 2 Key 3 nc 4 Battery–
Note See Appendix A: Mating connectors for mating information on the battery
connector.
64
Chapter 9: External drives
Description
The 2060 CPU Card is compatible with any standard floppy drive, and any standard IDE hard drive that has a 16–bit IDE interface. This includes CD-ROMs, CompactFlashes, and other IDE-compatible drives. The BIOS supports all IDE devices so no additional software is needed.
UltraDMA modes are not supported directly by the 2060. These modes require an 80-pin connector, and there is no adapter available for the IDE connector used on the 2060.
Note The BIOS supports three IDE devices (which includes a CompactFlash) and two
floppy drives; however, the LPT connector will only support one floppy drive.
65
Figure 9–1 2060 CPU Card with floppy/IDE device
2060 HDC-Multiport Cable, connector J2 on top of board
VGA Monitor
PS/2 Keyboard
Power Supply
CD-ROM to IDE connector on HDD/FP cable, J500 on back of board
2060
2 mm VGA-12 cable
66
Hard drive to IDE connector on HDD/FP cable, J500 on back of board
Floppy drive to LPT port on HDC-18­Multiport cable, using LPT-to-floppy
Floppy disk controller
The 2060 CPU Card supports a 3.5 in. or 5.25 in. floppy drive via the LPT connector on the HDC-18-Multiport cable and the connector at J2. Refer to page for the pinout of the LPT port and the LPT-to-floppy adapter cable. Note that only the LPT-to-Floppy cable part # 6470 can be used with this card, as the floppy pin out from the LPT port differs from other cards.
Note See Appendix A – Mating connectors for mating information on the floppy disk
connector.
Power requirements
You must supply power to the floppy drive through an external source. Refer to your floppy drive manual for specific instructions.
Installing a floppy disk drive
1. Power on the 2060 CPU Card. Enter Setup to set up the BIOS. You can execute this program by pressing “F2” during system bootup. Configure the LPT port for “Floppy.” The system steps you through the configuration. Also, refer to the Setup programs chapter for more information on the BIOS Setup program.
2. Disconnect power to the 2060 CPU Card.
63
3. Connect the HDC-18-Multiport cable to J2 on the 2060 CPU Card (see page for location of J2.
4. Connect the LPT-to-floppy adapter cable (P/N 6470) to the LPT port on the HDC-18-Multiport cable.
5. Insert the 34-pin connector on the LPT-to-floppy cable into the rear of the floppy drive. Make sure pin 1 on the cable is connected to pin 1 on the drive.
6. Connect power to the floppy drive.
Hard disk controller
The 2060 CPU Card supports three 16–bit IDE devices. Since the CompactFlash is connected to the Primary IDE channel with a dedicated IDE controller, additional IDE devices connected through J500 will show up in Setup as Secondary IDE devices (master and slave).
Standard IDE devices such as hard drives and CD-ROM drives are interfaced via 40-pin connectors on the HDC-18-HDD/FP cable installed at J500.
UltraDMA modes are not supported directly by the 2060. These modes require an 80-pin connector, and there is no adapter available for the IDE connector used on the 2060.
20
67
IDE combinations:
2 hard drives
1 hard drive and 1 CD-ROM drive
CompactFlash and either of the above combinations
Note Power is NOT supplied to the IDE device through the HDC-18-HDD/FP cable.
Master/slave designation for IDE devices
IDE devices have a jumper or a switch that designates whether the device is a master or a slave device. If only one device is connected to a port, it must be configured as a master. If two devices are connected, one must be configured as a master and one as a slave. The 2060 does not use the CS signal (Cable Select) to designate master or slave on a multi-connector cable. You can use BIOS Setup to designate either the master or the slave as a boot device.
Installing a hard drive
1. Disconnect power to the 2060 CPU Card.
2. Connect the HDC-18-HDD/FP cable to J500 on the 2060 CPU Card (see page for location of J500, and see page cable).
3. Insert the 40-pin connector on the HDC-18-HDD/FP cable into the interface connector of the hard drive. Make sure pin 1 on the cable is connected to pin 1 on the drive.
4. If you are connecting two IDE devices, ensure that one of them is configured as a master and one is configured as a slave (see previous section). If connecting one IDE device, ensure that it is configured as a master. The BIOS will not be able to detect an IDE device that is configured as a slave unless a master device is also installed.
5. Connect power to the hard drive.
6. Execute the BIOS Setup program to configure your system for a hard drive. You can execute this program by pressing “F2” during system bootup. The system steps you through the configuration. Also, refer to the Setup programs chapter for more information on the BIOS Setup program.
7. If you want to boot the system from the hard drive, you need to format the drive accordingly, and change the boot order in Setup.
25 for an illustration of the HDC-18-HDD/FP
20
68
Chapter 10: Bit-programmable digital I/O
Description
The bit-programmable digital I/O lines can be used to sense switch closures, turn on lamps and LEDs, and interface with other devices that have TTL input or output such as printers and scales. The digital I/O drives the Octagon MPB series opto-isolation module racks directly, controlling AC and DC loads to 240V at 3A. Figure 10–1 shows typical I/O configurations. The digital I/O ports have the following specifications:
The digital I/O chip has 24 I/O lines, grouped into 3 ports of 8 bits
Each bit is programmable as either 5V input or 5V output
Read back state of each pin
Easy-to-program
Each line can sink and source 15 mA
Note Ports A and B are on the J2 connector, and accessed through the 2060 HDC-18-
Multiport cable. Port C is on connector J6, and accessed through the 2060 Digital I/O cable, part #6394.
Table 10–1 J2 – Digital I/O connector
J2/20-pin Connector J6 – Additional I/O
Pin # Port A Pin # Port B Pin # Port C
B35/17* Bit 0 B27/9 Bit 0 1 Bit 0 B34/16 Bit 1 B26/8 Bit 1 2 +5V B33/15 Bit 2 B25/7 Bit 2 3 Bit 1 B32/14 Bit 3 B24/6 Bit 3 4 Bit 2 B31/13 Bit 4 B23/5 Bit 4 5 Bit 3 B30/12 Bit 5 B22/4 Bit 5 6 Bit 4 B29/11 Bit 6 B21/3 Bit 6 7 Bit 5 B28/10 Bit 7 B20/2 Bit 7 8 Gnd B36/18 +5V B19/1 Gnd 9 Bit 6 nc/19 nc/20 10 Bit 7
*These pin numbers refer to both the J2 connector on the 2060 board (B35 for this entry) and the 20-pin connector on the HDC-Multiport cable (pin
17).
Note See the Accessories appendix for connector information for the digital I/O
connector.
69
Figure 10–1 Typical digital I/O configuration
2060
CMA-20 Ribbon Cable
STB-20
Digital I/O cable
STB-10
Interfacing to switches and other devices
The STB-20 terminal board provides a convenient way of interfacing switches or other digital I/O devices to the digital I/O port. I/O lines can be connected to an STB-20 with a CMA-20 cable. Parallel I/O devices are then connected to the screw terminals on the STB-20. The illustration above shows an STB-20 terminal board connected to the I/O. Refer to the STB-20 product sheet for more information.
Table 10–2 STB-20 interface
Terminal # Port A Terminal # Port B
17 Bit 0 9 Bit 0 16 Bit 1 8 Bit 1 15 Bit 2 7 Bit 2 14 Bit 3 6 Bit 3 13 Bit 4 5 Bit 4 12 Bit 5 4 Bit 5 11 Bit 6 3 Bit 6 10 Bit 7 2 Bit 7 18 +5V 1 Gnd nc/19 nc/20
70
STB-20 Interface
Organization of banks
The digital bank has a total of 24 I/O lines. The lines are configured into three groups: ports A, B and C, each group consisting of 8 bits. Any of the lines at ports A, B or C can be configured individually as inputs or outputs.
Ports A and B are connected to a 20-pin header on the HDC-Multiport cable. Port C is connected to a 10-pin header at J6. The Digital I/O Cable (part #6394) connects to J6.
Figure 10–2 Organization of banks
B a s e
B a s e + 1
A
B
8
8
I/O
connectors
or
or
20-pin connector on Multiport cable
a s e + 2
B
C
8
a s e + 3
B
Control Register
Port addressing
Ports A, B, C and the control register are addressable. The base I/O address is fixed at 120h. Digital I/O always uses [base through base +3]. Ports A, B, C and the control register are addressable, with reference to the base address.
Table 10–3 Digital I/O port address
Port I/O Address
A B C Control
Register
Base address (120h) Base address + 1 (121h) Base address + 2 (122h) Base address + 3 (123h)
or
10-pin connector at J6
71
I/O lines pulled low
The I/O lines at ports A, B, and C are always pulled low. This allows a known state upon powerup. Note that 10K ohm resistor networks are used to configure the I/O lines as low.
Configuring and programming the I/O ports
The I/O chip has three ports with eight parallel I/O lines (bits) per port. All lines can be individually programmed as all inputs, all outputs or individually as inputs or outputs. You can alter which bits are inputs or outputs by writing a control command to the control register. When a line is configured as an output, it can sink a maximum of 15 mA at 0.4V or can source 15 mA at 2.4V. On powerup and software or hardware reset, all digital I/O lines are reset as inputs.
Programming the I/O
Follow these steps to program the I/O chip:
1. Configure the I/O port bit directions, either as inputs or outputs.
2. Write to port A, B, or C with the desired level or read the bit level from the desired port.
Configuring the I/O
Follow these steps to configure the I/O chip.
Note In the following examples, “base” for I/O always refers to the starting address
selected in Setup (120h default).
1. Write a “2” to the control register (base address + 3). This places the I/O chip in “direction” mode: (base address = 120h)
OUT 123h, 2 (control register, direction mode)
2. Set the direction of each bit. A “0” written to the corresponding line indicates an input and a “1” bit indicates an output. Each bit corresponds to the equivalent I/O line.
Table 10–4 Digital I/O port byte
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Port I/O
Line
X 7 X 6
X 5
X 4
X 3
X 2
X 1
X 0
72
For example, writing 00011100 to port C (base address + 2) will configure port C I/O lines 0, 1, 5, 6, and 7 to be inputs and lines 2, 3, and 4 to be outputs:
OUT 122h, 1Ch (00011100 binary = 1C hexadecimal)
3. Write a “1” to the control register (base register + 3). This places the I/O chip into “preset” mode:
OUT 123h, 1 (control register, preset mode)
4. Write a bit pattern to appear at the outputs of the desired I/O port when the I/O chip is put in “operation” mode; all input bits are unaffected.
5. Write a “3” to the control register (base register + 3). This places the I/O chip back into “operation” mode:
OUT 123h, 3 (control register, operation mode)
Writing and reading from I/O
Writing to or reading from the desired I/O port is accomplished with single program statements:
1. To write a bit pattern to the desired I/O port:
OUT 122h, FFh
All output bits of port C go high; all input bits are unaffected.
2. To read a bit pattern from the desired I/O port:
PORTC = INP(122h)
The byte read from port C is assigned to variable PORTC.
I/O output program examples
To configure ports A, B, and C as all outputs, issue the commands:
OUT 123h, 2 ‘Direction’ Mode
OUT 120h, FFh ‘PortA’
OUT 121h, FFh ‘PortB’
OUT 122h, FFh ‘PortC’
OUT 123h, 3 ‘Operation’ Mode
Ports A, B, and C will now output all “1”s after issuing the following commands:
OUT 120h, FFh (portA)
OUT 121h, FFh (portB)
OUT 122h, FFh (portC)
or all “0”s after:
OUT 120h, 0 (portA)
73
OUT 121h, 0 (portB)
OUT 122h, 0 (portC)
I/O input program examples
To configure ports A and C as inputs and port B as outputs, issue the following commands:
OUT 123h, 2 ‘Direction Mode’
OUT 120h, 0
OUT 121h, FF
OUT 122h, 0
OUT 123h, 3 ‘Operation Mode’
To read ports A and C, issue the following commands:
PORTA = INP(120h) (port A)
PORTC = INP(122h) (port C)
Enhanced INT 17h function definitions
This section provides definitions for the following functions using the INT17 handler, I17HNDLR.EXE: Initialize I/O, Write I/O, and Read I/O.
I17HNDLR.EXE is a TSR program and is called out by the 2060 CPU Card BIOS. By default, when the “X” jumper is on, the INT17 extended BIOS is operational. If the “X” jumper is removed and DOS is the operating system, the I17HNDLR.EXE TSR can be used. Once executed, the TSR is active, but it must be executed each time the system is rebooted. Copy the I17HNDLR.EXE utility to your boot device and add it to your AUTOEXEC.BAT.
Note The INT17 functions can only be used with DOS operating systems. If you use a
different operating system, the INT17 functionality can still be used by your application but must be integrated into your software.
Initialize I/O
Function: efh
Subfunction: 00h
Purpose: To set the directions and to program the initial values of an I/O port.
Calling registers: Ah efh
AL 00h
DI Port A configuration
Initial Data Direction Mask
xxxxxxxx xxxxxxxxB
direction: 1=output, 0=input
BX Port B configuration
Initial Data Direction Mask
xxxxxxxx xxxxxxxxB
74
direction: 1=output, 0=input 0->input
CX Port C configuration
Initial Data Direction Mask
xxxxxxxx xxxxxxxxB
direction: 1=output, 0=input
DX ffffh
Return registers: Carry flag cleared if successful
Carry flag set if error
AL Error code
Comments: This function is used to initialize the I/O before normal use.
Programming example:
/* Inline assembly code for Borland C++ 3.1 */
asm {
mov ax,0ef00h
mov di,00ffh /*port A all outputs, init data=all 0’s */
mov bx,55ffh /*port B all outputs, init data=55h*/
mov cx,0000h /*port C all inputs*
mov dx,0ffffh
int 17h
}
Write I/O
Function: efh
Subfunction: 01h
Purpose: To write a value to an I/O port.
Calling registers: AH efh
AL 01h
DI Port A mask and data
Mask Data
xxxxxxxx xxxxxxxxB
Mask: 1=bit to be changed
BX Port B mask and data
Mask Data
xxxxxxxx xxxxxxxxB
Mask: 1=bit to be changed
CX Port C mask and data
Mask Data
xxxxxxxx xxxxxxxxB
Mask: 1=bit to be changed
DX ffffh
Return registers: Carry flag cleared if successful
Carry flag set if error
AL Error code
Comments: This function is used to initialize the I/O.
Programming example:
/* Inline assembly code for Borland C++ 3.1 */
asm {
mov ax,0ef01h
75
mov di,00ffh /*port A: no change */
mov bx,8000h /*port B: bit 7 set to 0*/ mov cx,0202h /*port C: bit 1 set to 1*/
mov dx,0ffffh
int 17h
}
Read I/O
Function: efh
Subfunction: 02h
Purpose: To read from an I/O port.
Calling registers: AH efh
AL 02h
DX ffffh
Return registers: AL Port A data
Ah Port B data
BL Port C data
Carry flag cleared if successful
Carry flag set if error
AL Error code
Comments: This function is used to read from the I/O.
Programming example:
/* Inline assembly code for Borland C++ 3.1 */
asm {
mov ax,0efoch
mov dx,0ffffh
int 17h
mov aData,al
mov bData,ah
mov cData,bl }
76
Chapter 11: CRTs and flat panels
Description
The video system on the 2060 CPU Card is implemented with the CS5530A companion chip. It supports CRTs and TFT flat panel displays. Displays from VGA through XVGA are supported; CGA monitors are not supported. Since the video circuitry operates on the PCI bus at the full PCI bus speed, programs like Windows execute very rapidly. The 2060 CPU Card supports 3V flat panel displays through the connector. 5V panels must be powered from an alternate source.
Standard VGA monitors with analog inputs are connected using a 2 mm VGA–12 cable (p/n 6392) connected to J5. Flat panel displays are connected using a 34-pin .100 connector on the 2060 HDD/FP cable.
Note EL panels, and quarter VGA panels are not supported.
Video features
Below is a list of standard video features installed on the 2060 CPU Card:
CRT support with resolutions to 1280 x 1024 x 16 bpp at 60 Hz
Flat panel support with the following resolutions:
640 x 480 x 24 bpp 800 x 600 x 24 bpp 1024 x 768 x 16 bpp
Support for plasma and TFT flat panel displays
3V flat panel support (5V requires alternate power source) Flat panel power sequencing
Connecting a monitor
To use a monitor or a flat panel, the Video jumper (W1[5–6]) must be installed. This is the default configuration. The 10-pin connector at J5 supports an analog VGA/SVGA/XVGA CRT color or monochrome monitor; CGA monitors are not supported. The 2 mm VGA–12 cable connects to J5 and provides an industry­standard mating connector for a CRT. Refer to figure 11–1 for a diagram of connecting a CRT, and table 11–1 for the pinout for J5.
The 2060 CPU Card supports both an analog monitor and/or a flat panel display. The CT.COM and FP.COM programs allow you to toggle between the monitor and the flat panel. If the flat panel supports simultaneous mode, the SM.COM program will allow you to display images from both the monitor and the flat panel at the same time. These programs are in the Utilities zip file along with other diagnostic and configuration utilities (see page
117). Refer to the README file.
77
To connect a monitor you will need the following equipment (or equivalent):
2060 CPU Card
2 mm VGA–12 cable, p/n 6392
VGA/SVGA monitor
To connect a monitor:
1. Ensure that the Video jumper (W1[5–6]) is installed.
2. Plug the VGA–12 adapter cable into J5 on the 2060.
3. Plug the DB-15 end of the VGA–12 cable into the VGA cable of the monitor.
Refer to Figure 11–1.
Figure 11–1 The 2060 CPU Card and a VGA monitor
VGA Monitor
2060
Table 11–1 J5 – CRT connector
J5, CRT Connector
Pin # Pin Name Pin Name Pin #
1 RD GR 2
3 BL GND 4
5 +5V GND 6
7 HSYNCOUT DDC SDA 8
9 DDC SCL VSYNCOUT 10
2 mm VGA–12 cable
78
Connecting a flat panel display
Due to the varied selection of available flat panels, the 2060 CPU Card is factory configured and programmed for a VGA/SVGA/XVGA CRT monitor. If you are using a flat panel, you must reprogram the video BIOS with the appropriate flat panel driver. To reprogram your video BIOS refer to Programming the video BIOS in this chapter. Note that 3V flat panels are supported through the connector, while 5V panels require an alternate power source.
The Utilities zip file (see page
117) contains text files for each of the supported flat panels. These text files include wiring diagrams specific to individual flat panels. Refer to the specific text file associated with your flat panel to build an interface cable, and to determine the correct settings for the flat panel jumpers. Flat panel displays are connected using a 34-pin .100 connector on the HDD/FP cable.
Table 11–2 shows the pinout for the connector for flat panels.
Flat panels requiring bias voltage
Some flat panels require a bias voltage. To determine if your flat panel requires bias voltage, refer to the text file in the Utility zip file which is specific to your flat panel or refer to your flat panel information. If your flat panel requires a bias voltage, refer to the manufacturer’s documentation for procedures on supplying the proper bias voltage.
WARNING!
Since improper voltage levels can severely damage the flat panel, make sure the bias voltage is correct before the flat panel is connected to the 2060 CPU Card.
Connecting the flat panel to the 2060 CPU Card
The text files in the Utilities zip file include wiring diagrams specific to individual flat panels. Refer to the specific text file associated with your flat panel to build your cable. The maximum recommended cable length is 18 inches. Table 11–2 shows the pinout for the flat panel connector on the HDD/FP cable.
1. Ensure that the Video jumper (W1[5–6]) is installed.
2. Refer to the text file associated with your flat panel to determine the supply
voltage for your panel, and whether a bias voltage is required.
3. Connect a cable from the flat panel to the flat panel connector located on the
HDD/FP cable. Refer to Figure 11–2.
Improper wiring or connection from the flat panel to the 2060 CPU Card can damage the 2060 CPU Card and the flat panel. Verify the flat panel cable connections before connecting the cable to the 2060 CPU Card and applying power to the system.
Note See Appendix A – Connectors for mating information.
Warning
79
Figure 11–2 The 2060 CPU Card and a flat panel display
2060
HDD/FP cable, connected to J500 on back of board
Table 11–2 Flat panel connector on the HDD/FP cable
J1, Flat panel connector
Pin # Pin Name Pin Name Pin #
1 FPCLK FPDATA[3] 2
3 FPDATA[12] FPDATA[0] 4
5 FPDATA[13] FPDATA[1] 6
7 FPDATA[14] FPDATA[2] 8
9 SCL +3.3V 10
11 SDA FPDATA[15] 12
13 FPDATA[4] FPDATA[16] 14
15 FPDATA[5] FPDATA[17] 16
17 FPDATA[6] FPDATA[7] 18
19 FPDISPEN +3.3V 20
21 FPDATA[8] FPDATA[9] 22
23 GND FPVSYNC 24
25 GND FPDATA[10] 26
27 FPDATA[11] GND 28
29 FPHSYNC GND 30
31 +3.3V GND 32
33 +3.3V GND 34
Flat Panel Display
80
Programming the video BIOS
The 2060 CPU Card BIOS is factory configured and programmed for a 640 x 480 CRT monitor. If you wish to use a flat panel, you must reprogram the video BIOS with the appropriate flat panel driver. To reprogram your video BIOS, load the appropriate driver from the Utilities zip file.
Note Refer to the README file for a list of the supported flat panel displays. If your
particular display is not currently listed, contact Octagon Technical Support (303– 426–4521) for assistance.
To load a new BIOS to support a different flat panel:
1. Attach a CRT monitor, a PS/2 compatible keyboard, and a floppy drive to the
2060 CPU Card.
Note If a monitor and keyboard are not available, connect the 2060 CPU Card to your PC
by using a remote serial console. Refer to the Serial Console section in the Console devices chapter.
2. Power on the 2060 CPU Card.
3. Select the correct .DAT file. Example: LQ12S31.DAT
4. Run PGMVIDEO. Example:
2060 C:\> PGMVIDEO \2060\BIOS\LQ12S31.DAT
5. Power off the 2060 CPU Card.
6. Install the flat panel cable into the HDD/FP connector and then apply power to
the system.
Additional notes on video BIOS
The video BIOS is stored in EEPROM. If this BIOS should become corrupted, you will have to reprogram it. To do so, remove the Video jumper W1[5–6] and the “S” jumper W1[1–2]. Connect a serial console to COM1 to establish communication with the 2060. Repeat the procedure above to program the video BIOS.
81
Chapter 12: PC/104 expansion
Description
The PC/104 connector allows you to interface expansion modules such as A/D converters, CardBus, digital I/O, serial ports, etc. Modules can be stacked to form a highly integrated control system.
Note The actual maximum number of modules in a stack is limited primarily to the
capacitive loading on the bus and the electrical noise environment. This is especially true when wide temperature operation is required. Good design practice dictates that the modules present only one load to each bus signal. Unfortunately, there are modules on the market that violate this practice by loading the bus more heavily. Typically, it is the IOW*, IOR*, MEMW*, and RSTDRV* lines. For example, if the IOW* line is routed to four ICs on the module without a buffer, then the loading is equivalent to four PC/104 modules. Stacks with three or more expansion modules should be carefully tested under all environmental conditions. If possible, query the manufacture of the expansion module regarding loading. All Octagon products present one load.
Figure 12–1 Typical PC/104 module stack
Standoff
PC/104 Connectors
2060 CPU Card
WARNING!
When installing any PC/104 module, avoid excessively flexing the 2060 CPU Card card. Mate pins correctly and use the required mounting hardware.
Note See Appendix A - Connectors for mating information.
PC/104
Standoff
82
Chapter 13: USB
Description
Universal Serial Bus (USB) is a hardware interface for low-speed peripherals such as the keyboard, mouse, joystick, scanner, printer, and telephony devices. USB 1.1 has a maximum transfer rate of 12 Mbits/sec, and up to 127 devices can be attached. Peripherals can be plugged in and unplugged while power is applied to the system. The 2060 CPU Card contains two 1.1 compliant USB ports.
The two USB ports are accessed via standard USB connectors on the HDC-18­Multiport Cable (USB1) and the HDD/FP cable (USB2). Any USB device can plug into either USB interface, or into a multi-port hub that then plugs into either USB port.
An operating system capable of utilizing the USB ports and USB devices is required for USB operation.
USB devices are hot-swappable when a device is plugged into a standard USB connector, as pins on the connectors determine the order in which they make contact. Devices are not hot-swappable when connected to a non-standard header. You can hot swap a device through the USB connector on the 2060 Multiport cable, or through another USB connector wired to the 80-pin header, but you cannot hot swap at the 80-pin header itself.
Caution
83
Overview: Section 3 – System management
Section 3 provides information on managing the 2060 CPU Card in the areas of internal control and troubleshooting. The following chapters are included:
Chapter 14: Watchdog timer and hardware reset
Chapter 15: Serial EEPROM
Chapter 16: CPU clock, system jumpers, user jumper, and BIOS recovery
Chapter 17: Troubleshooting
84
Chapter 14: Watchdog timer and hardware reset
Description
The watchdog timer is a fail-safe against program crashes or processor lockups. It has a programmable timeout period, ranging from 2.0 milliseconds to 2 minutes (see next section). The watchdog timer can be enabled or disabled in Setup. INT17 software calls, a built–in function on the 2060 CPU Card, can also be used to enable and set the timeout, extend the timeout, strobe, and disable the watchdog timer from your application. If the timer expires, it performs a hardware reset.
Timeout period (ranges)
Although the timeout periods are listed as 2.0 milliseconds to 2 minutes, the actual timeouts are ranges of ±50% of the listed values. Therefore, for a selected timeout period of 2 minutes, the timeout could expire in as little as one minute or as long as three minutes. To ensure that the watchdog does not reset the system accidentally, always strobe the watchdog at a rate of at least twice the selected timeout period.
Booting, power down, and strobing the watchdog timer
When the watchdog is enabled in Setup, it sets the timeout period for two minutes. The BIOS will strobe the watchdog during the boot process and once more just before booting is finished. The user’s application must then begin strobing. The watchdog will continue until it is disabled or power down occurs.
If the watchdog is enabled in Setup and your operating system cannot load up before the timer expires, your system could reset. Also, if you do not disable the watchdog and your strobing application ends before power down you could again reset. If these watchdog situations should occur, remove the “S” jumper W1[1−2] and reboot. This causes the 2060 to boot using Setup defaults (watchdog disabled). Enter Setup, then change and save the watchdog settings in Setup.
85
Watchdog function definitions using enhanced INT 17h handler
This section provides definitions for the watchdog functions using the INT17 handler (I17HNDLR.EXE). I17HNDLR.EXE is a TSR program. It is called out by the 2060 CPU Card BIOS. Once executed it is active, but it must be executed each time the system is rebooted. If you use a different BIOS the INT17 functions can still be used by your application. Copy the utility to your hard drive and add it to your AUTOEXEC.BAT.
The INT17 handler is designed for DOS based applications. If you use a different operating system and the watchdog functions are required for your application, source code is available in the Examples directory of the Utilities zip file to access the watchdog. OS Development Kits are available from Octagon for Linux, QNX, and Windows CE.net that have watchdog drivers for these operating systems. Contact Octagon Systems for more information.
Enable watchdog
Function: fdh
Subfunction: 01h
Purpose: To enable the watchdog.
Calling registers: AH fdh
AL 01h BX timeout (0=2 ms, 1=20 ms, 2=60 ms, 3=200 ms, 4=2 s, 5=20 s, 6=120 s, 7=na)
DX ffffh
Return registers: None
Comments: This function enables the watchdog. Once
the watchdog is enabled, it has to be strobed at least twice per timeout period specified or until the watchdog is disabled. Otherwise, a system reset will occur.
Programming example:
/* Inline assembly code for Borland C++ 3.1 */
/* set watchdog to two second timeout */ asm { mov ax,0fd01h
mov bx,4
mov dx,0ffffh
int 17h }
86
Strobe watchdog
Function: fdh
Subfunction: 02h
Purpose: To strobe the watchdog.
Calling registers: AH fdh
AL 02h
DX ffffh
Return registers: None
Comments: This function strobes the watchdog. Once the
watchdog is enabled, it has to be strobed at least twice per timeout period or until the watchdog is disabled. Otherwise, a system reset will occur.
Programming example:
/* Inline assembly code for Borland C++ 3.1 */ asm { mov ax,0fd02h mov dx,0ffffh int 17h }
Disable watchdog
Function: fdh
Subfunction: 03h
Purpose: To disable the watchdog.
Calling registers: AH fdh
AL 03h
DX ffffh
Return registers: None
Comments: This function disables the watchdog. Once the
Programming example:
/* Inline assembly code for Borland C++ 3.1 */ asm { mov ax,0fd03h mov dx,0ffffh int 17h }
watchdog is enabled, it has to be strobed at least twice per timeout period or until the watchdog is disabled. Otherwise, a system reset will occur.
87
Hardware reset
The HDC-18-Multiport cable has a reset switch which allows you to reset the system without turning off the power. This provides a more complete reset than the <CTRL><ALT><DEL> method. By depressing this button (connecting the two lines), the circuit is pulled to ground and resets the system.
The RESET command accomplishes the same thing as the reset button. Refer to the component diagram in the Quick start chapter for the location of the reset button.
WARNING!
When using COM1 as the console, the <CTRL><ALT> <DEL> commands on the host system keyboard only reset the host system. Use the RESET command to issue a hardware reset on the 2060 CPU Card.
88
Chapter 15: Serial EEPROM
Description
Up to 1024 words of user-definable data can be saved in the serial EEPROM. The serial EEPROM does not require battery backup to maintain the data when the system power is off. The serial EEPROM is easily accessible via software interrupts by most programming languages.
Enhanced INT 17h function definitions
The serial EEPROM definitions include the following functions: Read a single word from serial EEPROM, Write a single word to serial EEPROM, Read multiple words from serial EEPROM, Write multiple words to serial EEPROM, and Return serial EEPROM size.
Serial EEPROM
Read a single word from the serial EEPROM
Function: fch
Subfunction: 00h
Purpose: To read a single word from the on–board serial
EEPROM.
Calling registers: AH fch
AL 00h
BX Word address (zero based)
DX ffffh (User area relative address)
Return registers: Carry flag cleared if successful
AX Word read
Carry flag set if error
AL Error code
Error code Meaning
ffh Unknown error
01h Function not implemented
02h Defective serial EEPROM
03h Illegal access
Comments: This function reads a word from the user area of
the serial EEPROM.
Programming example:
/* Read word 2*/ unsigned int seeData; /* Inline assembly code for Borland C++ 3.1*/ asm {
mov ax,0fc00h
mov bx,02h /* Read word 2*/ mov dx,0ffffh int 17h mov seeData,ax/* store data in c environment */
89
}
Write a single word to the serial EEPROM
Function: fch
Subfunction: 01h
Purpose: To write a single word to the on–board serial
EEPROM.
Calling registers: AH fch
AL 01h
BX Word address (zero based)
CX Data word to write
DX ffffh (User area relative address)
Return registers: Carry flag cleared if successful
Carry flag set if error
AL Error code
Error code Meaning
ffh Unknown error
01h Function not implemented
02h Defective serial EEPROM
03h Illegal access
Comments: This function writes a word to the user area of
the serial EEPROM.
Programming example:
/* Write 0x1234 to word 3*/ unsigned int seeData = 0x1234; /* Inline assembly code for Borland C++ 3.1*/ asm { mov ax,0fc01h mov bx,03h /* Write word 3*/ mov cx,seeData/* Get write data from c environment */ mov dx,0ffffh int 17h }
Read multiple words from the serial EEPROM
Function: fch
Subfunction: 02h
Purpose: To read multiple words from the on–board serial
Calling registers: AH fch
AL 02h
BX Word address (zero based)
CX Word count
DX ffffh
ES:DI Destination pointer
Return registers: Carry flag cleared if successful
AX Word read
Carry flag set if error
AL Error code
Error Code Meaning
ffh Unknown error
01h Function not implemented
90
EEPROM.
02h Defective serial EEPROM
03h Illegal access
Comments: This function reads multiple words from the user
area of the serial EEPROM.
Programming example:
/* Read 10 words starting at word 5*/ unsigned int far*seeDataPtr = new unsigned int[10]; /* Allocate storage / / Inline assembly code for Borland C++ 3.1*/ asm { mov ax,0fc02h mov bx,05h /* Read starts at word 5*/ mov cx,10 /* Read 10 words */ mov dx,0ffffh les di,seeDataPtr int 17h }
Write multiple words to the serial EEPROM
Function: fch
Subfunction: 03h
Purpose: To write multiple words to the on–board serial EEPROM.
Calling registers: AH fch
AL 03h
BX Word address (zero based)
CX Word count
DX ffffh
DS:SI Source pointer
Return registers: Carry flag cleared if successful
Carry flag set if error
AL Error code
Error Code Meaning
ffh Unknown error
01h Function not implemented
02h Defective serial EEPROM
03h Illegal access
Comments: This function writes multiple words to the user area of the serial EEPROM.
Programming example:
/* Write 8 words starting at word 6*/ unsigned int far*seeDataPtr = new unsigned int[8]; /* Allocate storage / unsigned int far tmpPtr = seeDataPtr; for(int I=0;I<8;I++) seeDataPtr = I; / initialize data / / Inline assembly code for Borland C++ 3.1*/ asm { push ds mov ax,0fc03h mov bx,06h /* Write starts at word 6*/ mov cx,8 /* Write 8 words */ mov dx,0ffffh lds si,seeDataPtr int 17h
91
pop ds }
Return serial EEPROM size
Function: fch
Subfunction: 04h
Purpose: To obtain the size of the on–board serial EEPROM.
Calling registers: AH fch
AL 04h
DX ffffh
Return registers: Carry flag cleared if successful
AX Size of the serial EEPROM (in words)
BX Size available to user (in words)
Carry flag set if error
AL Error code
Error code Meaning
ffh Unknown error
01h Function not implemented
02h Defective serial EEPROM
03h Illegal access
Comments: This function returns the size (in words) of the
serial EEPROM. Since the user cannot access all of the serial EEPROM, this function determines how much space is available to the user. This avoids the user from accessing unavailable addresses.
Programming example:
unsigned int seeUserSize; /* Inline assembly code for Borland C++ 3.1*/ asm { mov ax,0fc04h mov dx,0ffffh int 17h mov seeUserSize,bx }
92
Chapter 16: CPU clock, system jumpers, user jumper, and BIOS
recovery
CPU clock
The system clock speed for the CPU is 33.3 MHz. Jumper block W3 sets the multiplier. Table 161 shows the jumper settings for W3.
Table 16
1 CPU clock speed: W3
W3 CPU Clock Speed
Clock Speed Jumpers
233 MHz
300 MHz
*default (see figure 16−1)
W3[24]
W3[12]*
Figure 16
1 W3 jumper pin locations
W1
2 4
W2 1 3
2060
2 4
W3 1 3
System jumpers
Various system function options are selected with jumper block W1.
The “S” jumper selects whether the card boots from user defined parameters (defined in the Setup Programs chapter), or the BIOS defaults. Removing this jumper allows the user to return to factory programmed defaults.
The “X” enables or disables the BIOS extension area. The default is enabled, which uses the INT17 calls.
The “V” jumper enables or disables the on-card video, allowing an external video card, or the serial console to be used.
The “U” jumper is user defined and can be used for program control.
The “R” jumper, when removed, allows the BIOS to be reinstalled from a remote system over a serial console connection.
93
Table 16−2 System configuration jumper: W1
W1 – System Configuration
Label Description W4
S System parameters option jumper: [1–2]*
Installed = enable User Setup options* Removed = enable BIOS Setup default
X BIOS extension enable [3–4]*
Installed = enable extended BIOS* required to use INT17 calls Removed = disables extended BIOS
V Video jumper:
Installed = enable on-card video* Removed = disable on-card video
U User jumper [7–8]*
R Bios recovery jumper:
Installed = normal BIOS operation* Removed = allows new BIOS to be
installed
* = default
System jumper
The system jumper is W1[1–2]. When this jumper is present the system boots using the parameters stored in Setup. When this jumper is removed the system boots using the factory defaults for all parameters in Setup. Note that if you must remove the system jumper to recover your system, the user-defined parameters in Setup will not be changed unless you enter Setup, make the changes, and exit saving changes.
[5–6]*
[9–10]*
Extended BIOS jumper
The extended BIOS jumper is W1[3–4]. The extended BIOS memory region (D8000h to DFFFFh) contains the Octagon INT17 functions. When this jumper is removed, this memory region is freed up for other uses. Note that if you want to use the INT17 functions, you must either leave the jumper installed or copy those functions elsewhere.
You can also modify the extended BIOS using the MAKEBIOS.BAT file, located in the 2060 Utilities zip file (see page
117). Type MAKEBIOS ? for a list of available
options.
Video jumper
The video jumper is W1[5–6]. When this jumper is installed the on-card video is enabled. To use a serial console, or an extension-card video (such as a PC/104), remove this jumper.
User jumper
The user jumper is W1[7–8] and is associated with bit 3 of the register address A10h. The INT17 functions provide an easy method to implement software routines
94
according to whether or not a jumper has been installed. Refer to the INT17 calls to read user jumper on page
96.
BIOS recovery jumper
The BIOS recovery jumper on the 2060 is W1[9–10]. This jumper allows you to reinstall the BIOS from a floppy disk using a serial link from COM1 of the 2060 to COM1 of a host computer. When the BIOS recovery jumper is removed, the system will use the boot block recovery process to program a new BIOS.
The BIOS recovery process uses the embflash.exe utility. This utility can be obtained from Octagon Technical Support. To use the BIOS recovery jumper the following steps must be taken:
1. Copy the EMBFLASH.EXE, PLATFORM.BIN, CLIENT.BIN, and BIOS.ROM
files to the root directory of a bootable floppy disk.
2. Remove power from the 2060.
3. Remove the W1[9–10] BIOS jumper.
4. Using a 2060 CPU Card HDC-18-SBC-Multiport cable and a null modem
adapter connect COM1 on the 2060 to COM1 on the Host computer. It does not matter what OS is on the HOST computer as long as a DOS session can be started.
5. Put the bootable floppy disk from step 1 with the embflash.exe and support
files in drive A of the host computer, and reboot the host computer from the floppy drive.
6. Power up the 2060. If you have a post card, you can place it on the 2060
PC/104 or PC/104 Plus bus and the system will boot to a post A1, or you can allow about 5 seconds for the system to boot to the boot block recovery state.
7. On the host computer type embflash<enter>. The host computer will display a
status screen that shows the progress of the BIOS programming.
8. When the status screen indicates the process is complete power down the 2060
and replace the W1[9–10] jumper. The new BIOS will now be used when the 2060 is re-started.
BIOS programming using PHLASH.EXE
The BIOS on the 2060 can be reprogrammed using the PHLASH.EXE utility. This utility is in the Utilities zip file (see page following steps must be taken:
1. Copy PHLASH.EXE, PLATFORM.BIN, and BIOS.ROM to the root of a
bootable DOS floppy disk.
2. Boot the 2060 from the DOS floppy disk with a CRT monitor or flat panel
connected to the system. Note that HIMEM.SYS cannot be used in CONFIG.SYS.
117). To program the new BIOS the
3. At the DOS prompt for the “A” drive type phlash <enter>.
95
The utility will display a progress screen and tell you when the process is done. You may need to push the reset button or cycle the power on the system to boot from the updated BIOS.
INT17 calls to read user jumper
The user jumper is W1[7–8]. The INT17 functions provide an easy method to implement software routines according to whether or not a jumper is installed.
Function: 0fbh
Sub-Function: 0bh
Purpose: To read user jumper
Calling Registers: AH 0fbh
AL 0bh
DX 0ffffh
Return Registers: Carry flag cleared if successful
AL Jumper data
bit 0 user jumper A. 1=on, 0=off
Carry flag set if error
AL Error code
Comments: This function shall be used to read the user
jumper
Programming example:
/* Inline assembly code for Borland C++ 3.1 */
unsigned char aData;
asm {
MOV AX, 0fb0bh
MOV DX, 0ffffh
INT 17h
MOV aData, AL
}
if (aData & 1)
printf(“U1 jumper is ON\n”);
96
Chapter 17: Troubleshooting
If your system is not working properly, check the following items.
Boot Block Recovery
The 2060 CPU Card supports boot block recovery. This feature allows the user to reprogram the system BIOS over COM1 using an HDC-18-SBC-Multiport cable, a null modem adapter, a floppy disk, and a host computer. This option should only be necessary if a BIOS has been programmed into the 2060 CPU Card and is either corrupted or non-bootable. For more information covering the boot block recovery process read the Boot block recovery section in chapter 16 and call Octagon Systems Technical Support.
Memory conflicts using operating system other than DOS
If you are using an operating system other than DOS the X jumper should be removed. The X jumper maps the INT17 extended BIOS into the 0xD8000­0xDFFFF memory. This can cause problems with applications or hardware running on other operating systems if they attempt to use this memory range. Removing the X jumper frees this memory for use by other operating systems.
No system LED activity
If there is no LED activity at CR2, check the following:
Make sure all PC/104 expansion cards are removed from the 2060 CPU Card.
This ensures that other cards are not interacting with the 2060 CPU Card.
Remove the jumper from the “S” position at W1[1–2].
Check all power connections to the 2060 CPU Card card.
Measure the supply voltage at the J7 power connector and verify that the
voltage at the 2060 CPU Card card is +5V (+/–0.25V).
Make sure your power module provides +5V (+/–0.25V) and at least 2.5A of
current.
No CRT or flat panel video
If the LEDs appear to be functioning properly, but there is no video activity, check the following:
Make sure all PC/104 expansion cards are removed from the 2060 CPU Card.
This ensures that other cards are not interacting with the 2060 CPU Card.
Remove the jumper from the “S” position at W1[1–2].
If using a CRT monitor, check the cable and connections going from the J5
connector to the monitor.
97
If using a flat panel display, check the following:
Cable and connections going from the HDD/FP cable to the flat panel display. Check the power and cables going to the flat panel display. Make sure that the power module has enough current capacity to power both the 2060 CPU Card card and the flat panel.
If a flat panel BIOS has been programmed into the 2060 CPU Card that is
incorrect for the flat panel being used and an analog monitor is not present or is not displaying the video data correctly, the system can be booted via the serial console by doing the following:
1. Remove the “S” and the “V” jumper.
2. Connect the COM port of a host computer running HyperTerminal or some other terminal software to COM1 on the 2060 CPU Card using an HDC-18­SBC-Multiport and a null modem adapter. The serial port settings on the host computer should be 38.4K baud, 8, N, and none.
3. Power up the 2060 CPU Card, it will boot using the serial console interface. Once the system has successfully booted you can use the pgmvideo.exe utility to either program the desired flat panel VIDEO BIOS into the 2060 CPU Card or program in the CRT.DAT file for analog monitor support to recover the system.
4. Replace the “S” and “V” jumpers and re-boot the system.
Video is present but is distorted
If video is present but is distorted, check the following:
Make sure all PC/104 expansion cards are removed from the 2060 CPU Card.
This ensures that other cards are not interacting with the 2060 CPU Card.
Remove the jumper from the “S” position at W1[1–2].
If using a CRT monitor, check the cable and connections going from the J5
connector to the monitor.
If using a flat panel display, check the following:
1. Cable and connections going from the HDD/FP cable to the flat panel display
2. Signal cable going to the flat panel display. If the cable length is too long, the distortion may be caused by noise. 18” or less is the recommended length. Cable shielding may be required.
3. Power cable going to the flat panel display.
4. Power module for the flat panel. Make sure that the power module has enough current capacity to power both the 2060 CPU Card and the flat panel.
98
No serial console activity
If the serial console does not appear to be functioning correctly, check the following:
Make sure all PC/104 expansion cards are removed from the 2060 CPU Card.
This ensures that other cards are not interacting with the 2060 CPU Card.
Remove the jumper from the “S” position at W1[1–2].
Make sure the COM1 connector on the 2060 CPU Card HDC-18-SBC-
MULTIPORT cable is used.
Make sure a null modem adapter is installed between COM1 of the HDC-18-
SBC-MULTIPORT cable and the serial port of your PC.
Make sure that your terminal emulator (such as HyperTerminal) on your PC is
set up properly. Refer to the Console devices chapter. Refer to the HyperTerminal manual for information on setting up communication parameters.
After verifying the above conditions, you can monitor voltage levels by
connecting an oscilloscope between the TxD* line on COM1 and ground. After power-up, you should see a burst of activity on the oscilloscope screen. The voltage level should switch between +/–8V.
Garbled serial console screen activity
If you do get activity on your console screen but the message is garbled, check the following:
Remove the jumper from the “S” position at W1[1–2] to ensure the default
settings for COM1.
Make sure that your terminal emulator (such as HyperTerminal) on your PC is
set up properly. Refer to the Console devices chapter. Refer to the HyperTerminal manual for information on setting up communication parameters.
System generates a BIOS message but locks up when booting
Remove the jumper from the “S” position at W1[1–2] and reboot.
Verify that all the necessary boot files exist on the boot device. Copy any
missing files to the boot device.
If no files are missing, overwrite any files which may have become corrupted.
In addition, you may want to format the boot device.
System will not boot from CompactFlash
Many CompactFlash devices as shipped from the factory are not bootable devices. Refer to the CompactFlash, SDRAM, and battery backup chapter to make your CompactFlash bootable.
99
System locks up on power-up; may or may not respond to reset switch
A common cause is using a non-Octagon power supply such as a PC desktop supply. Most of these PC supplies are rated at 5V at 20A or more. Switching supplies usually requires a 20% load to operate properly, that is, 4A or more. Since a typical Octagon system takes less than 2A, the supply does not regulate properly. Output drift up to 6–7V and/or 7–8 voltage spikes have been reported. If the power supply comes up slowly (that is, longer than 10 ms), the sequencing of ICs on the board may be out of sync, thus, causing the system to lock up.
Octagon supplies are designed to ramp up fast, discharge fast on power-down and to regulate properly under a no load condition.
System locks up after power-down/power-up
If the power supply does not drain below 0.7V, the CMOS components on the card will act like diodes and forward bias. This is typically caused by using power supplies that have large output capacitors. Either use a different power supply that discharges faster, leave the power off until the supply has adequate time to discharge or place a 100 ohm, large wattage resistor across the output capacitor.
Octagon supplies are designed to ramp up fast, discharge fast on power-down and to regulate properly under a no load condition.
LED signaling of “beep” codes
The 2060 CPU Card has a bicolor LED that is used by the BIOS to indicate the BIOS processing state.
Immediately after the 2060 CPU Card powers on, the amber LED is on and the green LED is off. Once the card boots, the CR5 amber LED turns off and the green LED is on.
If the BIOS finds an error during the power on self test (POST) the amber LED is flashed in a pattern indicating the POST code failure. The visual beep codes are defined in Table 17–1.
Count the number of flashes in each of four sets. Subtract one from each set, the resulting number matches the POST error found in the Table 17–1.
For example:
Flash–Flash pause
Flash–Flash–Flash–Flash pause
Flash–Flash–Flash–Flash–Flash pause
Flash–Flash–Flash–Flash
Is counted as 2–4–5–4. After subtracting one from each set the result is 1–3–4–3. This is a failure of the first 64K of base RAM.
100
Loading...