OPERATIONS MANUAL EBC-BX WinSystems reserves the right to make changes in the circuitry and specifications at any time without notice. Copyright 2003 by WinSystems. All Rights Reserved.
REVISION HISTORY P/N 403-0307-000 ECO Number Date Code ORIGINATED 03-57 030124 030923 Rev Level B C
TABLE OF CONTENTS Section Number Paragraph Title 1 General Information 1.1 1.2 1.3 Features General Description Specifications 2 EBC-BX Technical Reference 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 2.10 2.11 2.12 2.13 2.14 2.15 2.16 2.17 2.18 2.19 2.20 2.21 2.22 2.23 2.24 2.25 2.
3.10 3.11 3.12 3.13 3.14 3.15 3.16 PC Health Status Frequency/Voltage Control Load BIOS Defaults Set Supervisor Password Set User Password Save & Exit Setup Exit without Saving 3-25 3-25 3-26 3-27 3-27 3-27 3-27 4 EBC-BX DiskOnChip Configuration 4.1 4.2 DiskOnChip Usage DOC Initialization 5 WS16C48 Programming Reference 5.1 5.2 5.
1 General Information 1.1 Features n n n n n n n n n n n n n n n n 1.
1.3 Specifications 1.3.1 Electrical Bus Interface : PC/104 8-Bit or 16-Bit expansion bus PC/104-Plus 32-bit expansion bus System Clock : FSB 100MHz Interrupts : TTL Level input VCC : +5V +/- 5% at 2.75A typical with an Intel 400Mhz Celeron processor with 32MB SDRAM +5V +/-5% at 3.4A typical with an Intel Pentium III processor at 700 Mhz with 32MB SDRAM VCC1 : +12V +/-5% (Not required. PC/104 Expansion, Flat Panel, use only) VCC2 : -12V +/-5% (Not required.
1.3.
2 EBC-BX Technical Reference 2.1 Introduction This sec tion of the man ual is in tended to pro vide suf fi cient in for ma tion re gard ing the configuration and usage of the EBC-BX board. WinSystems maintains a Technical Support group to help answer questions regarding configuration, usage, or programming of the board. For answers to questions not adequately addressed in this manual, contact Technical Support at (817) 274-7553 between 8AM and 5PM Central Time. 2.
WinSystems - "The Embedded Systems Authority" treme force. The module is inserted until the retaining clips snap into place. Removal is the reverse process. Push down on the retaining clips, moving them outward. The DIMM module, once released, will be forced up to an appropriate removal position. 2.4 Interrupt Routing All in ter rupts on the EBC- BX are routed to their re spec tive PC/104 bus pins. On board non- PnP peripherals, are routed to their typical usage interrupts using the jumper block at J19.
WinSystems - "The Embedded Systems Authority" 2.5 Power/Reset Connections Power is applied to the EBC-BX via the connector at J3 (Molex part number 26-60-7091). The pin definitions for J3 are given below. An optional push-button-reset (Normally Open) may also be routed into J3 if desired. Momentary closure to ground forces a hardware reset. J3 +5V GND GND +12V +3.3V GND +5V -12V PB Reset o1 o2 o3 o4 o5 o6 o7 o8 o9 Note : The 3.3 Volt input pin does not provide power to any devices on the board.
WinSystems - "The Embedded Systems Authority" 2.7 Real Time Clock/Calendar The EBC-BX contains an onboard Clock/Calendar within the Victory-66 chip. This clock is fully compatible with the MC146818A used in the original PC-AT computers. This clock has a number of features including periodic and alarm interrupt capabilities. In addition to the time and date keeping func tions, the sys tem con figu ra tion is kept within the CMOS RAM con tained in the clock sec tion.
WinSystems - "The Embedded Systems Authority" 2.9 Serial Interface U9 U4 U5 1o 2o 3o 3 2 1 o o o J15 J17 U10 U6 U7 1o 2o 3o 3 2 1 o o o J16 J18 The EBC-BX provides four 16550 compatible RS-232 serial ports at the following addresses : COM1 COM2 COM3 COM4 3F8H 2F8H 3E8H* 2E8H* at IRQ 4 at IRQ 3 at IRQ 5** at IRQ 9** (PnP Device) (PnP Device) *COM ports 3 and 4 can be enabled or disabled individually via the jumper block at J24. When J24 pins 1-2 are jumpered, COM3 is enabled.
WinSystems - "The Embedded Systems Authority" The two primary serial ports, COM1 and COM2 are configurable for RS-422, RS-485 or J1708, with the ad di tion of op tional driver ICs (Win Sys tems P/N CK-75176-2). The con figu ra tion op tions for each of the supported modes are shown on the following pages. Connection to COM1 and COM2 is made through the Multi-I/O connector at J2. An adapter cable (P/N CBL- 247-1) is avail able from WinSystems to adapt to standard DB9 connectors.
WinSystems - "The Embedded Systems Authority" COM3/COM4 - RS-232 COM3 and COM4 are RS-232 only and are terminated at J4. An adapter cable is available from WinSystems (P/N CBL-173-1), which adapts J4 to two stan dard DB9M con nec tors. The pin defi ni tions for J4 are shown here : J4 COM3 DCD COM3 RX COM3 TX COM3 DTR GND COM4 DCD COM4 RX COM4 TX COM4 DTR GND 2.9.
WinSystems - "The Embedded Systems Authority" COM1 - RS-422 COM1 DB9 J15 J17 123 ooo 321 ooo U4 - Not Installed U9 - Installed U5 - Installed N/C TX+ TXN/C GND 1 2 3 4 5 oo6 oo7 oo 8 oo 9 o RX+ RXN/C N/C RS-422 NOTE : When used in RS-422 mode, the transmitter must be enabled by setting the RTS bit in the Modem Control Register (Bit1). VCC R116 RX+ R114 RXR112 * Im por tant Note: All se rial ter mi na tion com po nents are sur face mount 0805 pack ages on the bot tom side of the board.
2.9.2 RS-485 Mode Configuration The RS-485 Multi- drop in ter face is sup ported on both chan nels with the in stal la tion of the op tional “Chip Kit”, WinSystems’ part number CK-75176-2. A single kit is sufficient to configure both channels for RS-485. RS-485 is a 2-wire multi-drop interface where only one station at a time talks (transmits) while all oth ers lis ten (re ceive). RS- 485 usu ally re quires the twisted pair be ter mi nated at each end of the run.
WinSystems - "The Embedded Systems Authority" COM2 - RS-485 COM2 DB9 J16 J18 123 ooo 321 ooo VCC R103 TX/RX+ R105 TX/RXR104 U6 - Not Installed U10 - Installed U7 - Not Installed N/C TX/RX+ TX/RXN/C GND 1oo6 2oo7 3oo8 4oo9 5o N/C N/C N/C N/C RS-485 NOTE : Because RS-485 uses a single twisted-pair, all transmitters are connected in parallel. Only one station at a time may transmit or have its transmitter enabled.
WinSystems - "The Embedded Systems Authority" COM1 - J1708 COM1 DB9 J15 321 ooo J17 U4 - Not Installed U9 - Installed U5 - Not Installed 123 ooo 1oo6 2oo7 3oo 8 4oo 9 5o N/C TX/RX+ TX/RXN/C GND N/C N/C N/C N/C VCC R106 4.7K R111 47 OHM TX/RX+ C104 .0022 ufd R109 Absent C103 .0022 ufd TX/RX- R108 4.7K R110 47 OHM Important Note : All serial termination components are surface mount 0805 packages on the bottom of the board. These should only be installed by surface mount qualified individuals.
WinSystems - "The Embedded Systems Authority" 2.10 Parallel Printer Port The EBC-BX supports a fully bi-directional parallel printer port capable of EPP and ECP operations. The PnP par al lel port is mapped by de fault at 378H and is ter mi nated at the Multi-I/O connectors at J3. Other I/O and in ter rupt map ping are avail able us ing the Award BIOS setup menu op tions.
WinSystems - "The Embedded Systems Authority" GND RESET +5V IRQ9 -5V DRQ2 -12V 0WS +12V GND MEMW MEMR IOW IOR DACK3 DRQ3 DACK1 DRQ1 REFRESH SYSCLK IRQ7 IRQ6 IRQ5 IRQ4 IRQ3 DACK2 TC BALE +5V OSC GND GND 2.
WinSystems - "The Embedded Systems Authority" J22 Pin A B C D 1 GND/5.0 KEY Reserved +5 AD00 2 VI/O AD02 AD01 +5V 3 AD05 GND AD04 AD03 4 C/BE0* AD07 GND AD06 5 GND AD09 AD08 GND 6 AD11 VI/O AD10 M66EN 7 AD14 AD13 GND AD06 8 +3.3V C/BE1* AD15 +3.3V 9 SERR* GND SB0* PAR 10 GND PERR* +3.3V SDONE 11 STOP* +3.3V LOCK* GND 12 +3.3V TRDY* GND DEVSEL* 13 FRAME* GND IRDY* +3.3V 14 GND AD16 +3.3.V C/BE3* 15 AD18 +3.
WinSystems - "The Embedded Systems Authority" J10 GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND 2.
WinSystems - "The Embedded Systems Authority" 2.16 Watchdog Timer Configuration Watchdog Timer configuration jumper J21 J21 1o 2o The EBC-BX board features a power-on voltage detect, and power-down/power brownout reset circuit to protect memory and I/O from faulty CPU operation during periods of illegal voltage levels. This supervisor circuitry also features a watchdog timer which can be used to guard against software lock ups. An in ter nal timer with a pe ri od of 1.
WinSystems - "The Embedded Systems Authority" 2.19 DiskOnChip Configuration The DiskOnChip can be enabled by jumpering J12 and J13 as shown below. J12 2 1 o o J12 DOC Enable Jumper J13 DOC Window Select BIOS Write Enable J13 3 o o 4 1 o o 2 Note : J13 pins 1-2 control BIOS write, and must be jumpered at all times for proper Plug-N-Play operation.
WinSystems - "The Embedded Systems Authority" J6 2 1 o o J6 Parallel I/O Enable J14 Parallel I/O +5V Supply Enable J14 2 1 o o 2.20 Parallel I/O The EBC- BX util izes the Win Sys tems WS16C48 ASIC high- density I/O chip mapped at a base address of 120H. The first 24 lines are capable of fully latched event sensing with sense polarity being software programmable. Two, 50-pin connectors allow for easy mating with industry standard I/O racks. The pinout for the two connectors are shown on the next page.
WinSystems - "The Embedded Systems Authority" J7 Port 2 Bit 7 Port 2 Bit 6 Port 2 Bit 5 Port 2 Bit 4 Port 2 Bit 3 Port 2 Bit 2 Port 2 Bit 1 Port 2 Bit 0 Port 1 Bit 7 Port 1 Bit 6 Port 1 Bit 5 Port 1 Bit 4 Port 1 Bit 3 Port 1 Bit 2 Port 1 Bit 1 Port 1 Bit 0 Port 0 Bit 7 Port 0 Bit 6 Port 0 Bit 5 Port 0 Bit 4 Port 0 Bit 3 Port 0 Bit 2 Port 0 Bit 1 Port 0 Bit 0 +5V 2.20.
WinSystems - "The Embedded Systems Authority" Register Details Port 0-5 I/O - Each I/O bit in each of the 6 ports can be individually programmed for input or output. Writing a '0' to a bit position causes the corresponding output pin to go to a High-Impedance state (pulled high by ex ter nal 10K ohm re sis tors). This al lows it to be used as an in put. When used in the in put mode, a read reflects the inverted state of the I/O pin, such that a high on the pin will read as a '0' in the register.
WinSystems - "The Embedded Systems Authority" 2.21 VGA Configuration The EBC-BX uses a fourth generation CRT/Flat panel Super VGA controller. It supports standard VGA output as well as a variety of Flat Panel Displays using optional Flat Panel Adapter (FPA) kits. The video on the EBC- BX uses the Asil iant 69000 se ries VGA con trol lers. The Asili ant con trol ler supports stan dard and super- VGA as well as Color and Mono chrome pan els with 8, 9, 12, 15, 16, 18,24 and 36-bit interfaces.
WinSystems - "The Embedded Systems Authority" 2.21.2 Panel Backlight Connection Panel Backlight connection is made via the connector at J25. The pinout for J25 is shown here for reference. J25 +12 +12 GND GND ENBKL VCC VCC 2.21.3 o1 o2 o3 o4 o5 o6 o7 Flat Panel Output Connection Con nec tion to all flat pan els is made via the two 50- pin con nec tors at J31 and J32.
WinSystems - "The Embedded Systems Authority" 2.21.4 Video Mode Table The EBC-BX video section supports a number of standard and extended VGA modes. The following table extracted from the Asiliant 69000 databook shows the video modes supported. Resolution 2.
WinSystems - "The Embedded Systems Authority" J34 3o 2o 1o Cooling fan connections J31 and J34 J31 3 2 1 o o o J31 and J34 GND 1 o FAN POWER 2 o FAN TACH 3 o 2.23 Fan Power Connector The EBC-BX has a connector located at J31 to supply power to the processor cooling fan. The pin definitions are shown here for reference. There is also a connector at J34 for use with an auxiliary system cooling fan.
WinSystems - "The Embedded Systems Authority" 2.24 Multi I/O Connector The I/O to the primary se rial chan nels, the printer port, and key board are all ter mi nated via the connector at J2. An adapter cable, part number CBL-247-1, is available from WinSystems to adapt to the conventional I/O connectors.
WinSystems - "The Embedded Systems Authority" 2.
3 Award BIOS Configuration 3.1 General Information The EBC- BX comes equipped with a stan dard Award BIOS with Setup in ROM that al lows us ers to modify the basic system configuration. This type of information is stored in battery-backed CMOS RAM so that it retains Setup information when power is turned off. 3.2 Entering Setup To en ter setup, power on the com puter and press the DEL key im me di ate ly af ter the mes sage “ Press DEL to Enter Setup” appears on the lower left of the screen.
WinSystems - "The Embedded Systems Authority" Phoenix - AwardBIOS CMOS Setup Utility. Standard CMOS Features Advanced BIOS FEATURES Advanced Chipset Features Integrated Peripherals Power Management Setup PnP/PCI Configuration PC Health Status Frequency/Voltage Control Load Bios Defaults Set Supervisor Password Set User Password Save & Exit Setup Exit Without Saving Esc : Quit F10 : Save & Exit Setup ↑↓→← :Select Item Time, Date. Hard Disk, Type... 3.
WinSystems - "The Embedded Systems Authority" Phoenix - AwardBIOS CMOS Setup Utility Standard CMOS Features Date (mm:dd:yy) Time (hh:mm:ss) Wed Dec 4 2002 13:57:21 Item Help Menu Level IDE Primary Master IDE Primary Slave IDE Secondary Master IDE Secondary Slave [MAXTOR 6L020J1] [None] [HL-DT-STDVD-ROM GR8] [None] Drive A Drive B [1.44M, 3.5 in.] [None] Video Halt On [EGA/VGA] [No Errors] Base Memory Extended Memory Total Memory Press [Enter] to enter next page for detail hard drive settings.
WinSystems - "The Embedded Systems Authority" IDE Primary Master Pressing [Enter], when this item is highlighted, allows for selection of how parameters for the hard drive will be determined. The choices are : - No Hard Drive is installed - Automatically detect the hard disk parameters at power-up (Recommended Setting) Manual - Use the parameters entered manually by the user None Auto Access Mode Pressing [Enter] when this option is highlighted allows selection of the hard disk access mode.
WinSystems - "The Embedded Systems Authority" Drive A type/Drive B type This category identifies the type of floppy drives attached as Drive A: or Drive B:. The choices are as follows : NONE 360K, 5.25 in. 1.2M, 5.25 in. 720K, 3.5 in 1.44M, 3.5 in. 2.88M 3.5 in. Video This cate gory speci fies the type of video adapter used for the pri mary sys tem moni tor that matches your video display board and monitor.
WinSystems - "The Embedded Systems Authority" Memory This category is display only and is determined by the BIOS POST (Power-On Self Test). Base Memory The POST rou tines in the BIOS will de ter mine the amount of base (con ven tional) mem ory in stalled in the sys tem. The value of the base mem ory is typi cally 640K for sys tems with a Mega byte of memory or greater. Extended Memory The BIOS determines how much extended memory is present during the POST.
WinSystems - "The Embedded Systems Authority" Phoenix - AwardBIOS CMOS Setup Utility Advanced BIOS Features Virus Warning CPU Internal Cache External Cache CPU L2 Cache ECC Checking Processor Number Feature Quick Power On Self Test First Boot Device Second Boot Device Third Boot Device Boot Other Device Swap Floppy Drives Boot Up Floppy Seek Boot Up Numlock Status Gate A20 Options Typematic Rate Setting Typematic Rate (Chars/Sec) Typematic Delay (Msec) Security Option OS Select for DRAM > 64MB Report No FD
WinSystems - "The Embedded Systems Authority" Processor Number Feature This feature when enabled allows software to read the unique Processor Serial number present on the Intel processors. Quick Power On Self Test (POST) This option, when enabled, speeds up the POST during power up. The BIOS will shorten and/or skip some items during POST. First Boot Device This options allows for selection of the primary or “First” boot device. The BIOS will attempt to boot from this device first.
WinSystems - "The Embedded Systems Authority" Swap Floppy Drive This option allows for swapping of the A: and B: floppy drives without actually relocating the drives on the cable. Boot Up Floppy Seek Dur ing POST, when this op tion is en abled, the BIOS will de ter mine if the floppy drive is 40 track or 80 tracks. If disabled, no seek test will be performed and no error can be reported. Boot Up Numlock Status This allows user selection of the Numlock state at boot time.
WinSystems - "The Embedded Systems Authority" Typematic Delay When typematic rate setting is enabled, this option specifies the time in milliseconds before autorepeat begins. The supported values are: 250 mS 500 mS 750 mS 1000 mS Security Option This option allows you to limit access to the system and setup, or just to setup. The choices are: System - The system will not boot and access will be denied if the correct password is not entered at the prompt.
WinSystems - "The Embedded Systems Authority" Shadowing Options When shadowing for a particular address range is enabled, it instructs the BIOS to copy the BIOS located in ROM into DRAM. This shad ow ing from an 8- bit EPROM into fast 32- bit DRAM re sults in a Multi-magnitude increase in performance.
WinSystems - "The Embedded Systems Authority" Phoenix - AwardBIOS CMOS Setup Utility Advanced Chipset Features SDRAM RAS-to-CAS Delay SDRAM RAS Precharge Time SDRAM CAS Latency Time SDRAM Precharge Control DRAM Data Integrity Mode System BIOS Cacheable Video BIOS Cacheable Video RAM Cacheable 8 Bit I/O Recovery Time 16 Bit I/O Recovery Time Memory Hole at 15M-16M AGP Aperture Size (MB) [3] [3] [3] [Enabled] [Non-ECC] [Disabled] [Disabled] [Disabled] [1] [1] [Disabled] [64] Item Help Menu Level ↑ ↓ → ← :
WinSystems - "The Embedded Systems Authority" SDRAM Precharge Control This option, when enabled, allow control of the SDRAM precharge timing. System BIOS Cacheable This option enables or disables cacheability of the system BIOS. Video BIOS Cacheable This option enables or disables cacheability of the video BIOS. 8 Bit I/O Recovery Enables and defines 8-bit I/O recovery time in number of clocks. 16 Bit I/O Recovery Enables and defines 16-bit I/O recovery time in number of clocks.
WinSystems - "The Embedded Systems Authority" 3.7 Integrated Peripherals Setup The options in this section allow for control of the integrated peripherals, i.e. Floppy and IDE controllers, serial ports, and the parallel port.
WinSystems - "The Embedded Systems Authority" IDE 2nd Channel Cable This op tion al lows the ca ble type to be speci fied for the sec on dary IDE chan nel. The choices are : 40 Pins 80 Pins IDE Primary Master PIO This option allows selection of the PIO mode to be used with the Primary Master IDE device. The choices are : Auto Mode 0 Mode 1 Mode 2 Mode 3 Mode 4 IDE Primary Slave PIO This option allows for selection of the PIO mode to be used with a Primary Slave IDE device.
WinSystems - "The Embedded Systems Authority" IDE Secondary Slave PIO This option allows for selection of the PIO mode to be used with a Secondary Slave IDE device. The choices are : Auto Mode 0 Mode 1 Mode 2 Mode 3 Mode 4 IDE Primary Master UDMA This op tion al lows for se lect ing whether an UDMA mode will be used for disk trans fers on the Primary Master IDE device.
WinSystems - "The Embedded Systems Authority" On-Chip Primary PCI IDE This option enables or disables the onboard Primary IDE controller. On-Chip Secondary PCI IDE This option enables or disables the onboard Secondary IDE controller. USB Keyboard Support This option enables or disables BIOS support for USB keyboards. Init Display First This op tion al lows se lec tion of the source for the first, or pri mary, video con trol ler.
WinSystems - "The Embedded Systems Authority" Onboard Serial Port 2 This option allows for control of the second onboard serial port. The options are : Disabled 3F8/IRQ4 2F8/IRQ3 3E8/IRQ4 2E8/IRQ3 Auto Onboard Parallel Port This option allows for configuration of the onboard parallel printer port. The options are : Disabled 3BC/IRQ7 378/IRQ7 278/IRQ5 Parallel Port Mode This option controls the operating mode of the onboard parallel port. The options are : SPP EPP1.9+SPP ECP ECP+EPP1.9 Normal EPP1.
WinSystems - "The Embedded Systems Authority" 3.8 Power Management Setup The items in this menu control operation of the BIOS based power management functions. ACPI function This option allows for control of the BIOS level ACPI functionality.
WinSystems - "The Embedded Systems Authority" Power Management This option allows for the specification for the type and extent of power management options. The choices are : User Define Min Saving Max Saving PM Control by APM This option, when enabled, allows an APM aware OS to control system power management. The options are : Yes No Video Off Method This option specifies the method used for Video blanking or PM shutdown.
WinSystems - "The Embedded Systems Authority" Modem Use IRQ This option allows specification of the IRQ used by the modem for PM control functions. The options are : NA 3 4 5 7 9 10 11 Doze Mode This option allows for setting the time-out value before entering Doze mode or for disabling Doze mode completely.
WinSystems - "The Embedded Systems Authority" Suspend Mode This option allows for setting the time-out value before entering Suspend mode or for disabling Suspend mode completely. The options are : Disable 1 Min 2 Min 4 Min 8 Min 12 Min 20 Min 30 Min 40 Min 1 Hour HDD Power Down This option allows selection of a Hard disk power down timer.
WinSystems - "The Embedded Systems Authority" Reload Global Timer Events The 8 options that follow al low in di vid ual selection of IRQs or de vices to moni tor. Ac tivity on any of the enabled options resets the countdown timers delaying any further power management steps. The items that can be enabled for monitoring are : IRQ[3-7, 9-15], NMI Primary IDE 0 Primary IDE 1 Secondary IDE 0 Secondary IDE 1 Floppy Disk Serial Port Parallel Port 3.
WinSystems - "The Embedded Systems Authority" PNP OS Installed This op tion al lows the user to as sign whether the op er at ing sys tem is Plug and Play compatible. The options are: Yes No Reset Configuration Data This option, when enabled, will reset the configuration data on power up. The options are: Enabled Disabled Resources Controlled By This option allows the user to select resource control of the system.
WinSystems - "The Embedded Systems Authority" PCI/VGA Palette Snoop This option when enabled permits PCI/VGA palette snooping. 3.10 PC Health Status This option is different from the other setup menu items in that there are no configurable options. This is simply a status screen that can be used to examine the status of various temperatures and voltages on the board.
WinSystems - "The Embedded Systems Authority" Phoenix - AwardBIOS CMOS Setup Utility Frequency/Voltage Control Auto Select PCI/DIMM Clk Spread Spectrum [Enabled] [Disabled] Item Help Menu Level ↑ ↓ → ← : Move Enter : Select PU/PD/+/- : Value F10 : Save ESC : Exit F1 : General Help F5 : Previous Values F6 : Fail-Safe Defaults F7 : Optimized Defaults Spread Spectrum This option enables the purposeful jittering of all of the primary Clock frequencies by the percentages given by the choices shown here.
WinSystems - "The Embedded Systems Authority" 3.13 Set Supervisor Password This op tion, when a pass word has been en tered, pro tects the Setup menus from un au thor ized alteration of the op tions. Hit ting “En ter” when prompted for the pass word, dis ables the pass word security. 3.14 Set User Password This op tion pro vides a sec ond level of pass word se cu rity to the BIOS setup screens. When both the Supervisor and the User passwords are enabled.
4 EBC-BX DiskOnChip Configuration 4.1 DiskOnChip Usage The EBC-BX supports the M-Systems’ DiskOnChip (DOC) flash device in sizes ranging from 8MB to over 500MB. The DOC de vice con tains a BIOS ex ten sion, the TFFS (True Flash File Sys tem), and the Flash memory all in a single 32-pin device. The DOC emulates a hard disk and can be used as a secondary hard disk to a physical IDE drive or it can be the only hard disk in the system. The DOC is installed into the socket at U15. Refer to the section 2.
5 WS16C48 Programming Reference 5.1 Introduction This section provides basic documentation for the included I/O routines. It is intended that the accompanying source code equip the programmer with a basic library of I/O functions for the WS16C48 or can serve as the basis from which application specific code can be derived. 5.2 Function Definitions This section briefly describes each of the functions contained in the driver. Where necessary, short ex am ples will be pro vided to il lus trate us age.
WinSystems - "The Embedded Systems Authority" READ_BIT - Reads an I/O port Bit Syntax int read_bit(int bit_number); Description This function takes a single argument: bit_number - This is a value from 1 to 48 that indicates the I/O pin to read from. This func tion re turns the state of the I/O pin. A '1' is re turned if the I/O pin is low and a '0' is returned if the pin is high.
WinSystems - "The Embedded Systems Authority" SET_BIT - Set the specified I/O Bit Syntax void set_bit(int bit_number); Description This function takes a single argument: bit_number - a value between 1 and 48 specifying the port bit to be set. This function sets the specified I/O port bit. Note that set ting a bit re sults in the I/O pin actually going low. There is no return value and other bits in the same I/O port are unaffected.
WinSystems - "The Embedded Systems Authority" ENAB_INT - Enable Edge Interrupt, Select Polarity Syntax void enab_int(int bit_number, int polarity); Description This function requires two arguments: bit_number - A value from 1 to 24 specifying the appropriate bit polarity - Specifies rising or falling edge polarity detect. The constants RISING and FALLING are defined in “uio48.h” This function enables the edge detection circuitry for the specified bit at the specified polarity.
WinSystems - "The Embedded Systems Authority" CLR_INT - Clear the specified pending interrupt Syntax void clr_int(int bit_number); Description This function requires a single argument: bit_number - The specified bit number from 1 to 24 to reset the interrupt. This func tion clears a pend ing in ter rupt on the speci fied bit. It does this by dis abling andreenabling the in ter rupt.
WinSystems - "The Embedded Systems Authority" 5.3 Sample Programs There are three sample programs in source code form included on the EBC-BX diskette in the UIO48 directory. These programs are not useful by themselves but are provided to illustrate the usage of the I/O functions provided in UIO48C. FLASH.C This program was compiled with Borland C/C++ version 3.1 on the command line with: bcc flash.c uio48.c This program illustrates the most basic usage of the WS16C48.
6 APPENDIX A - I/O Port Map The following is a list of PC I/O ports. Ad dresses marked with a '-' are not used on the EBC-BX but their use should be carefully qualified so as not to conflict with other I/O boards. I/O addresses marked with a '+' are used on the EBC-BX board and are unique to the WinSystems’ design. I/O Addresses marked with '**' are generally un used and should be the ba sis for the first choices in I/O address selection.
WinSystems - "The Embedded Systems Authority" -3B0-3BB -3C0-3CF 3E8-3EF 3F0-3F6 3F8-3FF Page 6 - 2 DMA EGA COM3 Floppy Disk COM1 OPERATIONS MANUAL EBC-BX 030923
7 APPENDIX B - Interrupt Map No.
WinSystems - "The Embedded Systems Authority" 20 21 22 23 24 25 26 27 28 29 2A 2F 30 33 3F 40 80 84 88 8C 90 94 98 9C A0 A4 A8 BC C0 CC FC 100 MS-DOS MS-DOS MS-DOS MS-DOS MS-DOS MS-DOS MS-DOS MS-DOS MS-DOS MS-DOS MS-DOS MS-DOS MS-DOS MS-DOS MS-DOS BIOS 41 42 43 44 4A 50 51 5A 5B 5C 67 6D 70 71 72 73 74 75 76 77 80 F0 F1 FF 104 108 10C 110 128 140 144 168 16C 170 19C 1B4 1C0 1C4 1C8 1CC 1D0 1D4 1D8 1DC 200 3C0 3C4 3FC BIOS BIOS BIOS BIOS BIOS BIOS BIOS NET NET NET MS-DOS VGA Hardware Hardware Hardware H
8 APPENDIX C EBC-BX Parts Placement Guide - Top 030923 OPERATIONS MANUAL EBC-BX Page 8 - 1
EBC-BX Parts Placement Guide - Bottom Page 8 - 2 OPERATIONS MANUAL EBC-BX 030923
9 APPENDIX D EBC-BX Parts List
10/13/03 Range on Parent Item PAGE 1 11:19:08 WinSystems, Inc.
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 999-9999-001 602-0331-524 602-0471-524 602-0472-524 602-0750-524 602-0822-524 999-9999-001 603-1027-803 603-1037-803 603-1047-803 999-9999-001 999-9999-001 999-9999-001 999-9999-001 999-9999-001 999-9999-001 999-9999-001 999-9999-001 999-9999-001 999-9999-001 999-9999-001 999-9999-001 999-9999-001 603-1052-803 603-1055-807 603-1061-803 603-1527-803 603-2219-803 603-8217-803 603-3307-503 SPECIAL NOTES RN 330 Ohm, 5%, 4RES ARRAY RN 470 Ohm, 4 RES 8
2 2 2 2 2 2 999-9999-001 999-9999-001 999-9999-001 999-9999-001 125-0008-000 601-0220-503 SPECIAL NOTES SPECIAL NOTES SPECIAL NOTES SPECIAL NOTES TRANSISTOR SI4947DY DUAL P-CHANNEL FET RES 22 Ohm 5% 1/10w 0805 09/11/02 MEB ECO 02-42 05/15/02 MEB (REVA) SPECIAL NOTES SPECIAL NOTES U29 R1,R2 I I I I I I 1.0 1.0 0.0 1.0 1.0 2.0 10/13/03 Range on Parent Item PAGE 4 11:19:11 WinSystems, Inc.
2 201-0002-000 PLUG JUMPER 999-19-310-00-000000 J12=1-2 J13=1-2 3-4 I 9.0 2 999-9999-001 SPECIAL NOTES J19=5-6 11-12 13-14 19-20 21-22 I 1.0 2 999-9999-001 SPECIAL NOTES J27=2-3 I 1.0 2 637-0008-015 FLASH, 256KX8 AT29C020-PLCC (32/TUBE) U27 CS=4A9B \EBCBX\REL0416.BIN I 1.0 2 730-0083-000 IC, SP208CP (SIPEX), MAX208CNG (15) U4,U6 I 2.0 2 901-0011-000 IC, PALC22V10-35PC (15,TI) (17,CYP) U17 CS=8503 \EBCBX\EBCBXU17.JED I 2.0 2 999-9999-001 SPECIAL NOTES U28 CS=2B84 \EBCBX\EBCBXU28.JED I 1.
2 999-9999-001 SPECIAL NOTES 09/11/02 MEB ECO 02-42 I 1.0 2 999-9999-001 SPECIAL NOTES 05/16/02 MEB (REVA) I 1.0 2 999-9999-001 SPECIAL NOTES SPECIAL NOTES I 1.0 2 999-9999-001 SPECIAL NOTES SPECIAL NOTES I 1.0 2 637-0003-015 IC, AT29C010A-12JC 128K X 8 FLASH ROM U33 CS=3B00 EBCBX\PCIVID\REL0314.BIN I 1.0 2 201-0002-000 PLUG JUMPER 999-19-310-00-000000 J12=1-2 I 2.0 2 999-9999-001 SPECIAL NOTES J26=2-3 I 1.
10/13/03 Range on Parent Item PAGE 8 11:19:15 WinSystems, Inc.
PRODUCT KEY RANGE : COMMODITY KEY RANGE : DEFAULT COMP LOC : ARLIN BOM STATUS PRIORITY : A THRU THRU USE SCRAP FACTOR (Y/N) UPDATE INV STD COST NO.
10 APPENDIX E EBC-BX Mechanical Drawing
11 APPENDIX F WS16C48 I/O Routines and Sample Program Listings
/* UIO48.H Copyright 1996 by WinSystems Inc. Permission is hereby granted to the purchaser of the WinSystems UIO cards and CPU products incorporating the UIO device, to distribute any binary file or files compiled using this source code directly or in any work derived by the user from this file. In no case may the source code, original or derived from this file, be distributed to any third party except by explicit permission of WinSystems.
/* UIO48.C Copyright 1996 by WinSystems Inc. Permission is hereby granted to the purchaser of the WinSystems UIO cards and CPU products incorporating the UIO device, to distribute any binary file or files compiled using this source code directly or in any work derived by the user from this file. In no case may the source code, original or derived from this file, be distributed to any third party except by explicit permission of WinSystems.
* * This function initializes all I/O pins for input, disables all interrupt * sensing, and sets the image values. * *===========================================================================*/ void init_io(unsigned io_address) { int x; /* Save the specified address for later use */ base_port = io_address; /* Clear all of the I/O ports.
/* Adjust the bit_number to 0 to 47 numbering */ --bit_number; /* Calculate the I/O port address based on the updated bit_number */ port = (bit_number / 8) + base_port; /* Get the current contents of the port */ val = inportb(port); /* Get just the bit we specified */ val = val & (1 << (bit_number % 8)); /* Adjust the return for a 0 or 1 value */ if(val) return 1; return 0; } /*=========================================================================== * * WRITE_BIT * * This function takes two arguments : *
mask = (1 << (bit_number % 8)); /* Check whether the request was to set or clear and mask accordingly */ if(val) /* If the bit is to be set */ temp = temp | mask; else temp = temp & ~mask; /* Update the image value with the value we're about to write */ port_images[bit_number / 8] = temp; /* Now actually update the port.
* * polarity : This specifies the polarity of the interrupt. A non-zero * argument enables rising-edge interrupt. A zero argument * enables the interrupt on the flling edge. * * This function enables within the 16C48 an interrupt for the specified bit * at the specified polarity. This function does not setup the interrupt * controller, nor does it supply an interrupr handler.
outportb(port,temp); /* Set access back to Page 0 */ outportb(base_port+7,0x0); } /*=========================================================================== * * DISAB_INT * * This function takes a single argument : * * bit_number : Specifies the bit number to act upon. Range is from 1 to 48. * * This function shuts off the interrupt enabled for the specified bit.
/*========================================================================== * * CLR_INT * * This function takes a single argument : * * bit_number : This argument specifies the bit interrupt to clear. Range * is 1 to 24. * * * This function is use to clear a bit interrupt once it has been recognized. * The interrupt left enabled.
} /*========================================================================== * * GET_INT * * This function take no arguments. * * return value : The value returned is the highest level bit interrupt * currently pending. Range is 1 to 24. * * This function returns the highest level interrupt pending. If no interrupt * is pending, a zero is returned. This function does NOT clear the interrupt.
temp = inportb(base_port+9); /* See if any bit set, if so return the bit number */ if(temp !=0) { for(x=0; x <=7; x++) { if(temp & (1 << x)) { outportb(base_port+7,0); /* Turn off access */ return(x+9); /* Return bitnumber with active int */ } } } /* Lastly, read status of port 2 int id */ temp = inportb(base_port+0x0a); /* Read port 2 status */ /* If any pending, return the appropriate bit number */ if(temp !=0) { for(x=0; x <=7; x++) { if(temp & (1 << x)) { outportb(base_port+7,0); /* Turn off access */
/* FLASH.C Copyright 1996-2001 by WinSystems Inc. Permission is hereby granted to the purchaser of the WinSystems UIO cards and CPU products incorporating the UIO device, to distribute any binary file or files compiled using this source code directly or in any work derived by the user from this file. In no case may the source code, original or derived from this file, be distributed to any third party except by explicit permission of WinSystems.
/* POLL.C Copyright 1996-2001 by WinSystems Inc. Permission is hereby granted to the purchaser of the WinSystems UIO cards and CPU products incorporating the UIO device, to distribute any binary file or files compiled using this source code directly or in any work derived by the user from this file. In no case may the source code, original or derived from this file, be distributed to any third party except by explicit permission of WinSystems.
} /* Clean up the screen for our display.
/* INTS.C Copyright 1996-2001 by WinSystems Inc. Permission is hereby granted to the purchaser of the WinSystems UIO cards and CPU products incorporating the UIO device, to distribute any binary file or files compiled using this source code directly or in any work derived by the user from this file. In no case may the source code, original or derived from this file, be distributed to any third party except by explicit permission of WinSystems.
old_handler = getvect(0x72); /* Hardwired for IRQ10 */ /* Install out new interrupt handler */ setvect(0x72,int_handler); /* Clear the transition count values and enable the falling edge interrupts.
outportb(0xa1,inportb(0xa1) | 0x02); /* Mask IRQ 10 */ /* Restore the old handler */ setvect(0x72,old_handler); /* Put back the old interrupt handler */ /* Reenable interrupts. Things are back they way they were before we started. */ enable(); } /* This function is executed when an edge detection interrupt occurs */ void interrupt int_handler(void) { int current; /* Get the current interrupt pending. There really should be one here or we shouldn't even be executing this function.
Telephone: 817-274-7553 . . Fax: 817-548-1358 http://www.winsystems.com . . E-mail: info@winsystems.com WARRANTY WinSystems warrants that for a period of two (2) years from the date of shipment any Products and Software purchased or licensed hereunder which have been developed or manufactured by WinSystems shall be free of any material defects and shall perform substantially in accordance with WinSystems' specifications therefore.