background image

5

WS16C48 Pro gram ming Ref er ence

5.1

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.

5.2

Func tion Defi ni tions

This sec tion briefly de scribes each of the func tions con tained in the driver. Where nec es sary, short

ex am ples will be pro vided to il lus trate us age. Any ap pli ca tion mak ing use of any of the driver func tions
should in clude the header file “uio48.h”, which in cludes the func tion pro to types and the needed con -
stant defi ni tions.

Note that all of the func tions util ize the con cept of “bit_number”. The “bit_number” is a value from

1 to 48 (1 to 24 for in ter rupt re lated func tions) that cor re lates to a spe cific  I/O pin. Bit_number 1 is port
0 bit 0 and con tin ues through to bit_number 48 at port 5 bit 7.

INIT_IO - Ini tial ize I/O, set all ports to in put

Syn tax

void init_io(un signed io_ad dress);

De scrip tion

This func tion takes a sin gle ar gu ment:

io_ad dress - The I/O ad dress of the WS16C48 chip.

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

Содержание EBC-BX

Страница 1: ...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...

Страница 2: ...REVISION HISTORY P N 403 0307 000 ECO Number Date Code Rev Level ORIGINATED 030124 B 03 57 030923 C...

Страница 3: ...13 PC 104 Plus Bus Interface 2 13 2 14 Floppy Interface 2 14 2 15 IDE Hard Disk Interface 2 15 2 16 Watchdog Timer Configuration 2 16 2 17 Status LED 2 16 2 18 Battery Select Control 2 16 2 19 DiskOnC...

Страница 4: ...7 4 EBC BX DiskOnChip Configuration 4 1 DiskOnChip Usage 4 1 4 2 DOC Initialization 4 1 5 WS16C48 Programming Reference 5 1 Introduction 5 1 5 2 Function Definitions 5 1 5 3 Sample Programs 5 6 APPEND...

Страница 5: ...ral Description The EBC BX is a small high performance embeddablecomputersystemonasingleboard Itinte grates a number of popularI OoptionsincludingAGP1XVGA Ethernet Solid StateDisk and High DensityPara...

Страница 6: ...04 Plus expansion use only Memory Addressing 256 Megabyte addressing BIOS ROM 256K Atmel Flash reprogrammable on board Memory DIMM Socket 168 pin 3 3V Dimm Module PC 100 SDRAM Module SSD Memory One 32...

Страница 7: ...ne latching Molex type 22 11 2052 USB 4 pin in line latching Molex type 22 11 2042 PC 104 Bus 64 Pin SAMTEC type ESQ 132 12 G D 40 Pin SAMTEC type ESQ 120 12 G D PC 104 Plus Bus 120 Pin SAMTEC type TS...

Страница 8: ...Real Time Clock Enhanced Power Management Full Plug and Play compatibility These functional units are 100 PC AT compatible and are supported by the Award BIOS and setup Usersdesiringtoaccesstheseinte...

Страница 9: ...er block at J19 This block allows disconnecting or rerouting of the onboard interrupts The layout for the J19 header and the default jumper settings are shown below Page 2 2 OPERATIONS MANUAL EBC BX 0...

Страница 10: ...sonlyrequirediftherearePC 104Pluscardsthat require3 3 Volts be suppliedfromtheBus The 12and 12VoltpinsarerouteddirectlytothePC 104connectorsand flat panel connectors and are not required for normal bo...

Страница 11: ...ration and tostartfreshwithfactorydefaults Thismaybeaccomplishedbyremovingpowerfromtheboard Then remove the jumper from pins 2 3 on J27 and place on pins 1 2 for 10 seconds Replace the jumper on J27 p...

Страница 12: ...ally via the jumper block at J24 When J24 pins 1 2 are jumpered COM3 is enabled When J24 pins 3 4 are jumpered COM4 is enabled The interrupts are not disconnected when COM3 or COM4 are disabled Use th...

Страница 13: ...cable P N CBL 247 1 isavailablefrom Win Systems to adapt to standard DB9 connectors COM1 RS 232 COM2 RS 232 Page 2 6 OPERATIONS MANUAL EBC BX 030923 WinSystems The Embedded Systems Authority 3 2 1 o o...

Страница 14: ...munity RS 422 usually requires the lines be terminated at both ends This termination can be accomplished either on the cable or by installingresisters on the board in locations reserved for them The m...

Страница 15: ...led 1 o o 6 2 o o 7 3 o o 8 4 o o 9 5 o J15 J17 COM1 DB9 N C TX TX N C GND RX RX N 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 Contro...

Страница 16: ...he board These should only be installed by surface mount qualified individuals 030923 OPERATIONS MANUAL EBC BX Page 2 9 3 2 1 o o o 1 2 3 o o o U4 Not Installed U9 Installed U5 Not Installed 1 o o 6 2...

Страница 17: ...EBC BX 030923 WinSystems The Embedded Systems Authority 3 2 1 o o o 1 2 3 o o o U6 Not Installed U10 Installed U7 Not Installed 1 o o 6 2 o o 7 3 o o 8 4 o o 9 5 o J16 J18 COM2 DB9 N C TX RX TX RX N...

Страница 18: ...U4 Not Installed U9 Installed U5 Not Installed 1 o o 6 2 o o 7 3 o o 8 4 o o 9 5 o J15 J17 COM1 DB9 N C TX RX TX RX N C GND N C N C N C N C VCC R106 4 7K R109 Absent R108 4 7K TX RX TX RX R111 47 OHM...

Страница 19: ...diooutput BIOSbeepcodes error signaling or user defined tones can be presented via this device 2 12 PC 104 Bus Interface The EBC BX supports I O expansion through the standard PC 104 connectors at J20...

Страница 20: ...27 B28 o o A28 B29 o o A29 B30 o o A30 B31 o o A31 B32 o o A32 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 5...

Страница 21: ...5V AD28 AD27 22 5V AD30 GND AD31 23 REQ0 GND REQ1 VI O 24 GND REQ2 5V GNT0 25 GNT1 VI O GNT2 GND 26 5V CLK0 GND CLK1 27 CLK2 5V CLK3 GND 28 GND INTD 5V RST 29 12V INTA INTB INTC 30 12V Reserved Reserv...

Страница 22: ...Embedded Systems Authority J10 GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND RPM LC N C N C INDEX MTR0 DRV1 DRV0 MTR1 DIR STEP WDATA WGATE TRK0 WPRT RDATA HDSEL DSKCHG 1 o o 2 3...

Страница 23: ...led beforemakinganyextensiveBIOSorDOScalls especially video or disk I O calls which could exceed the time seconds allowed when the 1 5 second mode is used 2 17 Status LED A green LED is populated on t...

Страница 24: ...t all times for proper Plug N Play operation 030923 OPERATIONS MANUAL EBC BX Page 2 17 WinSystems The Embedded Systems Authority 2 1 o o J12 3 1 o o o o 4 2 J13 J12 DOC Enable Jumper J13 DOC Window Se...

Страница 25: ...at I O address 120H are free for use by other devices 2 20 2 Parallel I O VCC Enable The I O connectorscanprovide 5voltstoanI Orackorformiscellaneouspurposesbyjumpering J14 When J14 is jumpered 5 vol...

Страница 26: ...o o 24 25 o o 26 27 o o 28 29 o o 30 31 o o 32 33 o o 34 35 o o 36 37 o o 38 39 o o 40 41 o o 42 43 o o 44 45 o o 46 47 o o 48 49 o o 50 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...

Страница 27: ...3 Bits 5 0 allow for locking the I O ports A 1 written to the I O port position will prohibit further writes to the corresponding I O port POL0 POL2 Theseregistersareaccessiblewhenpage1isselected They...

Страница 28: ...FPAmoduleisattheuser sriskandextremecareshouldbe exer cised to avoid damaging or destroying the panel HAZARD WARNING LCD panels can require a high voltage for the panel backlight This high frequency v...

Страница 29: ...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 21 o o 22 23 o o 24 25 o o 26 27 o o 28 29 o o 30 31 o o 32 33 o o 34 35 o o 36 37 o o 38 39 o o 40 41 o o 42 43 o...

Страница 30: ...the system CPU Two large transmitandreceiveFIFOsof3 Kbytes each help prevent data underrunsandoverruns allowingthe82559 totransmitdatawithminimum in terframe spacing IFS The 82559 can operateineither...

Страница 31: ...lso a connector at J34 for use with an auxiliary sys tem cooling fan The pin definitions for these connectors is shown here Both J31 and J34 provide 5V nominal at 250mA max Page 2 24 OPERATIONS MANUAL...

Страница 32: ...d 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 21 o o 22 23 o o 24 25 o o 26 27 o o 28 29 o o 30 31 o o 32 33 o o 34 35 o o 36 37 o o 38...

Страница 33: ...nfiguration jumper 2 5 J17 COM1 RS 422 RS 485 configuration jumper 2 5 J18 COM1 RS 422 RS 485 configuration jumper 2 5 J19 IRQ routing jumper 2 2 J20 PC 104 16 bit connector 2 13 J21 Watchdog Timer co...

Страница 34: ...d and you still wish to entersetup restartthesystembyturningitOFFandthenONorby pressing theRESETbutton ifsoequipped orbypressingtheCTRL ALTandDELkeysimultaneously Alter nately under certain error cond...

Страница 35: ...nth the month JAN through DEC Year The year from 1900 to 2099 Time The time is hour minute second The time is calculated on the 24 hour military time clock such that 1 00PM is 13 00 00 Page 3 2 OPERAT...

Страница 36: ...ix AwardBIOS CMOS Setup Utility Standard CMOS Features Date mm dd yy Wed Dec 4 2002 Time hh mm ss 13 57 21 IDE Primary Master MAXTOR 6L020J1 IDE Primary Slave None IDE Secondary Master HL DT STDVD ROM...

Страница 37: ...s that are compatible with allowable BIOS parameter restrictions Drives up to 120GB can be used with this mode LARGE This is another translation scheme that is not commonly used but may be required fo...

Страница 38: ...gory determines whether the system will halt if a nonfatal error is detected during the power up self test The choices are No Errors The system will not be stopped for any error that may be detected A...

Страница 39: ...hetotaloftheBasememoryandtheExtendedmemoryinstalledinthesystem 3 5 Advanced BIOS Features Setup Virus Warning Thisoptionwhenenabled protectsthebootsectorandpartitiontableoftheharddiskagainst unau thor...

Страница 40: ...k Status On Gate A20 Options Fast Typematic Rate Setting Enabled Typematic Rate Chars Sec 6 Typematic Delay Msec 250 Security Option Setup OS Select for DRAM 64MB Non OS2 Report No FDD for WIN 95 No V...

Страница 41: ...0 SCSI CD ROM HDD 1 HDD 2 HDD 3 ZIP100 LAN Disabled Note Not all of these devices will be available and selection of a nonexistent device may result in a drastic increase in boot time Second Boot Dev...

Страница 42: ...for the gate A20 signal The choices are Normal Sourced from the keyboard controller Fast Sourced from the Chipset Typematic Rate Setting Thisoptionenablesordisablesthetypematicrateprogrammingatboottim...

Страница 43: ...access to Setup will be denied if the correct password is not entered at the prompt NOTE Todisablesecurity select PasswordSetting attheSetupMainMenuandthenyouwillbe askedtoenterapassword Donottypeany...

Страница 44: ...nlessyouhaveaclearunderstandingofthesignificanceofthechange It is pos sible using these options to create a system that will either not boot or is very unstable or unreliable If this should occur ther...

Страница 45: ...OS CMOS Setup Utility Advanced Chipset Features SDRAM RAS to CAS Delay 3 SDRAM RAS Precharge Time 3 SDRAM CAS Latency Time 3 SDRAM Precharge Control Enabled DRAM Data Integrity Mode Non ECC System BIO...

Страница 46: ...overy 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 Memory Hole At 15M 16M This option when enabl...

Страница 47: ...Cable 40 Pins IDE Primary Master PIO Auto IDE Primary Slave PIO Auto IDE Secondary Master PIO Auto IDE Secondary Slave PIO Auto IDE Primary Master UDMA Auto IDE Primary Slave UDMA Auto IDE Secondary M...

Страница 48: ...uto 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 The choices are Auto Mode 0 Mode 1 Mode 2 Mode...

Страница 49: ...ThisoptionallowsforselectingwhetheranUDMAmodewillbeusedfordisktransfersonthePri mary Slave IDE device The choices are Disabled Auto IDE Secondary Master UDMA This option allows for selecting whether...

Страница 50: ...e The onboard video is implementedontheAGPbus Analternateprimaryvideodisplaymay be used by installing a PC 104Plus video card and setting this option to PCI Slot IDE Block Mode This option allows enab...

Страница 51: ...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...

Страница 52: ...es Video Off Method V H SYNC Blank Video Off After Standby Modem Use IRQ 3 Doze Mode Disabled Standby Mode Disabled Suspend Mode Disabled HDD Power Down Disabled VGA Active Monitor Disabled IRQ 8 Brea...

Страница 53: ...e 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 The options are Blank Screen V H SYNC Blank DPMS...

Страница 54: ...or for disabling Doze mode completely The options are Disable 1 Min 2 Min 4 Min 8 Min 12 Min 20 Min 30 Min 40 Min 1 Hour Standby Mode This option allows for setting the time out value before entering...

Страница 55: ...allows selection of a Hard disk power down timer The options are Disable 1 Min 2 Min 3 Min 4 Min 5 Min 6 Min 7 Min 8 Min 9 Min 10 Min 11 Min 12 Min 13 Min 14 Min 15 Min VGA Active Monitor This option...

Страница 56: ...l PNP and PCI resources 030923 OPERATIONS MANUAL EBC BX Page 3 23 WinSystems The Embedded Systems Authority Phoenix AwardBIOS CMOS Setup Utility PNP PCI Configuration PNP OS Installed No Reset Configu...

Страница 57: ...rces ThisoptionallowsforIRQstobereservedforLegacyISAdevicesortobeusedinthepoolof avail able IRQs for PCI and ISA PnP devices DMA Resources This option allows for DMA resources to be reserved for legac...

Страница 58: ...ems Auto Detect PCI DIMM Clk This option when enabled instructs the BIOS to turn off unused clocks to DIMM sockets and PCI slots 030923 OPERATIONS MANUAL EBC BX Page 3 25 WinSystems The Embedded Syste...

Страница 59: ...d reloads all of the CMOS settings with the factory specified settings Page 3 26 OPERATIONS MANUAL EBC BX 030923 WinSystems The Embedded Systems Authority Phoenix AwardBIOS CMOS Setup Utility Frequenc...

Страница 60: ...passwords are enabled The user will only be able to alterfixeddisk info If no Supervisor password is enabled the user access password allows full access to the Setup screens The security option is dis...

Страница 61: ...talled into the socket at U15 Refer to the section 2 19 for correct device jumpering and enabling of the DOC 4 2 DOC Initialization The DOC is initialized in an identical fashion to a fixed disk DOS i...

Страница 62: ...ions should include the header file uio48 h which includes the function prototypes and the needed con stant definitions Note that all of the functionsutilizetheconceptof bit_number The bit_number isav...

Страница 63: ...e pin is high WRITE_BIT Write a 1 or 0 to an I O pin Syntax void write_bit int bit_number int value Description This function takes two arguments bit_number This is value from 1 to 48 which is the bit...

Страница 64: ...n value and other bits in the same I O port are unaffected CLR_BIT Clear the specified I O Bit Syntax void clr_bit int bit_number Description This function takes a single argument bit_number a value f...

Страница 65: ...pt controller install vectors or handle interrupts when they occur There is no return value and only the specified bit is affected DISAB_INT Disable Edge Detect Interrupt Detection Syntax void disab_i...

Страница 66: ...n with no inter rupt pending will have no adverse affect Only the specified bit is affected GET_INT Retrieve bit number of pending interrupt Syntax int get_int void Description This function requires...

Страница 67: ...c This program illustrates additional features of the WS16C48 and the I O library functions It pro grams the first 24 bits for input arms them for falling edge detection and then polls using the libra...

Страница 68: ...pset Registers 024 03F FREE 040 043 8254 Timer 044 05F FREE 060 06F 8042 Keyboard Controller 070 071 CMOS RAM RTC 072 07F FREE 080 08F DMA Page Registers 090 09F FREE 0A0 0BF 8259 PIC 2 0C0 0DF 8237 D...

Страница 69: ...3B0 3BB DMA 3C0 3CF EGA 3E8 3EF COM3 3F0 3F6 Floppy Disk 3F8 3FF COM1 Page 6 2 OPERATIONS MANUAL EBC BX 030923 WinSystems The Embedded Systems Authority...

Страница 70: ...Q5 XT Hard Disk AT Free 286 Protection fault exception E 38 Hardware IRQ6 Floppy Disk Interrupt 386 Page fault exception F 3C Hardware IRQ7 LPT1 10 40 BIOS Video BIOS functions 286 Coprocessor excepti...

Страница 71: ...r table 42 108 BIOS EGA Chain 43 10C BIOS EGA Parameter table pointer 44 110 BIOS EGA graphics character font 4A 128 BIOS AT Alarm exit address 50 140 BIOS AT Alarm interrupt 51 144 BIOS Mouse functio...

Страница 72: ...8 APPENDIX C EBC BX Parts Placement Guide Top 030923 OPERATIONS MANUAL EBC BX Page 8 1...

Страница 73: ...EBC BX Parts Placement Guide Bottom Page 8 2 OPERATIONS MANUAL EBC BX 030923...

Страница 74: ...9 APPENDIX D EBC BX Parts List...

Страница 75: ...RES 470 Ohm 20 1 10w 0805 R102 R107 I 2 0 2 601 0474 503 RES 470K Ohm 5 1 10W 0805 R120 I 1 0 2 601 0564 503 RES 560K Ohm 5 1 10W 0805 R119 I 1 0 2 601 0683 503 RESISTOR 68K 5 0805 SMT R153 I 1 0 2 6...

Страница 76: ...ROM FIRST DEFAULT COMPONENT LOCATION ARLIN PARENT LOC THRU LAST ITEM QTY LVL ITEM KEY ITEM DESCRIPTION BOM COMMENT TYPE REQUIRED 2 603 3317 803 CAP 330PF 20 50V 0805 SMT X7R C177 C197 I 2 0 2 603 4707...

Страница 77: ...ps 74HC04D T 2500 reel U20 I 1 0 2 611 0125 001 IC 74HC125 QUAD TRI STATE BUFFER U16 I 1 0 2 611 0245 002 IC 74HC245DW T Philips 2k reel U22 I 1 0 2 612 0014 001 IC 74HCT14 SM U21 I 1 0 2 612 0688 002...

Страница 78: ...1 007 XTAL 25 0000mhz 18pf SMT FA 365 Y3 I 1 0 SUB ASSEMBLY TOTAL 0307 200 0000C ARLIN 11 Items 1 0307 202 0000C ASSY ENET TOP TH EBC BX REV C ASSY ENET TOP TH EBC BX REV C F 1 0 2 999 9999 001 SPECIA...

Страница 79: ...120 HDR 2X36 UN Aptos LHZ 72S E 060 030 J24 2X2 I 1 2 250 0320 200 SKT STRP 32 POS SS 132 G 2 SAM U2 2X12 U3 2X12 I 7 SUB ASSEMBLY TOTAL 0307 402 0000C ARLIN 8 Items 1 0307 410 0000C SUB ASSY SECOND S...

Страница 80: ...SUB ASSY TOP SMT PROCESSOR 700MHZ REVC SUB ASSY TOP SMT PROCESSOR 700MHZ REVC F 1 0 2 999 9999 001 SPECIAL NOTES 07 24 03 MEB ECO 03 44 I 1 0 2 999 9999 001 SPECIAL NOTES 09 11 02 MEB ECO 02 42 I 1 0...

Страница 81: ...HRU LAST USE SCRAP FACTOR Y N N COMMODITY KEY RANGE FIRST THRU LAST UPDATE INV STD COST N NO LEVELS TO EXPLODE 999 DEFAULT COMP LOC ARLIN COLUMNS OF DESC TEXT 42 BOM STATUS PRIORITY A SHORT OR LONG S...

Страница 82: ...10 APPENDIX E EBC BX Mechanical Drawing...

Страница 83: ......

Страница 84: ...11 APPENDIX F WS16C48 I O Routines and Sample Program Listings...

Страница 85: ...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 It is the user s sole responsibility to dete...

Страница 86: ...t or indirect loss or damage real or consequential resulting from the usage of this source code It is the user s sole responsibility to determine fitness for any considered purpose Name uio48 c Projec...

Страница 87: ...ge 2 access for interrupt enables outportb base_port 7 0x80 Clear all interrupt enables outportb base_port 8 0 outportb base_port 9 0 outportb base_port 0x0a 0 Restore normal page 0 register access ou...

Страница 88: ...is specified by bit_number 1 to 48 val The setting for the specified bit either 1 or 0 This function sets the specified I O pin to either high or low as dictated by the val argument A non zero value...

Страница 89: ...ed 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_numb...

Страница 90: ...ess based uppon the bit number port bit_number 8 base_port 8 Calculate a bit mask based on the specified bit number mask 1 bit_number 8 Turn on page 2 access outportb base_port 7 0x80 Get the current...

Страница 91: ...mask Adjust the bit_number for 0 based numbering bit_number Calculate the I O Address for the enable port port bit_number 8 base_port 8 Calculate the proper bit mask for this bit number mask 1 bit_nu...

Страница 92: ...he 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_por...

Страница 93: ...nding register mask off undefined bits temp inportb base_port 6 0x07 If there are no interrupts pending return a 0 if temp 7 0 return 0 There is something pending now we need to identify what it is Se...

Страница 94: ...rt 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 return x 17 Retur...

Страница 95: ...resulting from the usage of this source code It is the user s sole responsibility to determine fitness for any considered purpose include stdio h include conio h include dos h include uio48 h This is...

Страница 96: ...loss or damage real or consequential resulting from the usage of this source code It is the user s sole responsibility to determine fitness for any considered purpose include stdio h include conio h i...

Страница 97: ...nsitions and update the counts check_ints Display the current count values for x 1 x 25 x gotoxy 16 x printf 05u int_counts x getch void check_ints int current Get the bit number of a pending transiti...

Страница 98: ...ource code It is the user s sole responsibility to determine fitness for any considered purpose include stdio h include dos h include conio h include uio48 h define BASE_PORT 0x120 This program like t...

Страница 99: ...rtb 0xa1 0xfb Unmask IRQ 10 Reenable interrupts enable Set up the display clrscr Clear the Text Screen for x 1 x 25 x gotoxy 1 x printf Bit Number 02d x We will continuously print the transition total...

Страница 100: ...ould be one here or we shouldn t even be executing this function current get_int We will continue processing pending edge detect interrupts until there are no more present In which case current 0 whil...

Страница 101: ...WARRANTIES BY WINSYSTEMS EXCEPT AS STATED HEREIN THERE ARE NO OTHER WARRANTIES EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR P...

Отзывы: