background image

1 8

UNO-2050  User's Manual

2.6 On-board Isolated Counter/Timer

The UNO-2050 uses one 82C54 programmable timer/counter chip that
includes three independent 16-bit down counters: counter 0, counter 1
and counter 2. Counter 0 and counter 1 are for users, and counter 2 is
specified for the system and can’t be used by user. Each counter has
clock input, gate input and pulse output. They can be programmed to
count from 2 up to 65535 or cascaded into one 32-bit counter.

The UNO-2050 has 2 isolated counter input channels designated DI6
and DI7 or 2 isolated timer output channels designated DO6 and DO7.
Therefore, you can set each counter of 82C54 as counter function or
timer function.

Counter/Timer Control Register

The Counter/Timer Control Register controls the function and status
of each counter/timer signal source. Table 2-9 shows the bit map of the
Counter/Timer Control Register. The register is readable/writable
register. While being written, it is used as a control register; and while
being read, it is used as a status register.

Table 2-9: Counter/Timer control register bit map

Base Address

7

6

5

4

3

2

1

0

Base+07H R/W

Interrupt Flag/Clear Register

CTR1F

CTR0F

Base+08H R/W

82C54 Chip Counter0 Register

Base+09H R/W

82C54 Chip Counter1 Register

Base+0BH R/W

82C54 Chip Control Register

Base+0CH R/W

Counter0 Start Control / Output Status Register

CTR0Out

CTR0Gate

Base+0DH R/W

Counter1 Start Control / Output Status Register

CTR1Out

CTR1Gate

Base+0EH R/W

Counter0 Setting Register

CTR0IntSet CTR0OutSet CTR0GateSet CTR0CLKSet

Base+0FH R/W

Counter1 Setting Register

CTR32Set S1

S0

CTR1IntSet CTR1OutSig CTR1GateSig CTR1CLKSig

Содержание UNO-2050

Страница 1: ...UNO 2050 GX1 300 Universal Network Controller with 2 x LAN 2 x RS 232 2 x isolated RS 232 422 485 16 x isolated DI O User s Manual ...

Страница 2: ...s manual is intended to be accurate and reliable However the original manufacturer assumes no responsibility for its use nor for any infringements upon the rights of third parties which may result from such use Acknowledgements IBM PC AT PS 2 and VGA are trademarks of International Business Machines Corporation Intel and Pentium are trademarks of Intel Corporation Microsoft Windows and MS DOS are ...

Страница 3: ... 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 encountered For example CPU speed Advantech products used other hardware and software used etc Note anything abnormal and list any on screen messages you get when the problem occurs 2 Call your dealer and descri...

Страница 4: ...e any technical questions about the UNO 2050 or any other Advantech products please visit our support website at http www advantech com support For more information about Advantech s products and sales informa tion please visit http www advantech com ...

Страница 5: ...2 422 485 Interfaces 11 2 4 On board Isolated Digital Input 12 2 5 On board Isolated Digital Output 16 2 6 On board Isolated Counter Timer 18 2 7 LAN Ethernet Connector 24 2 8 Power Connector 24 2 9 LED Indicators 24 2 10 PS 2 Keyboard and Mouse Connector 24 2 11 VGA VGA Display Connector 25 2 12 Programmable LED and Buzzer for System Diagnosis 25 2 13 RESET Reset Button 26 Chaper 3 Initial Setup ...

Страница 6: ...andard RS 232 Serial Port COM1 C0M2 34 A 3 Isolated 5 wire RS 232 422 485 Serial Port COM3 COM4 35 A 4 Ethernet RJ 45 Connector LAN1 LAN2 38 A 5 Phoenix Power Connector CN3 39 A 6 PS 2 Keyboard and Mouse Connector KM1 39 A 7 VGA Display Connector VGA1 40 A 8 CompactFlashTM Master Slave Jumper Setting JP2 41 A 9 Enhanced IDE connctor CN2 42 A 10 LCD connector CN7 Reserved 43 A 11 UNO 2050 Control R...

Страница 7: ...Digital output connector pin assignments 16 Figure 2 6 Isolated digital output connection 17 Figure 2 7 Counter 0 function block 19 Figure 2 8 Counter 1 function block 20 Figure 2 9 32 bit Counter function block 20 Figure 3 1 Chassis Grounding connection 28 Figure A 1 UNO 2050 connector and jumper locations Top View 32 Figure A 2 UNO 2050 connector and jumper locations Bottom View 32 Figure A 3 RS...

Страница 8: ...upt flag control bit 23 Table 2 15 32 bit counter control bit 23 Table 2 16 LED and Buzzer control register bit map 25 Table 2 17 Programmable LED control bit 26 Table 2 18 Programmable Buzzer control bit 26 Table A 1 UNO 2050 connectors and jumpers 33 Table A 2 RS 232 serial port pin assignments 34 Table A 3 Isolated 5 wire RS 232 422 485 serial port pin assignments 35 Table A 4 Jumpers to select...

Страница 9: ...apter gives background informa tion on the UNO 2050 It shows you the UNO 2050 overview and specifications Sections include Introduction Hardware Specifications Safety Precautions UNO 2050Series Chassis Dimension 1 C H A P T E R ...

Страница 10: ...rating the services on Network enabled Application Ready Platform total solution Leveraging field approved and worldwide awareness real time OS technology Advantech UNO 2000 series provides Windows CE NET ready solution and support several standard networking interfaces such as Ethernet Wireless LAN RS 232 422 485 and so on Because of its openness great expansion capability and reliable design fan...

Страница 11: ...768 16 bpp DB 15 VGA connector Serial Port Two standard RS 232 ports Data bits 5 6 7 8 Stop bits 1 1 5 2 Parity none even odd Speed 50 115 2 Kbps Datasignals TxD RxD RTS CTS DTR DSR DCD RI GND Max data distance 50 feet 15 2 meters Serialport 2x5 wireRS 232 422 485 Automatic RS 485 data flow control 2000 VDC surge protection and 1500 VDC isolation Stop bits 1 1 5 2 Parity non even odd RS 232 Speed ...

Страница 12: ...ction and 70 VDC over voltage protection 0 50 VDC input range and 10 KHz speed Input Voltage Logic 0 0 3 VDC Logic 1 10 50 VDC Input Current 10 VDC 1 7 mA typical 12 VDC 2 1 mA typical 24 VDC 4 4 mA typical 48 VDC 9 0 mA typical 50 VDC 9 4 mA typical Interrupt handling capability Plug in screw terminal block Accepts 0 5 mm2 to 2 5 mm2 1 12 or 2 14 to 22 AWG 8 ch isolated digital output DO0 DO7 2 0...

Страница 13: ...or installation of one standard 2 5 HDD LED One power LED one IDE LED one programmable LED and one programmable buzzer Keyboard Mouse connector Mini DIN connector supports PS 2 keyboard and a PS 2 mouse Power supply voltage 9 36 VDC reversed wiring protection Power Consumption 0 6 A max under 24 V power input or 1 2 A max under 12 V power input Power Requirement 1A typical under 24 V power input o...

Страница 14: ...never you are working on it Do not connect while the power is on A sudden rush of power can damage sensitive electronic components Only experienced electronics personnel should open the chassis Caution Always ground yourself to remove any static electric charge before touching UNO 2050 Modern electronic devices are very sensitive to static electric charges Use a grounding wrist strap at all times ...

Страница 15: ... the following materials have been received Commonparts Warranty certificate Software Supporting CD ROM 6P 6P 6P 20cm KB and PS 2 Mouse Y cable P N 1700060202 Plug inBlock2PFemale P N1652002205 DIN railmountingaccessory 1997001110 1997001120 1997001130 1997001140 ForUNO 2050CEonly Built in 32 MB CompactFlashTM card with Microsoft Windows CE OS End User License Agreement for Windows CE If any of th...

Страница 16: ...8 UNO 2050 User s Manual 1 5 Chassis Dimensions Figure 1 1 Chassis dimensions ...

Страница 17: ...als COM 1 COM 2 RS 232 Interfaces COM 3 COM 4 Isolated 5 wire RS 232 422 485 Interfaces On board Isolated Digital Input On board Isolated Digital Output On board Isolated Counter Timer LAN Ethernet Connector Power Connector LED Indicators PS 2 Keyboard and Mouse Connector VGA VGA Display Connector Programmable LED and Buzzer for System Diagnosis RESET Reset Button 2 C H A P T E R ...

Страница 18: ...owing sections give you detail information about function of each peripheral Figure 2 1 UNO 2050 front panel Figure 2 2 UNO 2050 rear panel 2 2 COM1 COM2 RS 232 Interfaces The UNO 2050 offers two standard RS 232 serial communication interface ports and they are COM1 and COM2 Please refer to A 2 for its pin assignments ...

Страница 19: ...h Oxford OX16PCI964 UARTs containing 128 bytes FIFOs These upgraded FIFOs greatly reduce CPU overhead and are an ideal choice for heavy multitasking environments Automatic Data Flow Control Function for RS 485 In RS 485 mode UNO 2050 automatically senses the direction of incoming data and switches its transmission direction accordingly Therefore no handshaking signal e g RTS signal is necessary Th...

Страница 20: ...or pin assignments Table 2 2 Digital input connector signal description Isolated Inputs Each of isolated digital input channels accepts 10 50 VDC voltage inputs and accepts bi directional input It means that you can apply positive or negative voltage to an isolated input pin Vin All eight channels share one common pin COM Figure 2 4 shows how to connect an external input source to one of the UNO 2...

Страница 21: ...nction of the DI signals DI0 and DI1 can be used to generate hardware interrupts A user can setup the configuration of interrupts 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 setting the Interrupt Control Register of the UNO 2050 When the interrupt reques...

Страница 22: ...le being read it is used as a status register Table 2 3 Interrupt control register bit map DI0EN DI1EN DI0 DI1 Interrupt disable enable control bit DI0TE DI1TE DI0 DI1 Interrupt triggering edge control bit DI0F DO1F DI0 DI1 interrupt flag bit Interrupt Enable Control Function The user can choose to enable or disable the interrupt function by writing its corresponding value to the interrupt disable...

Страница 23: ...le 2 5 Table 2 5 Interrupt triggering edge control bit values Interrupt Flag Bit The interrupt flag bit is a flag indicating the status of an interrupt It is a readable writable bit To find the status of the interrupt you have to read the bit value to clear the interrupt you have to write 1 to this bit This bit must first be cleared to service the next coming interrupt Table 2 6 Interrupt flag bit...

Страница 24: ...nnector signal description Power On Configuration Default configuration after power on or hardware reset is to set all the isolated digital output channels to open status the current of the load can t be sink so that users need not worry about damaging external devices during system startup or reset When the system is hot reset then the status of isolated digital output channels are selected by ju...

Страница 25: ...as an output channel the current will flow from the external voltage source to the UNO 2050 Please take care that the current through each DO pin not exceed 200 mA Figure 2 6 shows how to connect an external output load to the UNO 2050 s isolated outputs Please note that DO6 and DO7 may be configured as Counter 0 and Counter 1 s output pins please refer to section 2 6 for detail Figure 2 6 Isolate...

Страница 26: ...e Counter Timer Control Register controls the function and status of each counter timer signal source Table 2 9 shows the bit map of the Counter Timer Control Register The register is readable writable register While being written it is used as a control register and while being read it is used as a status register Table 2 9 Counter Timer control register bit map Base Address 7 6 5 4 3 2 1 0 Base ...

Страница 27: ...ter 1 output destina tion control bit CTR0IntSet CTR1IntSet Counter 0 and Counter 1 interrupt control bit S0 S1 Counter 0 and counter 1 internal clock control bit CTR32Set Cascaded 32 bit counter control bit Counter 0 Function Block Figure 2 7 Counter 0 function block DI4 CTR0Gate CTR0GateSet Gate Out Cou nter0 CLK CTR0OutSet DO6 CTR0OUT DI6 CTR0CLKSet 100KHz 10KHz 1KHz 100Hz S1S0 CTR0CLKSet 0 CTR...

Страница 28: ...CT R 1GateS et 0 CT R 1GateS et 1 CT R 1OutS et 0 Disable CT R 1OutS et 1 Output to DO6 CT R 1IntS et CT R 1F CT R 1OutS et 0 Diable Interrupt CT R 1OutS et 1 Enable Interrupt Interrupt Circuit DI5 CT R 1Gate CT R 1GateS et Gate Out Counter 1 CLK CT R 1OutS et DO7 CT R 1OUT DI7 CT R 1CLKS et 100KHz 10KHz 1KHz 100Hz S 1S 0 CT R 1CLKS et 0 CT R 1CLKS et 1 CT R 1GateS et 0 CT R 1GateS et 1 CT R 1OutS...

Страница 29: ...er clock source There are two clock sources available for the user counters by setting counter clock control bits CTR0CLKSet and CTR1CLKSet Table 2 10 Counter clock source control bit Counter internal clock There are four frequency options to choose according to applications and it s set by internal clock control bits S0 and S1 Table 2 11 Counter internal clock control bit S1 S0 Time base 0 0 100K...

Страница 30: ...ng Output Destination control bits CTR0OutSet and TR1OutSet Table 2 13 Counter output destination Gate Source control bit CTR0GateSet 0 Gate source from CTR0Gate control bit Default 1 Gate source from digital input 4 DI4 channel CTR1GateSet 0 Gate source from CTR1Gate control bit Default 1 Gate source from digital input 5 DI5 channel Output Destination control bit CTR0OutSet 0 Output destination t...

Страница 31: ...nerate interrupt signal by configuring CTR0IntSet and CTR1IntSet control bit Table 2 14 Counter interrupt flag control bit Cascaded 32 bit Counter You can also cascade counter 0 and counter 1 together as one 32 bit counter timer and it s configured by the control bit CTR32Set Table 2 15 32 bit counter control bit CTR0F CTR1F Counter Interrupt Status Read 0 No interrupt 1 Interrupt occur Write 0 Do...

Страница 32: ...res reversed wiring protection There fore it will not cause any damage to the system by reversed wiring of ground line and power line Please refer to A 5 for its pin assignments 2 9 LED Indicators There are two LEDs on the UNO 2050 front panel for indicating system status PWR LED is for power status and IDE LED is for IDE bus status 2 10 PS 2 Keyboard and Mouse Connector The UNO 2050 provides a PS...

Страница 33: ...ys a big problem to know the system status Another PC may be needed to monitor headless device status via RS 232 or Ethernet In order to solve this problem UNO 2050 offers a programmable LED indicator and buzzer Hence they can be programmed to show a system s status by LED indicator flickering and buzzer alarm Table 2 16 LED and Buzzer control register bit map LED and Buzzer Control Register LEDEn...

Страница 34: ...g 0 1 Normal flickering 1 0 Slow flickering 1 1 Buzzer alarming SPKS1 SPKS0 Beep on 0 0 Short beep 0 1 Normal beep 1 0 Long beep 1 1 Table 2 17 Programmable LED control bit Table 2 18 Programmable Buzzer control bit 2 13 RESET Reset Button Press RESET button will activate a reset function ...

Страница 35: ...ws how to initial the UNO 2050 sections include Sections include Insert CompactFlash Card Chassis grounding Connect the Power Plug in Screw Terminal Block Field Wiring Considerations BIOS Setup and System Assignments 3 C H A P T E R ...

Страница 36: ...ack the rear panel with four screws 3 2 Chassis Grounding The UNO 2050 housing is aluminum material that provides good EMI protection and a stable system grounding base There is an easy to connect chassis grounding point for you to connect to the Earth Users can select if connecting power grounding with chassis ground ing with an onboard jumper selection Please connect chassis ground of UNO 2050 w...

Страница 37: ...al block for the interface between I O modules and field devices The following information must be considered when connecting electrical devices to I O modules 1 The terminal block accepts wires from 0 5 mm to 2 5 mm 2 Always use a continuous length of wire Do not combine wires to make them longer 3 Use the shortest possible wire length 4 Use wire trays for routing where possible 5 Avoid running w...

Страница 38: ...nual folder on the CD ROM Please note that you can try to LOAD BIOS DEFAULTS from BIOS Setup manual if the UNO 2050 does not work properly 3 6 HDD Extension Flexibility Although UNO 2050 is an embedded platform there is reserve flexibility to install one 2 5 HDD Some customers want to install a popular operating system like Windows NT 2000 or need for larger data storage capability UNO 2050 is als...

Страница 39: ...dard RS 232 Serial Port Isolated5 wireRS 232 422 485Serial Port Ethernet RJ 45 Connector Phoenix Power Connector PS 2 Keyboard and Mouse Connector VGA Display Connector CompactFlashTM Master Slave Jumper Setting Enhanced IDE connctor LCD connector Reserved Audio connector Reserved A A P P E N D I X ...

Страница 40: ... UNO 2050 board The following sections tell you how to configure the UNO 2050 hardware setting Figure A 1 and figure A 2 show the locations of UNO 2050 connectors and jumpers Figure A 1 UNO 2050 connector and jumper locations Top View Figure A 2 UNO 2050 connector and jumper locations Bottom View 59 ...

Страница 41: ...Isolated digital output connector D5 Power IDE LED D6 Power LED D19 Diagnostic LED J1 Reset button JP1 System grounding mode JP2 CompactFlash IDE Primary Master Slave jumper JP4 COM3 5 wire RS 232 422 485 selection JP5 COM4 5 wire RS 232 422 485 selection JP7 RS 422 485 terminal resistor setting JP10 Isolated digital input connector JP12 Digital output power on configuration KM1 PS 2 keyboard and ...

Страница 42: ...0 User s Manual A 2 Standard RS 232 Serial Port COM1 C0M2 Pin Assignments Table A 2 RS 232 serial port pin assignments Pin RS 232 Signal Name 1 DCD 2 RxD 3 TxD 4 DTR 5 GND 6 DSR 7 RTS 8 CTS 9 RI 1 2 3 4 5 6 7 8 9 ...

Страница 43: ... RxD NC 5 GND GND GND Note NC represents No Connection RS 232 422 485 Selection COM3 and COM4 support 5 wire RS 232 RS 422 or RS 485 interfaces and you can set corresponding jumpers to select serial ports as RS 232 or RS 422 485 interfaces shown in Table A 4 The system detects RS 422 or RS 485 signals automatically in RS 422 485mode Table A 4 Jumpers to select 5 wire RS 232 422 485 Serial Port Cor...

Страница 44: ...transmission No handshaking is necessary In RS 422 if DIP switche is set to On the driver is always enabled and always in high or low status Table A 5 RS 485 auto flow control mode and RS 422 master slave mode selection SW1 DIP switch setting Description COM3 RS 485 Auto flow control RS 422 Slave mode COM4 RS 485 Auto flow control RS 422 Slave mode COM3 RS 485 N A RS 422 Master mode COM4 RS 485 Au...

Страница 45: ...smit and receive data Handshaking signals such as RTS Request To Send in RS 232 are normally used to control the direction of the data flow and to switch the transmission accordingly In RS 485 mode the UNO 2050 automati cally senses the direction of the data flow and switches the transmis sion direction no handshaking is necessary This means a user can build an RS 485 network with just two wires T...

Страница 46: ...re A 3 RS 485 Wiring topology A 4 Ethernet RJ 45 Connector LAN1 LAN2 Ethernet RJ 45 Connector Pin Assignments Table A 7 Ethernet RJ 45 connector pin assignments Pin 10 100Base T Signal Name 1 XMT 2 XMT 3 RCV 4 NC 5 NC 6 RCV 7 NC 8 NC ...

Страница 47: ...ents Table A 8 Phoenix power connector pin assignments Pin Signal Name 1 10 30 VDC 2 GND A 6 PS 2 Keyboard and Mouse Connector KM1 PS 2 KB MS Connector Pin Assignments Table A 9 Keyboard and Mouse connector pin assignments Pin Signal Name 1 KB DATA 2 MS DATA 3 GND 4 VCC 5 KB CLOCK 6 MS CLOCK 6 5 4 2 1 3 ...

Страница 48: ...ts SVGA controller It supports interlaced and non interlaced analog monitors color and monochrome VGA in high resolution modes while maintaining complete IBM VGA compatibility Digital monitors i e MDA CGA and EGA are NOT supported Multiple frequency multisync monitors are handled as if they were analog monitors Display memory With 1 4 MB share memory the VGA controller can drive CRT displays or co...

Страница 49: ... CompactFlash type I 3mm thick only and External CompactFlash card slot supports both Type I and type II 5mm thick cards A 32 MB CompactFlash card is equipped in the UNO 2050CE with Windows CE NET OS For UNO 2050 there is no CompactFlash card on the slot UNO 2050 also supports IBM Microdrive storage device which is an ultra miniature hard disk from IBM that was introduced in 1998 The Microdrive is...

Страница 50: ... 10 2 9 DATA 4 2 10 DATA 11 2 11 DATA 3 2 12 DATA 12 2 13 DATA 2 2 14 DATA 13 2 15 DATA 1 2 16 DATA 14 2 17 DATA 0 2 18 DATA 15 2 19 SIGNAL GND 20 N C 21 DMA REQUEST 22 GND 23 IO WRITE 2 24 GND 25 IO READ 2 26 GND 27 IO CHANNEL 28 GND 1 READY 29 HDACK 30 GND 31 IRQ 32 N C 33 ADDR 1 34 N C 35 ADDR 0 36 ADDR 2 37 HARD DISK 38 HARD DISK SELECT 0 2 SELECT 1 2 39 IDE ACTIVE 40 GND 41 VCC 42 VCC 43 GND ...

Страница 51: ...Name 1 NC 2 NC 3 GND 4 GND 5 5V 6 5V 7 NC 8 GND 9 3 3V 10 3 3V 11 PD0 12 PD1 13 PD2 14 PD3 15 PD4 16 PD5 17 NC 18 NC 19 PD6 20 PD7 21 PD8 22 PD9 23 PD10 24 PD11 25 NC 26 NC 27 PD12 28 PD13 29 PD14 30 PD15 31 PD16 32 PD17 33 GND 34 GND 35 FSCLK 36 FVSYNC 37 ENDISP 38 FHSYNC 39 FPEN 40 VBIASEN 41 NC 42 NC 43 GND 44 5V ...

Страница 52: ...for an attached active matrix TFT flat panel This represents a delayed version of the input flat panel horizontal sync signal with the appropri ate pipeline delay relative to the pixel data FPEN Flat Panel Display Enable Output This is the display enable for an attached active matrix TFT flat panel This signal qualifies active pixel data on the flat panel interface ENDISP Display Enable Input This...

Страница 53: ... DI0TE Base 07H R W Interrupt Flag Clear Register CTR1F CTR0F DI1F DI0F Base 08H R W 82C54 Chip Counter0 Register Base 09H R W 82C54 Chip Counter1 Register Base 0BH R W 82C54 Chip Control Register Base 0CH R W Counter0 Start Control Output Status Register CTR0Out CTR0Gate Base 0DH R W Counter1 Start Control Output Status Register CTR1Out CTR1Gate Base 0EH R W Counter0 Setting Register CTR0IntSet C...

Страница 54: ...4 6 UNO 2050 User s Manual ...

Отзывы: