Advertisement

OP ERA TIONS MAN UAL
LBC- 486Plus
LBC- 586Plus
Win Sys tems re serves the right to make changes in the cir cuitry
and speci fi ca tions at any time with out no tice.
© Copy right 1997 by Win Sys tems. All Rights Re served.

Advertisement

Table of Contents
loading

Summary of Contents for WinSystems LBC- 486Plus

  • Page 1 OP ERA TIONS MAN UAL LBC- 486Plus LBC- 586Plus Win Sys tems re serves the right to make changes in the cir cuitry and speci fi ca tions at any time with out no tice. © Copy right 1997 by Win Sys tems. All Rights Re served.
  • Page 2 RE VI SION HIS TORY P/N 403- 0259- 000 ECO Num ber Date Code Rev Level ORIGI NATED 970422 97- 36 970602 97- 78 970829 97- 105 971204 98- 01 980107 98- 18 980311 98- 57 980807 98- 86 980817 99- 30 990609 99- 83...
  • Page 3: Table Of Contents

    TA BLE OF CON TENTS Sec tion Para graph Page Num ber Ti tle Num ber Gen eral In for ma tion Fea tures Gen eral De scrip tion Speci fi ca tions LBC- Plus Tech ni cal Ref er ence In tro duc tion ALI 1487/1489 Chipset CPU Speed Se lec tion...
  • Page 4 3.11 Save & Exit Setup 3-14 3.12 Exit without Saving 3-14 LBC-Plus Silicon Disk Reference Introduction ROMDISK Usage Bootable RAMDISK/FLASHDISK Usage Non-Bootable RAMDISK Usage Non-Bootable FLASHDISK Usage DiskOnChip Usage WS16C48 Programming Reference Introduction Function Definitions Sample Programs APPENDIX A I/O Port Map APPENDIX B Interrupt Map APPENDIX C...
  • Page 5: Gen Eral In For Ma Tion

    Gen eral In for ma tion Fea tures 486DX4 at 100MHz or 5X86 at 133 MHz 100% PC- AT Com pati ble Up to 32 Mbytes of user instal la ble FPM or EDO DRAM Op tional 256K L2 Cache Solid State Disk Sup port of up to 12MB PCI High- Resolution VGA con trol ler for CRT or Flat Panel us age PCI IDE Con trol ler...
  • Page 6: Speci Fi Ca Tions

    WinSystems - "The Embedded Systems Authority" Speci fi ca tions 1.3.1 Elec tri cal Bus In ter face : PC/104 8- Bit or 16- Bit ex pan sion bus Sys tem Clock : Jumper pro gram ma ble from 4MHz to 50MHz...
  • Page 7 WinSystems - "The Embedded Systems Authority" Eth er net AUI : 16 pin RN type IDH- 16- LP CRT : 10 pin RN type IDH- 10- LP Flat Panel : 50 pin RN type IDH- 50- LP Power/Re set :...
  • Page 8: Lbc- Plus Tech Ni Cal Ref Er Ence

    LBC- PLUS Tech ni cal Ref er ence In tro duc tion This sec tion of the man ual is in tended to pro vide suf fi cient in for ma tion re gard ing the con figu ra tion and us age of the LBC-Plus board.
  • Page 9: Cpu Speed Se Lec Tion

    WinSystems - "The Embedded Systems Authority" CPU Speed Se lec tion 1 2 3 o o o 1 o o 2 3 o o 4 5 o o 6 The LBC- Plus uses a Crys tal con trolled fre quency syn the sizer to con trol the CPU clock rate. The jumper block at J12 al lows for the se lec tion of any of 8 CPU base clock fre quen cies rang ing from 8 MHz to 100 MHz.
  • Page 10: Pci Clock Se Lect

    WinSystems - "The Embedded Systems Authority" 2.3.1 Clock Mul ti plier Se lect 486DX4 and 5X86 proc es sors ac tu ally run at a mul ti ple of the base os cil la tor fre quency. The jumper block at J36 al lows se lec tion of the mul ti plier as shown here :...
  • Page 11: In Ter Rupt Rout Ing

    WinSystems - "The Embedded Systems Authority" In ter rupt rout ing 1 o o 2 3 o o 4 5 o o 6 7 o o 8 9 o o 10 11 o o 12 13 o o 14 15 o o 16...
  • Page 12: Real Time Clock/Cal En Dar

    WinSystems - "The Embedded Systems Authority" Real Time Clock/Cal en dar 1 2 3 o o o The LBC- Plus con tains an on board Clock/Cal en dar within the ALI1487 chip. This clock is fully com pati ble with the MC146818A used in the origi nal PC- AT com put ers. This clock has a number of fea tures in clud ing pe ri odic and alarm in ter rupt ca pa bili ties.
  • Page 13: Se Rial In Ter Face

    WinSystems - "The Embedded Systems Authority" Se rial In ter face U8 U3 U4 1 2 3 o o o 1 2 3 o o o 1 2 3 o o o 1 2 3 o o o The LBC-Plus pro vides four 16550 com pati ble RS- 232 se rial ports at the fol low ing ad dresses :...
  • Page 14 WinSystems - "The Embedded Systems Authority" The two pri mary se rial ports, COM1 and COM2 are con fig ur able for RS- 422, RS- 485 or J1708, with the ad di tion of op tional driver ICs. The con figu ra tion op tions for each of the sup ported modes are shown on the fol low ing pages.
  • Page 15 WinSystems - "The Embedded Systems Authority" 2.9.1 RS- 422 Mode Con figu ra tion RS- 422 lev els are sup ported on both COM1 and COM2 with the in stal la tion of the op tional “Chip Kit”, Win Sys tems part number CK- 75176-2. This kit pro vides the driver ICs nec es sary for a sin gle chan nel of RS- 422.
  • Page 16 WinSystems - "The Embedded Systems Authority" COM2 - RS- 422 COM2 DB9 1 o o 6 U5 - Not In stalled 2 o o 7 U6 - In stalled 1 2 3 1 2 3 3 o o 8 o o o...
  • Page 17 WinSystems - "The Embedded Systems Authority" COM1 - RS- 485 COM1 DB9 1 o o 6 U3 - Not In stalled 2 o o 7 TX/RX+ U4 - In stalled 1 2 3 1 2 3 3 o o 8...
  • Page 18 WinSystems - "The Embedded Systems Authority" COM2 - RS- 485 COM2 DB9 1 o o 6 U5 - Not In stalled 2 o o 7 TX/RX+ U6 - In stalled 1 2 3 1 2 3 3 o o 8...
  • Page 19 WinSystems - "The Embedded Systems Authority" COM1 - J1708 COM1 DB9 1 o o 6 U3 - Not In stalled 2 o o 7 TX/RX+ U4 - In stalled 1 2 3 1 2 3 3 o o 8 TX/RX-...
  • Page 20: Par Al Lel Printer Port

    WinSystems - "The Embedded Systems Authority" 2.10 Par al lel Printer Port 1 o o 2 3 o o 4 5 o o 6 The LBC- Plus sup ports a fully bi- directional par al lel printer port ca pa ble of EPP and ECP op era - tions.
  • Page 21: Speaker/Sound In Ter Face

    WinSystems - "The Embedded Systems Authority" 2.10.2 ECP DMA Con figu ra tion When the par al lel port is used in an ECP con figu ra tion, the jumper blocks at J21 and J24 are used to se lect the de sired DMA chan nel as shown here :...
  • Page 22 WinSystems - "The Embedded Systems Authority" B1 o o A1 C0 o o D0 IOCHK SBHE RESET B2 o o A2 C1 o o D1 MEMCS16 LA23 B3 o o A3 C2 o o D2 IOCS16 LA22 IRQ9 B4 o o A4...
  • Page 23: Ide Hard Disk In Ter Face

    WinSystems - "The Embedded Systems Authority" 2.14 IDE Hard Disk In ter face The LBC-Plus sup ports stan dard IDE fixed disks through the I/O con nec tor at J18. A red ac tiv ity LED is pres ent at D1. The pin defi ni tions for J18 are shown here :...
  • Page 24: Status Led

    WinSystems - "The Embedded Systems Authority" back to this mode is that a lockup dur ing the time the watch dog is dis abled will not al low for auto- recovery and will re quire an ex ter nal re set.
  • Page 25: Power/Re Set Con Nec Tion

    WinSystems - "The Embedded Systems Authority" 2.18 Power/Re set Con nec tion Power is sup plied to the LBC-Plus via the con nec tor at J7. The pin defi ni tions for J7 are given be - low. An op tional normally- open push- button- reset switch may also be con nected to J7 be tween PBRE - SET* and ground.
  • Page 26 WinSystems - "The Embedded Systems Authority" disk ar ray is mem ory mapped into a 16k byte hole at seg ment E400H and has an I/O con trol reg is ter at 1ECH. 2.19.1 Sili con Disk Mode There are two ba sic modes of Sili con Disk op era tion on the LBC- Plus. The first uses the on board BIOS ex ten sion and sup ports the use of 512K or 1M EPROMS, 512K SRAMS, or 512K AT MEL Flash De vices.
  • Page 27 WinSystems - "The Embedded Systems Authority" 2.19.3 De vice Type Se lec tion Each of the de vices in the ar ray has an in di vid ual de vice type jumper block at the de vice socket. J39 sets the de vice type for U27 and J38 sets the de vice type for U23. The sup ported de vice type jump er ings...
  • Page 28: Par Al Lel I/O

    WinSystems - "The Embedded Systems Authority" 2.20 Par al lel I/O The LBC-Plus util izes the Win Sys tems WS16C48 ASIC high- density I/O chip mapped at a base ad dress of 120H. The first 24 lines are ca pa ble of fully latched event sens ing with sense po lar ity be ing soft ware pro gram ma ble.
  • Page 29 WinSystems - "The Embedded Systems Authority" 1 o o 2 Port 2 Bit 7 1 o o 2 Port 5 Bit 7 3 o o 4 Port 2 Bit 6 3 o o 4 Port 5 Bit 6 5 o o 6...
  • Page 30 WinSystems - "The Embedded Systems Authority" I/O Ad dress Page 0 Page 1 Page 2 Page 3 Offset Port 0 I/O Port 0 I/O Port 0 I/O Port 0 I/O Port 1 I/O Port 1 I/O Port 1 I/O Port 1 I/O...
  • Page 31: Vga Con Figu Ra Tion

    WinSystems - "The Embedded Systems Authority" Bits 5-0 al low for lock ing the I/O ports. A '1' writ ten to the I/O port po si tion will pro hibit fur ther writes to the cor re spond ing I/O port.
  • Page 32 WinSystems - "The Embedded Systems Authority" 2.21.1 In tro duc tion The LBC- Plus uses a third gen era tion CRT/Flat panel VGA con trol ler. It sup ports stan dard VGA out put as well as a va ri ety of Flat Panel Dis plays us ing op tional Flat Panel Adapter (FPA) mod ules. The video on the LBC-Plus uses the Chips and Tech nolo gies 6554X se ries of high per form ance VGA con - trol lers.
  • Page 33 WinSystems - "The Embedded Systems Authority" 2.21.3 CRT Out put Con nec tion Video out put to a stan dard VGA moni tor is made via the con nec tor at J27. An adapter ca ble part number CBL- 207-1 is avail able from Win Sys tems to adapt from J27 to the stan dard DB15 VGA con - nec tor.
  • Page 34 WinSystems - "The Embedded Systems Authority" 2.21.5 Video Mode Ta bles The LBC- Plus video sec tion sup ports a number of stan dard and ex tended VGA modes. The fol low - ing ta bles ex tracted from the C&T 65540/65545 da ta book show the video modes along with the re - quired amount of RAM.
  • Page 35 WinSystems - "The Embedded Systems Authority" Ex tended Reso lu tion Modes Mode Hori zon tal Ver ti cal Dis play Text Font Pixel Video Col ors Clock Fre quency Fre quency Mode Dis play Size Reso lu tion Memory...
  • Page 36: Eth Er Net Con Figu Ra Tion

    WinSystems - "The Embedded Systems Authority" High Re fresh Modes Mode Hori zon tal Ver ti cal Dis play Text Font Pixel Video Col ors Clock Fre quency Fre quency Mode Dis play Size Reso lu tion Memory CODE (Hex)
  • Page 37 WinSystems - "The Embedded Systems Authority" 1 o o 2 3 o o 4 5 o o 6 7 o o 8 9 o o 10 11 o o 12 13 o o 14 15 o o 16 17 o o 18 19 o o 20 2.22.1...
  • Page 38 WinSystems - "The Embedded Systems Authority" The fol low ing sec tions de tail the J35 jump er ing when the “jumpered” mode is se lected. 2.22.2 I/O Port Se lec tion The NE2000 sec tion of the LBC-Plus uses 32 con secu tive I/O ad dresses in the CPU’s I/O space.
  • Page 39 WinSystems - "The Embedded Systems Authority" 2.22.3 In ter rupt Se lec tion The NE2000 sec tion needs an in ter rupt line for sig nal ing vari ous con di tions to the soft ware driver. There are 8 pos si ble choices as shown here :...
  • Page 40 AUI mode and use an ex ter nal trans ceiver. The AUI is con nected via J28. An adapter ca ble, WinSystems part number CBL- 147-1, is avail - able which ter mi nates in a stan dard DB15 con nec tor.
  • Page 41 WinSystems - "The Embedded Systems Authority" 2.22.6 Com pati ble Vs. En hanced Mode The NE2000 sec tion uses two 32K byte buffer RAMs on board. In com pati ble mode, only 8K of each RAM (to tal of 16K) is ac ces si ble to the driver. When the En hanced mode is cho sen the full 32K is avail able from each RAM.
  • Page 42 WinSystems - "The Embedded Systems Authority" 2.22.9 PlusCfg Con figu ra tion Util ity When “jumper less” mode is se lected (Sec tion 2.22.1), the con figu ra tion is made via soft ware which is then saved to the on board EE PROM. PLUSCFG.EXE along with MES SAGE.MSG can be run from the pro vided floppy or can be cop ied to a hard disk.
  • Page 43 WinSystems - "The Embedded Systems Authority" 2.22.10 Con fig ure New Adapter This screen is used to con fig ure an in stalled adapter that is not pres ent in the win dow on the right side of the screen. Typi cally this would be a board that had it's I/O port set to “None”.
  • Page 44 WinSystems - "The Embedded Systems Authority" The “Con fig ure New Adapter Manu ally” pres ents a screen simi lar to the one shown be low : WinSystems AT/LANTIC Thick/Thin/TPI PLUSCFG V1.17 Configuration August 20, 1993 11:34PM Software CONFIGURATION AT/LANTIC ADAPTERS...
  • Page 45 WinSystems - "The Embedded Systems Authority" 2.22.12 Di ag nos tics This third choice from the main menu al lows the se lec tion from the di ag nos tics sub- menu as shown in this screen : WinSystems AT/LANTIC Thick/Thin/TPI PLUSCFG V1.17...
  • Page 46 WinSystems - "The Embedded Systems Authority" WinSystems AT/LANTIC Thick/Thin/TPI PLUSCFG V1.17 Configuration Software August 20, 1993 11:34PM AT/LANTIC ADAPTERS CONFIGURATION I/O Port Mode INITIALIZATION AND DIAGNOSTICS INITIALIZATION AND DIAGNOSTICS Network Interface Controller (080017086050)..........OK Buffer Memory Check...................OK Check cable connection (Cable Connected)..........OK Interrupt Assignment (5)................OK...
  • Page 47 WinSystems - "The Embedded Systems Authority" Three choices are pro vided for Ad vanced Net work Di ag nos tics 2.22.15 Setup as a Mas ter Sta tion This en ables the board un der test to be set up as the Mas ter. The mas ter will ini ti ate test ing. The Slave must be en abled prior to start ing the Mas ter.
  • Page 48: Multi I/O Con Nec Tor

    WinSystems - "The Embedded Systems Authority" 2.23 Multi I/O Con nec tor The I/O to the pri mary se rial chan nels, the printer port, and key board are all ter mi nated via the con - nec tor at J3. An adapter ca ble, part number CBL- 162-1, is avail able from Win Sys tems to adapt to the con ven tional I/O con nec tors.
  • Page 49: Jumper/Con Nec Tor Sum Mary

    WinSystems - "The Embedded Systems Authority" 2.23.1 Jumper/Con nec tor Sum mary Con nec tor/ De scrip tion Page Ref er ence Jumper Par al lel I/O VCC En able jumper 2-22 COM3/COM4 I/O Con nec tor Multi-I/O Con nec tor...
  • Page 50: Award Bios Con Figu Ra Tion

    Award BIOS Con figu ra tion Gen eral In for ma tion The LBC- Plus comes equipped with a stan dard AWARD BIOS with Setup in ROM that al lows us - ers to mod ify the ba sic sys tem con figu ra tion. This type of in for ma tion is stored in battery- backed CMOS RAM so that it re tains Setup in for ma tion when power is turned off.
  • Page 51: Stan Dard Cmos Setup

    WinSystems - "The Embedded Systems Authority" ROM PCI/ISA BIOS (2A4KD000) CMOS SETUP UTILITY AWARD SOFTWARE, INC. STANDARD CMOS SETUP PASSWORD SETTING BIOS FEATURES SETUP IDE HDD AUTO DETECTION CHIPSET FEATURES SETUP SAVE AND EXIT SETUP LOAD BIOS DEFAULTS EXIT WITHOUT SAVING LOAD SETUP DEFAULTS ↑...
  • Page 52 WinSystems - "The Embedded Systems Authority" ROM PCI/ISA BIOS (2A4KD000) STANDARD CMOS SETUP AWARD SOFTWARE, INC. Date (mm:dd:yy) : Wed, Sep 25 1996 Time (hh:mm:ss): 13 : 28 : 46 HARD DISKS TYPE SIZE CYLS HEAD PRECOMP LANDZ SECTOR MODE...
  • Page 53 WinSystems - "The Embedded Systems Authority" None Re served None 1024 1023 1024 None 1224 None 1023 1224 None 1223 1224 None 1223 1024 None 1223 1024 None 1023 None 1023 None 1023 1024 None 1024 None 1023 1024 None...
  • Page 54 WinSystems - "The Embedded Systems Authority" boot time and uses it to ac cess the drive. The “user” mode al lows for ei ther man ual or auto mat ic en try, via the setup op tion “IDE Auto De tect” of the drive pa rame ters.
  • Page 55: Bios Fea Tures Setup

    WinSystems - "The Embedded Systems Authority" All but Disk/Key : All er rors ex cept disk ette or key board will re sult in a halt and a prompt. Mem ory This cate gory is dis play only and is de ter mined by the BIOS POST (Power On Self Test).
  • Page 56 WinSystems - "The Embedded Systems Authority" Quick Power ON Self Test This op tion, when en abled, speeds up the POST dur ing power up. If it is en abled, the BIOS will shorten and/or skip some items dur ing POST.
  • Page 57 WinSystems - "The Embedded Systems Authority" Boot Up Num lock Status This al lows user se lec tion of the Num lock state at boot time. Boot Up Sys tem Speed This op tion al lows speci fi ca tion of the proc es sor speed at boot time. The op tions are :...
  • Page 58 WinSystems - "The Embedded Systems Authority" Type matic De lay When type matic rate set ting is en abled, this op tion speci fies the time in mil li sec onds bef ore auto- repeat be gins. The sup ported val ues are :...
  • Page 59: Chipset Fea Tures Setup

    WinSystems - "The Embedded Systems Authority" Dis abled C8000 CC000 D0000 D4000 D8000 DC000 E0000 Note : This mode of us age is mu tu ally ex clu sive of any on board sili con disk us age. Fur ther note that 'Di sabled' must be se lected when any SSD mode is de sired.
  • Page 60 WinSystems - "The Embedded Systems Authority" ROM PCI/ISA BIOS (2A4KD000) CHIPSET FEATURES SETUP AWARD SOFTWARE, INC. Auto Configuration : Enabled AT-BUS Clock : CLK/4 DRAM Read Timing : Normal DRAM Write Timing : Normal SRAM Read Timing : 3-1-1-1 SRAM Write Timing...
  • Page 61 WinSystems - "The Embedded Systems Authority" DRAM Write Tim ing This op tion con trols the write tim ing to the DRAM ar ray. The avail able op tions are shown here : slow nor mal - de fault fast...
  • Page 62: Load Bios De Faults

    WinSystems - "The Embedded Systems Authority" IDE Buffer for DOS & Win Se lect En abled to in crease through put to and from IDE de vices by us ing the on- chip read- ahead and post- write IDE buff ers. Note that the use of the buffer may cause some slow IDE de vices to ap pear even slower.
  • Page 63: Password Setting

    WinSystems - "The Embedded Systems Authority" Password Setting This op tion al lows the set ting of the se cu rity pass word. Press ing en ter at the pass word prompt dis - ables the se cu rity func tion com pletely.
  • Page 64: Introduction

    LBC-PLUS Sili con Disk Ref er ence In tro duc tion Win Sys tems pro vides sili con disk sup port for the LBC-Plus us ing four dif fer ent me dia types de - pend ing upon the needs of the ap pli ca tion. 1.
  • Page 65 WinSystems - "The Embedded Systems Authority" MKDISK - Solid State RomDisk Creation Utility V6.00 (C) 1988-1994, WinSystems Inc. SELECT SSD TYPE Paged Memory Mode (SSD-XT) Extended Memory Mode (SSD-AT) V53 Expanded Memory Mode I/O Mapped Silicon Disk (USSD) sx386 On Board ROMDISK...
  • Page 66 WinSystems - "The Embedded Systems Authority" MKDISK - Solid State RomDisk Creation Utility V6.00 (C) 1988-1994, WinSystems Inc. SELECT SOURCE DRIVE Drive A Drive B Use arrow keys and ENTER to make your selection. MKDISK - Drive Menu Se lect the source drive as ap pro pri ate.
  • Page 67: Bootable Ramdisk/Flashdisk Usage

    WinSystems - "The Embedded Systems Authority" MKDISK - Solid State RomDisk Creation Utility V6.00 (C) 1988-1994, WinSystems Inc. SELECT OUTPUT FILE TYPE Binary Image Files Hex ROM Image Files S-Record ROM image files Use arrow keys and ENTER to make your selection.
  • Page 68: Non-Bootable Ramdisk Usage

    WinSystems - "The Embedded Systems Authority" The disk is now pre pared for for mat ting. The sys tem must be re booted prior to for mat ting with the sim ple DOS com mand : for mat b: /s/u Af ter the next re set the for mat ted sili con disk will boot as the A: drive.
  • Page 69 WinSystems - "The Embedded Systems Authority" A cou ple of ex am ples might help to il lus trate. Sup pose we're boot ing from a floppy or hard disk and we have in stalled two 512K X 8 SRAMs. In or der to cre ate the de sired 1 Meg RAM DISK we would need the line : de vice = ussd.sys /mod:p /seg:e400 /psz:16 /inc:1 /pad:1ec /spg:80 /dsz:1024...
  • Page 70: Non-Bootable Flashdisk Usage

    WinSystems - "The Embedded Systems Authority" Non-Bootable FLASHDISK Usage The AT MEL 5 Volt Flash Parts (29C040/29C040A) may also be used as a non boota ble drive in a man ner nearly iden ti cal to the RAM DISK us age de scribed in the pre vious sec tion. The only change when us ing USSD for the AT MEL PEROMs is the ad di tion of the /EPT:256 pa rame ter to the CON - FIG.SYS line which in stalls the USSD driver.
  • Page 71 WS16C48 Pro gram ming Ref er ence In tro duc tion This sec tion pro vides ba sic docu men ta tion for the in cluded I/O rou tines. It is in tended that the ac - com pa ny ing source code equip the pro gram mer with a ba sic li brary of I/O func tions for the WS16C48 or can serve as the ba sis from which ap pli ca tion spe cific code can be de rived.
  • Page 72 WinSystems - "The Embedded Systems Authority" READ_BIT - Reads an I/O port Bit Syn tax int read_bit(int bit_number); De scrip tion This func tion takes a sin gle ar gu ment : bit_number - This is a value from 1 to 48 that in di cates the I/O pin to read from.
  • Page 73 WinSystems - "The Embedded Systems Authority" SET_BIT - Set the speci fied I/O Bit Syn tax void set_bit(int bit_number); De scrip tion This func tion takes a sin gle ar gu ment : bit_number - a value be tween 1 and 48 speci fy ing the port bit to be set.
  • Page 74 WinSystems - "The Embedded Systems Authority" ENAB_INT - En able Edge In ter rupt, Se lect Po lar ity Syn tax void enab_int(int bit_number, int po lar ity); De scrip tion This func tion re quires two ar gu ments : bit_number - A value from 1 to 24 speci fy ing the ap pro pri ate bit po lar ity - Speci fies ris ing or fal ling edge po lar ity de tect.
  • Page 75 WinSystems - "The Embedded Systems Authority" CLR_INT - Clear the speci fied pend ing in ter rupt Syn tax void clr_int(int bit_number); De scrip tion This func tion re quires a sin gle ar gu ment : bit_number - The speci fied bit number from 1 to 24 to re set the in ter rupt.
  • Page 76 WinSystems - "The Embedded Systems Authority" Sam ple Pro grams There are three sam ple pro grams in source code form in cluded on the LBC-Plus disk ette in the UIO48 di rec tory. These pro grams are not use ful by them selves but are pro vided to il lus trate the us age of the I/O func tions pro vided in UIO48.C.
  • Page 77 AP PEN DIX A - I/O Port Map The fol low ing is a list of PC I/O ports. Ad dresses marked with a '-' are not used on the LBC- Plus but their use should be care fully quali fied so as not to con flict with other I/O boards. I/O ad dresses marked with a '+' are used on the LBC-Plus board and are unique to the Win Sys tems de sign.
  • Page 78 WinSystems - "The Embedded Systems Authority" -3B0 -3BB -3C0 -3CF 3E8- 3EF COM3 3F0- 3F6 Floppy Disk 3F8- 3FF COM1 Page 6 - 2 OPERATIONS MANUAL LBC-Plus 991206...
  • Page 79 AP PEN DIX B - In ter rupt Map Ad dress Type De scrip tion Di vide by 0 Sin gle Step 386 De bug Ex cep tion Break point Over flow Print Screen Bound Ex cep tion In va lid op code ex cep tion Co proc es sor un avail able Hard ware IRQ0 - 18.2Hz heart beat...
  • Page 80 WinSystems - "The Embedded Systems Authority" BIOS CGA graphic char ac ter font MS- DOS Pro gram ter mi nate MS- DOS DOS func tion call MS- DOS Ter mi nate Ad dress MS- DOS Ctrl- Break Ad dress MS- DOS...
  • Page 81 AP PEN DIX C LBC-Plus Parts Place ment Guide - Top 991206 OPERATIONS MANUAL LBC-Plus Page 8 - 1...
  • Page 82 WinSystems - "The Embedded Systems Authority" LBC- Plus Parts Place ment Guide -Bottom Page 8 - 2 OPERATIONS MANUAL LBC-Plus 991206...
  • Page 83 APPENDIX D LBC-PLUS Mechanical Drawing...
  • Page 85 APPENDIX E WS16C48 I/O Routines and Sample Program Listings...
  • Page 86 "As-is" basis and no warranty as to performance, fitness of purposes, or any other warranty is expressed or implied. In no case shall WinSystems be liable for any direct or indirect loss or damage, real or consequential resulting from the usage of this source code.
  • Page 87 "As-is" basis and no warranty as to performance, fitness of purposes, or any other warranty is expressed or implied. In no case shall WinSystems be liable for any direct or indirect loss or damage, real or consequential resulting from the usage of this source code.
  • Page 88 /*=========================================================================== READ_BIT This function takes a single argument : bit_number The integer argument specifies the bit number to read. Valid arguments are from 1 to 48. return value : The current state of the specified bit, 1 or 0. This function returns the state of the current I/O pin specified by the argument bit_number.
  • Page 89 /* Now actually update the port. Only the specified bit is affected */ outportb(port,temp); /*=========================================================================== SET_BIT This function takes a single argument : bit_number : The bit number to set. This function sets the specified bit. *===========================================================================*/ void set_bit(int bit_number) write_bit(bit_number,1);...
  • Page 90 temp = inportb(port); /* Get current polarity settings */ /* Set the polarity according to the argument in the image value */ if(polarity) /* If the bit is to be set */ temp = temp | mask; else temp = temp & ~mask; /* Write out the new polarity value */ outportb(port,temp);...
  • Page 91 /* Calculate the correct I/O address for our enable register */ port = (bit_number / 8) + base_port + 8; /* Calculate a bit mask for this bit number */ mask = (1 << (bit_number % 8)); /* Set access to page 2 for the enable register */ outportb(base_port+7,0x80);...
  • Page 92 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;...
  • Page 93 "As-is" basis and no warranty as to performance, fitness of purposes, or any other warranty is expressed or implied. In no case shall WinSystems be liable for any direct or indirect loss or damage, real or consequential resulting from the usage of this source code.
  • Page 94 "As-is" basis and no warranty as to performance, fitness of purposes, or any other warranty is expressed or implied. In no case shall WinSystems be liable for any direct or indirect loss or damage, real or consequential resulting from the usage of this source code.
  • Page 95 /* Get the bit number of a pending transition interrupt */ current = get_int(); /* If it's 0 there are none pending */ if(current == 0) return; /* Clear and rearm this one so we can get it again */ clr_int(current);...
  • Page 96 "As-is" basis and no warranty as to performance, fitness of purposes, or any other warranty is expressed or implied. In no case shall WinSystems be liable for any direct or indirect loss or damage, real or consequential resulting from the usage of this source code.
  • Page 97 key is pressed */ /* All of the processing of the transition interrupts, including updating the counts is done in the background when an interrupt occurs. while(!kbhit()) for(x=1; x < 25; x++) gotoxy(16,x); printf("%05u",int_counts[x]); getch(); /* Disable interrupts while we restore things */ disable();...
  • Page 98 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. With...

This manual is also suitable for:

Lbc- 586plus

Table of Contents