Microsoft UNO-3074 Interrupt Function of the DI Signals, IRQ Level, Interrupt Control Register

Page 29

2.5.3 Interrupt Function of the DI Signals

DI0 and DI1 can be used to generate hardware interrupts. Users can setup the configuration of them by programming the interrupt control register.

The channels are connected to the interrupt circuitry. Users can disable/ enable interrupt function, select trigger type or latch the port data by set- ting the Interrupt Control Register of the UNO-3074 (refer to section 2.5.5 below). When the interrupt request signals occur, then the software will service these interrupt requests by ISR (Interrupt Service Routine). The multiple interrupt sources provide the card with more capability and flexi- bility.

2.5.4 IRQ Level

The IRQ level is by default set by the system BIOS. IRQ 7 is reserved for DI interrupt and counter interrupt.

2.5.5 Interrupt Control Register

Table 2.5: Interrupt Control Register Bit Map

 

 

 

Base Address

 

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

202H

 

R/W

Interrupt Enable Control/Status Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DI1EN

DI0EN

 

 

 

 

 

 

 

 

 

 

 

203H

 

R/W

Interrupt Triggering Edge Control/Status Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DI1TE

DI0TE

 

 

 

 

 

 

 

 

 

 

 

207H

 

R/W

Interrupt Flag/Clear Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DI1F

DI0F

 

 

 

 

 

 

 

 

 

 

 

The Interrupt Control Register controls the function and status of each interrupt signal source. Table 2.5 shows the bit map of the Interrupt Con- trol Register. The register is readable/writeable register. While being writ- ten, it is used as a control register; and while being read, it is used as a sta- tus register.

DI0EN & DI1EN: DI0 & DI1 Interrupt disable/enable control bit

DI0TE & DI1TE: DI0 & DI1 Interrupt triggering edge control bit

DI0F & DI1F: DI0 & DI1 interrupt flag bit

19

Chapter2

Image 29
Contents UNO-3074 Support CopyrightAcknowledgements Product Warranty 2 years FCC Class a Technical Support and Assistance Declaration of ConformitySafety Instructions Safety Precaution Static Electricity Contents Chapter Initial Setup Appendix Programming the Watchdog Timer Page Overview Open Architecture Designed for Automation IntroductionAn Industry-Proven Design Front Access ConnectionsOff-the-shelf Universal PCI Extensions Designed to Fit Into Control CabinetsPopular Operating Systems and Rapid Application Development Onboard DI/O for Counter, Alarm/Event HandlingFlexible Networking Options Battery Backup RAM 512 KB Chipset Hardware SpecificationsCPU RS-232 SpeedCh Isolated Digital Input DI0~DI3 Two 16-bit Counters/TimersCh Isolated Digital Output DO0~DO3 Anti-ShockPower Supply 16 ~ 36 VDC Safety PrecautionsPower Consumption 24 W Typical Chassis Size WxHxDChassis Dimensions for CeleronM 1GHz Chassis DimensionsChassis for Pentium 1.8GHz or Faster CPU Packing List AccessoriesHardware Functionality Front Panel of UNO-3074 RS-232/422/485 Interface COM3~COM4 RS-232 Interface COM1~COM21 16C550 UARTs with 16-byte Fifo Standard 2 RS-422/485 Detection5 RS-485 Auto Flow/RS-422 Master/Slave Selection 4 RS-232/422/485 SelectionVector address for share IRQ 1D0H 6 IRQ, I/O Address and Transmission Rate SettingAuto Flow & RS-422 Slave/Masters Transmission Rate Switch 2 at SW3 IRQ Setting via Switch 1 at SW3Onboard Isolated Digital Input LAN Ethernet ConnectorTermination Resistor JP6 Pin AssignmentsIsolated Inputs Digital Input Connector Signal DescriptionIRQ Level Interrupt Function of the DI SignalsInterrupt Control Register Interrupt Control Register Bit MapInterrupt Flag Bit Interrupt Enable Control FunctionInterrupt Triggering Edge Control Onboard Isolated Digital Output Digital Output Connector SignalsIsolated Outputs Power On Configuration10 Digital Output Power On Configuration Isolated Digital Output Connection 11 Counter/Timer Control Register Bit Map Onboard Isolated Counter/TimerCounter/Timer Control Register Counter 1 Function Block Counter 0 Function BlockCounter Clock Source 4 32-bit Counter Function Block CTR32Set=1Counter Internal Clock Counter Gate SourceCounter Interrupt Flag Counter Output Destination14 Counter Gate Source Control Bit 15 Counter Output Destination Control Bit17 32-bit Counter Control Bit Power InputCascaded 32-bit Counter 12 LED Locations to Monitor Power Input LED and Buzzer for System Diagnosis 18 Power Register Bit Map20 Programmable LED Control Bit 19 LED & Buzzer Control RegisterPS/2 Keyboard and Mouse Connector USB ConnectorPcmcia PC Card Slot 21 Programmable Buzzer Control BitPage Make sure the IRQ of Pcmcia device is VGA Display Connector Page 14 LED Location for Battery Backup Battery Backup SramOutput voltage 3 VDC Reset ButtonLithium Battery Specification Initial Setup Inserting a CompactFlash Card Connecting PowerJP2 on mainboard refer to Figures A.3 JP1 on daughterboard refer to Figure A.4Correct way is shown by the first figure below Installing a Hard DiskPage Page Page IDE Connector CN1 and CN2 1st Anti-Vibration Rubber Installing a PCI-bus Card2nd PCI-bus Card Installation Mounting UNO-3074 Installing Power CableUNO-3074 Mounting Caution UNO-3074 Improper InstallationUNO-3074 Correct Installation Bios Setup and System Assignments Page System Settings and Pin Assignments Table A.1 UNO-3074 System I/O Port System I/O Address and Interrupt AssignmentsInterrupt No Interrupt Source Table A.2 UNO-3074 Interrupt AssignmentsFigure A.1 Backplane Connector & Jumpers Board Connectors and JumpersFigure A.3 Mainboard Connector & Jumpers Front Figure A.4 Daughter Connector & Jumpers Front Figure A.5 Daughter Connector & Jumpers Back Table A.4 Connector and Jumper Descriptions Table A.3 Connector and Jumper DescriptionsSW1 Table A.5 Connector & Jumper DescriptionsTable A.6 UNO-3074 Control Register UNO-3074 Control RegisterTable A.7 RS-232 Serial Port Pin Assigns RS-232 Standard Serial Port COM1~COM2Table A.9 Ethernet RJ-45 Connector Pin Assigns Ethernet RJ-45 Connector LAN1~LAN2RS-232/422/485 Serial Port COM3~COM4 Table A.8 RS-232/422/485 Serial Port Pin AssignsTable A.10 Power Connector Pin Assignments Power Screw Terminal PWRUSB Connector USB1~USB4 PS/2 Keyboard and Mouse ConnectorTable A.11 Keyboard & Mouse Connector Pins Table A.12 USB Connector Pin AssignmentsTable A.13 VGA Adaptor Cable Pin Assignmen Page Programming the Watchdog Timer Appendix B Programming the Watchdog Timer