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 EBC- BX Tech ni cal Ref er ence In tro duc tion In tel FW82430BX Chipset Mem ory In stal la tion...
Page 4
3.10 PC Health Status 3-25 3.11 Fre quency/Volt age Con trol 3-25 3.12 Load BIOS Defaults 3-26 3.13 Set Su per visor Pass word 3-27 3.14 Set User Password 3-27 3.15 Save & Exit Setup 3-27 3.16 Exit with out Sav ing 3-27 EBC- BX Disk On Chip Con figu ra tion Disk On Chip Usage...
Gen eral De scrip tion The EBC-BX is a small, high- performance, em beddable com puter sys tem on a sin gle board. It in te - grates a number of popu lar I/O op tions in clud ing AGP 1X VGA, Eth er net, Solid- State Disk, and High- Density Par al lel I/O.
0.025" square posts on 0.10" cen ters Con nec tors : Multi I/O : 50-pin RN type IDH- 50LP COM3/COM4 : 20- pin RN type IDH- 20LP Floppy Disk : 34-pin RN type IDH- 34- LP Page 1 - 2 OPERATIONS MANUAL EBC-BX 030923...
Page 7
Eth er net : RJ-45 1.3.3 En vi ron men tal : Op er at ing Tem pera ture : -40° to +60° C Non- condensing rela tive hu mid ity : 5% to 95% 030923 OPERATIONS MANUAL EBC-BX Page 1 - 3...
In stal la tion is ac com plished with power off by in sert ing the DIMM mod ule di rectly into the con - nec tor at M1. The DIMM mod ule is keyed in 2 places and can not be in serted back wards with out ex - 030923 OPERATIONS MANUAL EBC-BX Page 2 - 1...
WinSystems - "The Embedded Systems Authority" treme force. The mod ule is in serted un til the re tain ing clips snap into place. Re moval is the re verse pro cess. Push down on the re tain ing clips, mov ing them out ward. The DIMM mod ule, once re leased, will be forced up to an ap pro pri ate re moval po si tion.
WinSystems - "The Embedded Systems Authority" Power/Re set Con nec tions Power is ap plied to the EBC- BX via the con nec tor at J3 (Mo lex part number 26-60-7091). The pin defi ni tions for J3 are given be low. An op tional push- button- reset (Nor mally Open) may also be routed into J3 if de sired.
WinSystems - "The Embedded Systems Authority" Real Time Clock/Cal en dar The EBC- BX con tains an on board Clock/Cal en dar within the Victory-66 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.
WinSystems - "The Embedded Systems Authority" Se rial In ter face U4 U5 3 2 1 o o o U6 U7 3 2 1 o o o The EBC- BX pro vides four 16550 com pati ble RS- 232 se rial ports at the fol low ing ad dresses :...
Page 13
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 (Win Sys tems P/N CK-75176-2). The con figu ra tion op tions for each of the sup ported modes are shown on the fol low ing pages.
Page 14
COM3 and COM4 are RS- 232 only and are ter mi nated at J4. An adapter ca ble is avail able from WinSystems (P/N CBL-173-1), which adapts J4 to two stan dard DB9M con nec tors. The pin defi ni tions...
Page 15
WinSystems - "The Embedded Systems Authority" COM1 - RS- 422 COM1 DB9 1 o o 6 U4 - Not In stalled 2 o o 7 U9 - In stalled 3 2 1 1 2 3 3 o o 8 o o o...
Page 16
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 of the board. These should only be in stalled by sur face mount quali fied in di vidu als. 030923 OPERATIONS MANUAL EBC-BX Page 2 - 9...
Page 17
WinSystems - "The Embedded Systems Authority" COM2 - RS- 485 COM2 DB9 1 o o 6 U6 - Not In stalled 2 o o 7 TX/RX+ U10 - In stalled 3 2 1 1 2 3 3 o o 8...
Page 18
WinSystems - "The Embedded Systems Authority" COM1 - J1708 COM1 DB9 1 o o 6 U4 - Not In stalled 2 o o 7 TX/RX+ U9 - In stalled 3 2 1 1 2 3 3 o o 8 TX/RX-...
WinSystems - "The Embedded Systems Authority" 2.10 Par al lel Printer Port The EBC- BX sup ports a fully bi- directional par al lel printer port ca pa ble of EPP and ECP op era - tions. The PnP par al lel port is mapped by de fault at 378H and is ter mi nated at the Multi-I/O con nec tors at J3.
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 IOCS16 C2 o o D2 LA22 B4 o o A4...
WinSystems - "The Embedded Systems Authority" 2.16 Watch dog Timer Con figu ra tion Watch dog Timer con figu ra tion jumper J21 The EBC- BX board fea tures a power- on volt age de tect, and power- down/power brown out re set cir cuit to pro tect mem ory and I/O from faulty CPU op era tion dur ing pe ri ods of il le gal volt age lev els.
WinSystems - "The Embedded Systems Authority" 2.19 Disk On Chip Con figu ra tion The Disk On Chip can be en abled by jump er ing J12 and J13 as shown be low. J12 DOC En able Jumper J13 DOC Win dow Se lect...
WinSystems - "The Embedded Systems Authority" J6 Par al lel I/O En able J14 Par al lel I/O +5V Supply Enable 2.20 Par al lel I/O The EBC- BX util izes the Win Sys tems WS16C48 ASIC high- density I/O chip mapped at a base ad - dress of 120H.
Page 26
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 27
WinSystems - "The Embedded Systems Authority" Reg is ter De tails Port 0-5 I/O - Each I/O bit in each of the 6 ports can be in di vidu ally pro grammed for in put or out - put. Writ ing a '0' to a bit po si tion causes the cor re spond ing out put pin to go to a High- Impedance state (pulled high by ex ter nal 10K ohm re sis tors).
WinSystems - "The Embedded Systems Authority" 2.21 VGA Con figu ra tion The EBC- BX uses a fourth gen era tion CRT/Flat panel Su per 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) kits.
Page 29
WinSystems - "The Embedded Systems Authority" 2.21.2 Panel Back light Con nec tion Panel Back light con nec tion is made via the con nec tor at J25. The pinout for J25 is shown here for reference. ENBKL 2.21.3 Flat Panel Out put Con nec tion 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 Ta ble 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 Color depth (bpp)
WinSystems - "The Embedded Systems Authority" Cool ing fan con nec tions J31 and J34 o o o J31 and J34 FAN POWER FAN TACH 2.23 Fan Power Connector The EBC- BX has a con nec tor lo cated at J31 to sup ply power to the proc es sor cool ing fan. The pin de fi ni tions are shown here for ref er ence.
2.25 USB Con nec tor A USB cable may be attached via the connector at J11. An adapter cable, CBL-249-1 is available from WinSystems to adapt to a conventional USB port. The pinout for J11 is shown here. USBV0 USBG0...
WinSystems - "The Embedded Systems Authority" 2.26 Jumper/Con nec tor Sum mary Con nec tor/ De scrip tion Page Ref er ence Jumper Mouse con nec tor Multi-I/O con nec tor 2-25 Power con nec tor COM3, COM4 con nec tor...
Use the ar row keys to high light the de sired se lec tion and press EN TER to en ter the sub- menu or to exe cute the func tion se lected. 030923 OPERATIONS MANUAL EBC-BX Page 3 - 1...
Page 35
WinSystems - "The Embedded Systems Authority" Phoenix - AwardBIOS CMOS Setup Utility. Standard CMOS Features Frequency/Voltage Control Advanced BIOS FEATURES Load Bios Defaults Advanced Chipset Features Integrated Peripherals Set Supervisor Password Power Management Setup Set User Password PnP/PCI Configuration Save & Exit Setup...
Page 36
WinSystems - "The Embedded Systems Authority" Phoenix - AwardBIOS CMOS Setup Utility Standard CMOS Features Date (mm:dd:yy) Wed Dec 4 2002 Item Help Time (hh:mm:ss) 13:57:21 Menu Level IDE Primary Master [MAXTOR 6L020J1] Press [Enter] to enter IDE Primary Slave...
Page 37
WinSystems - "The Embedded Systems Authority" IDE Pri mary Mas ter Press ing [En ter], when this item is high lighted, al lows for se lec tion of how pa rame ters for the hard drive will be de ter mined. The choices are :...
Page 38
CGA80 MONO The EBC-BX has built- in VGA sup port so EGA/VGA should be se lected. Er ror Halt This cate gory de ter mines whether the sys tem will halt if a non fa tal er ror is de tected dur ing the power-up self test.
WinSystems - "The Embedded Systems Authority" Mem ory This cate gory is dis play only and is de ter mined by the BIOS POST (Power-On Self Test). Base Mem ory 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.
Page 40
WinSystems - "The Embedded Systems Authority" Phoenix - AwardBIOS CMOS Setup Utility Advanced BIOS Features Virus Warning [Disabled] Item Help CPU Internal Cache [Enabled] External Cache [Enabled] Menu Level CPU L2 Cache ECC Checking [Enabled] Processor Number Feature [Disabled] Allows you to choose the...
Page 41
WinSystems - "The Embedded Systems Authority" Proc es sor Num ber Fea ture This fea ture when en abled al lows soft ware to read the unique Proc es sor Se rial number pres ent on the In tel proc es sors.
Page 42
WinSystems - "The Embedded Systems Authority" Swap Floppy Drive This op tion al lows for swap ping of the A: and B: floppy drives with out ac tu ally re lo cat ing the drives on the ca ble. 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.
Page 43
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:...
WinSystems - "The Embedded Systems Authority" Shad ow ing Op tions When shad ow ing for a par ticu lar ad dress range is en abled, it in structs the BIOS to copy the BIOS lo cated in ROM into DRAM. This shad ow ing from an 8- bit EPROM into fast 32- bit DRAM re sults in a Multi- magnitude in crease in per form ance.
Page 45
WinSystems - "The Embedded Systems Authority" Phoenix - AwardBIOS CMOS Setup Utility Advanced Chipset Features SDRAM RAS-to-CAS Delay Item Help SDRAM RAS Precharge Time SDRAM CAS Latency Time Menu Level SDRAM Precharge Control [Enabled] DRAM Data Integrity Mode [Non-ECC] System BIOS Cacheable...
Page 46
WinSystems - "The Embedded Systems Authority" SDRAM Pre charge Con trol This op tion, when en abled, al low con trol of the SDRAM pre charge tim ing. Sys tem BIOS Cache able This op tion enables or disables cacheability of the system BIOS.
WinSystems - "The Embedded Systems Authority" In te grated Pe riph er als Setup The op tions in this sec tion al low for con trol of the in te grated pe riph er als, i.e. Floppy and IDE con - trol lers, se rial ports, and the par al lel port.
Page 48
WinSystems - "The Embedded Systems Authority" IDE 2nd Chan nel Ca ble 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 Pri mary Mas ter PIO This op tion al lows se lec tion of the PIO mode to be used with the Pri mary Mas ter IDE de vice.
Page 49
WinSystems - "The Embedded Systems Authority" IDE Secondary Slave PIO This op tion al lows for se lec tion of the PIO mode to be used with a Secondary Slave IDE de vice. The choices are : Auto Mode 0...
Page 50
WinSystems - "The Embedded Systems Authority" On- Chip Pri mary PCI IDE This op tion en ables or dis ables the on board Pri mary IDE con trol ler. On- Chip Sec on dary PCI IDE This op tion en ables or dis ables the on board Sec on dary IDE con trol ler.
Page 51
WinSystems - "The Embedded Systems Authority" On board Se rial Port 2 This op tion al lows for con trol of the sec ond on board se rial port. The op tions are : Dis abled 3F8/IRQ4 2F8/IRQ3 3E8/IRQ4 2E8/IRQ3...
WinSystems - "The Embedded Systems Authority" Power Man age ment Setup The items in this menu con trol op era tion of the BIOS based power man age ment func tions. ACPI func tion This op tion al lows for con trol of the BIOS level ACPI func tion al ity.
Page 53
WinSystems - "The Embedded Systems Authority" Power Man age ment This op tion al lows for the speci fi ca tion for the type and ex tent of power man age ment op tions. The choices are : User De fine...
Page 54
WinSystems - "The Embedded Systems Authority" Mo dem Use IRQ This op tion al lows speci fi ca tion of the IRQ used by the mo dem for PM con trol func tions. The op - tions are : Doze Mode This op tion al lows for set ting the time- out value bef ore en ter ing Doze mode or for dis abling Doze mode com pletely.
Page 55
WinSystems - "The Embedded Systems Authority" Suspend Mode This op tion al lows for set ting the time- out value bef ore en ter ing Sus pend mode or for dis abling Sus pend mode com pletely. The op tions are :...
WinSystems - "The Embedded Systems Authority" Re load Global Timer Events The 8 op tions that fol low al low in di vid ual se lec tion of IRQs or de vices to moni tor. Ac tiv ity on any of the en abled op tions re sets the count down tim ers de lay ing any fur ther power man age ment steps.
Page 57
WinSystems - "The Embedded Systems Authority" PNP OS In stalled This op tion al lows the user to as sign whether the op er at ing sys tem is Plug and Play compatible. The op tions are: Re set Con figu ra tion Data This op tion, when en abled, will re set the con figu ra tion data on power up.
WinSystems - "The Embedded Systems Authority" PCI/VGA Pal ette Snoop This op tion when en abled per mits PCI/VGA pal ette snoop ing. 3.10 PC Health Status This op tion is dif fer ent from the other setup menu items in that there are no con fig ur able op tions.
Page 59
WinSystems - "The Embedded Systems Authority" Phoenix - AwardBIOS CMOS Setup Utility Frequency/Voltage Control Auto Select PCI/DIMM Clk [Enabled] Item Help Spread Spectrum [Disabled] Menu Level ↑ ↓ → ← : Move Enter : Select PU/PD/+/- : Value F10 : Save...
Page 60
WinSystems - "The Embedded Systems Authority" 3.13 Set Su per vi sor Pass word This op tion, when a pass word has been en tered, pro tects the Setup menus from un au thor ized al tera - tion of the op tions. Hit ting “En ter” when prompted for the pass word, dis ables the pass word se cu rity.
Page 61
EBC-BX Disk On Chip Con figu ra tion Disk On Chip Us age The EBC- BX sup ports the M- Systems’ DiskOnChip (DOC) flash de vice in sizes rang ing 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 mem ory all in a sin gle 32- pin de vice.
Page 62
There is no re turn value. This func tion ini tial izes all I/O pins for in put (sets them high), dis ables all in ter rupt set tings, and sets the im age val ues. 030923 OPERATIONS MANUAL EBC-BX Page 5 - 1...
Page 63
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 64
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 65
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 66
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 67
WinSystems - "The Embedded Systems Authority" Sam ple Pro grams There are three sam ple pro grams in source code form in cluded on the EBC- BX 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 UIO48C.
Page 68
2E8- 2EF COM4 **2F0- 2F7 FREE 2F8- 2FF COM2 -300- 31F Pro to type Card -320- 32F XT Hard Disk **330- 377 FREE -378- 37F Par al lel Printer -380 -3AF SDLC 030923 OPERATIONS MANUAL EBC-BX Page 6 - 1...
Page 69
WinSystems - "The Embedded Systems Authority" -3B0 -3BB -3C0 -3CF 3E8- 3EF COM3 3F0- 3F6 Floppy Disk 3F8- 3FF COM1 Page 6 - 2 OPERATIONS MANUAL EBC-BX 030923...
Page 70
BIOS Key board break vec tor BIOS User chained timer tick BIOS Video Ini tiali za tion BIOS Floppy Disk pa rame ter ta ble BIOS CGA graphic char ac ter font 030923 OPERATIONS MANUAL EBC-BX Page 7 - 1...
Page 71
WinSystems - "The Embedded Systems Authority" 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 Fa tal Er ror Vec tor...
Page 72
AP PEN DIX C EBC-BX Parts Place ment Guide - Top 030923 OPERATIONS MANUAL EBC-BX Page 8 - 1...
Page 73
EBC-BX Parts Place ment Guide - Bottom Page 8 - 2 OPERATIONS MANUAL EBC-BX 030923...
Page 79
U2,U3 201-0002-000 PLUG JUMPER 999-19-310-00-000000 J24=1-2 3-4 ----------------------------------------------------------------------------------------------------------------------------------- SUB-ASSEMBLY TOTAL: 0307-410-0000C ARLIN - 7 Items ----------------------------------------------------------------------------------------------------------------------------------- 1 0307-500-0000C ASSY DIGITAL TOP SMT, EBC-BX REV.C ASSY DIGITAL TOP SMT, EBC-BX REV.C 999-9999-001 SPECIAL NOTES 07/24/03 MEB ECO 03-44 999-9999-001 SPECIAL NOTES...
Page 80
10/13/03 Range on Parent Item PAGE 11:19:15 WinSystems, Inc. ASSM ITEM FROM: EBC-BXPLUS-700 ASSM ITEM THRU: EBC-BXPLUS-700 PARENT LOC FROM: <FIRST> DEFAULT COMPONENT LOCATION: ARLIN PARENT LOC THRU: <LAST> =================================================================================================================================== ITEM LVL ITEM KEY ITEM DESCRIPTION BOM COMMENT TYPE REQUIRED...
Page 81
PRODUCT KEY RANGE : <FIRST> THRU <LAST> USE SCRAP FACTOR (Y/N) : N COMMODITY KEY RANGE : <FIRST> THRU <LAST> UPDATE INV STD COST NO. LEVELS TO EXPLODE : 999 DEFAULT COMP LOC : ARLIN COLUMNS OF DESC TEXT : 42 BOM STATUS PRIORITY : A SHORT OR LONG (S/L) : S...
Page 82
AP PEN DIX E EBC-BX Me chani cal Draw ing...
Page 84
APPENDIX F WS16C48 I/O Routines and Sample Program Listings...
Page 85
"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 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
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. This also makes them inputs */ for(x=0;...
Page 88
/* 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 &...
Page 89
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;...
Page 90
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.
Page 91
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. *===========================================================================*/ void disab_int(int bit_number) unsigned port;...
Page 92
/*========================================================================== 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. *===========================================================================*/ void clr_int(int bit_number) unsigned port;...
Page 93
/*========================================================================== 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. *===========================================================================*/ int get_int(void) int temp;...
Page 94
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);...
Page 95
"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 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
/* Clean up the screen for our display. Nothing fancy */ clrscr(); for(x=1; x<25; x++) gotoxy(1,x); printf("Bit number %02d ",x); /* We will continue to display until any key is pressed */ while(!kbhit()) /* Retrieve any pending transitions and update the counts */ check_ints();...
Page 98
"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 99
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. for(x=1; x<25; x++) int_counts[x] = 0; /* Clear the counts */ enab_int(x,FALLING); /* Enable the falling edge interrupts */ /* Unmask the interrupt controller */ outportb(0xa1,(inportb(0xa1) &...
Page 100
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;...
Page 101
. . 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.
Need help?
Do you have a question about the EBC-BX and is the answer not in the manual?
Questions and answers