background image

15

Chapter 3  

3.2.3 Input/Output Control 

A control word can be written to a port's configuration register (Base+3, 
7, 11 and 15 respectively for ports 0, 1, 2 and 3 on the PCM-3753I, and 
Base+35, 39, 43 and 47 respectively for ports 0, 1, 2 and 3 on the 
PCM-3753IE) to set the port as an input or an output port, unless the ports 
are set as output ports via jumpers (refer to Section 2.3, Jumper Settings). 
Table 3-1 shows the format of a control word. 

3.2.4 Initial Configuration

The initial configuration of each port depends on the input/output jumper 
setting of each port, on the setting of the jumper JP1, and on whether the 
power was actually disconnected or whether the system was hot reset.
If jumper JP1 is not enabled, all ports configured by software are 
automatically set as input ports during system start up or reset, with a 
default signal level of logic 1 (high).  All ports set via jumpers as output 
ports are set as output ports during system start up or reset, signal level 
logic 0 (0 V).  

Table 3.1: Bitmap of Port Configuration Register

D7

D6

D5

D4

D3

D2

D1

D0

Not 
read

Not 
read

Not 
read

PortA 
0: output  
1: input

Port C
higher 
bits
0: output
1: input

Not 
read

Port B
0: output
1: input

Port C
lower bits
0: output
1: input

Note

A control word has no effect if the corresponding 
port is set as an output port by a jumper.  

Warning

Before setting any port as an output port via 
software, make sure that a safe output value has 
also been set. An output voltage will appear at 
the pins immediately following the control word 
taking effect. If no output value was specified, the 
value will be indeterminate (either 0 or 1), which 
may cause a dangerous condition. 

Содержание PCM-3753I

Страница 1: ...PCM 3753I 96 channel Digital I O PCI 104 Module User Manual...

Страница 2: ...Advantech Co Ltd assumes no responsibility for its use nor for any infringements of the rights of third parties which may result from its use Acknowledgments PC LabCard is a trademark of Advantech Co...

Страница 3: ...lacement materials service time and freight Please consult your dealer for more details If you think you have a defective product follow these steps 1 Collect all the information about the problem enc...

Страница 4: ...lem The exact wording of any error messages Packing List Before setting up the system check that the items listed below are included and in good condition If any item does not accord with the table pl...

Страница 5: ...4 3 2 Digital I O Ports 14 3 2 1 Introduction 14 3 2 2 8255 Mode 0 14 3 2 3 Input Output Control 15 Table 3 1 Bitmap of Port Configuration Register 15 3 2 4 Initial Configuration 15 3 2 5 Dry Contact...

Страница 6: ...PCM 3753I User Manual vi...

Страница 7: ...2 CHAPTER 1 General Information...

Страница 8: ...l input channel at the PCM 3753I accepts either 0 5 VDC wet contact or dry contact inputs This dry contact capability allows the channel to respond to changes in external circuitry e g the closing of...

Страница 9: ...ard with more capability and flexibility The PCM 3753I also provides Pattern Match interrupt function for port A0 The card monitors the states of port A0 and compares them with a pre set pattern When...

Страница 10: ...n match and Change of state interrupt functions for critical I O monitoring Keeps I O setting and digital output values when hot system reset Supports dry contact and wet contact 50 pin pin header Boa...

Страница 11: ...V max 24 mA sink Logic level 1 3 76 V min 24 mA source Transfer Rate 1 6 Mbytes sec tested under DOS K6 300MHz CPU Power Consumption 5 V 105 mA typical 5 V 210 mA max Operating Temperature 0 60 C 32...

Страница 12: ...PCM 3753I User Manual 6 1 5 Pin Assignments CN5 CN8 CN5 A0 B0 C0 CN6 A1 B1 C1 CN7 A2 B2 C2 CN8 A3 B3 C3...

Страница 13: ...2 CHAPTER 2 Installation...

Страница 14: ...rton and packing materials for inspection by the carrier We will then make arrangements to repair or replace the unit 2 2 Unpacking The PCM 3753I contains components that are sensitive and vulnerable...

Страница 15: ...t Ports as Input or Output by Software When the two pins of jumpers JPA0 JPB0 JPC0L JPC0H JPA1 JPB1 JPC1L JPC1H JPA2 JPB2 JPC2L JPC2H JPA3 JPB3 JPC3L or JPC3H are not shorted i e by setting a jumper t...

Страница 16: ...rt just prior to reset are restored to each port following reset This feature applies to both ports set by software and to ports configured as output ports via jumper Depending on the application this...

Страница 17: ...tory If you need to adjust this setting please see below 2 4 1 BoardID Register You can determine the BoardID setting in the register as shown below Table 2 2 BoardID Setting SW2 BoardID DEC Switch Po...

Страница 18: ...connector J1 of the PCM 3753I card to the PCI 104 con nector Carefully align the pins with the PC 104 connector Slide the module into the connector The module pins may not slide all the way into the c...

Страница 19: ...2 CHAPTER 3 Operation...

Страница 20: ...er driving capability than a standard 8255 chip Each of these 8255 chip emulators has 24 programmable I O pins that are divided into three 8 bit ports The total 96 digital I O pins on the PCM 3753I is...

Страница 21: ...ts configured by software are automatically set as input ports during system start up or reset with a default signal level of logic 1 high All ports set via jumpers as output ports are set as output p...

Страница 22: ...s the channel to respond to changes in external circuitry e g the closing of a switch in the external circuitry when no voltage is present in the external circuit Figure 3 1 shows external circuitry w...

Страница 23: ...y 3 3 2 IRQ Level The IRQ level is set automatically by the PCI plug and play BIOS and is saved in the PCI controller There is no need for users to set the IRQ level Only one IRQ level is used by this...

Страница 24: ...01 pattern patch interrupt flag bit of port A0 F02 change of state interrupt flag bit of port B0 Table 3 2 Interrupt Control Register Bitmap Base 16 48 Port 0 Bit D7 D6 D5 D4 D3 D2 D1 D0 Abbreviation...

Страница 25: ...Interrupt Sources M01 M00 0 0 0 1 1 0 1 1 PC00 PC04 M11 M10 0 0 0 1 1 0 1 1 PC10 PC14 M21 M20 0 0 0 1 1 0 1 1 PC20 PC24 M31 M30 0 0 0 1 1 0 1 1 PC30 PC34 M2 1 0 M1 1 0 Change of State PB0 Pattern Matc...

Страница 26: ...Base 49 determines the interrupt source of port C1 and so forth Please refer the table in Appendix A to find the corresponding address for the interrupt source control of each port C The following tab...

Страница 27: ...t Read the bit s value to find the status of the interrupt write 1 to this bit to clear the interrupt This bit must be cleared in the ISR to service the next incoming interrupt F01 pattern patch inter...

Страница 28: ...ern match function for the I O channels PA01 PA02 PA06 and PA07 of the PCM 3753I is enabled i e PA00 PA03 PA04 and PA05 on the PCM 3753I and port A0 on the PCM 3753IE are ignored during the pattern ma...

Страница 29: ...t function for the I O channels PB01 PB02 PB06 and PB07 on the PCM 3753IE are enabled i e the signals in PB00 PB03 PB04 and PB05 on the PCM 3753IE and port B0 of the PCM 3753I are ignored during the c...

Страница 30: ...PCM 3753I User Manual 24...

Отзывы: