Benutzeranleitung / Produktwartung PCM-3780 des Produzenten Advantech
Zur Seite of 70
PCM-3780 2-ch Counter/Time r with 24-ch TTL DIO Module User Manual.
PCM-3780 User Manual ii Copyright The documentation and th e software included with this product are copy- righted 2006 by Advantech Co., Lt d. All rights are reserved. Advantech Co., Ltd. reserves the right to make improvements in the products described in this manual at any time wi thout notice.
iii T wo Y ears Product W arranty Advantech warrants to you, the original purchaser , that each of its prod- ucts will be free from defects in mat erials and workm anship for two years from the date of purchase.
PCM-3780 User Manual iv CE Notificatio n The PCM-3780, developed by Advantech Co., Ltd., has passed the CE test for environmental specifications when shielded cab les are used for external wiring. W e reco mmend the use of shielded cables. This kind of cable is available from Advantech.
v Packing List Before setting up the system, check that the items listed below are included and in g ood condition. If any item d oes not accord w ith the table, please contact y our dealer immediately .
PCM-3780 User Manual vi.
vii Contents Chapter 1 Introd uction ..................................................... 2 1.1 Features ........... ................. ............. ............ .......... ...... 2 Table 1.1:PCM-3780 Co unter Mode .............. ......... ...... 3 Table 1.
PCM-3780 User Manual viii 3.6.2 Usi ng Direct I/O ........... ........ ............ ........... ......... ........ 24 Figure 3.5:Frequenc y Measurement ........... ........... ...... 24 Appendix A Specifications .......................................
2 CHAPTER 1 Introduction This chapter provides an introduction to the PCM-3780. Sections include: • Introduction • Features • Application s • Installation Guide • Accessories.
PCM-3780 User Manual 2 Chapter 1 Introduction Thank you for buying the Adva ntech PCM-3780. The PCM-3780 is a general purpose m ultiple channel cou nter/timer card for the PC/ 104 bus. It targets the AM9513 to implement the counter/timer functio n by CPLD.
3 Chapter 1 Counter Modes (N: No gate control, L: Level gate control, E: Edge gate control ) T able 1.1: PCM-3780 Count er Mode Counter Mode A B C D E F G H I J K L Special Gate (CM6) 0 0 0 0 0 0 0 0 .
PCM-3780 User Manual 4 Note: For detailed s pecifications of the PCM-3780, please refer to Appendix A Specifications . T able 1.2: PCM-3780 Count er Mode Counter Mode M N O P Q R S T U V W X Special G.
5 Chapter 1 1.2 Applications • Event counting • One shot output • Programmable frequency output • Frequency measurement • Pulse width measurement • PWM output • Periodic interrupt generation • T ime-delay generation 1.
PCM-3780 User Manual 6 Figure 1.1: Installation Flow Chart Install Driver from CD-ROM Install Hardware on PC Use driver utility to conf igure har dware Use test utility to test hardw are Re ad e xam p.
7 Chapter 1 1.4 Sof tware Overview Advantech offers a rich set of DLL dr ivers, third-party driver su pport and application softw are to help fully utilize th e functions of your PCM-3 780 card: 1.
PCM-3780 User Manual 8 1.5 Device Drivers Programming Roadmap This section will pro vide a roadmap to demonstrate how to build an appli- cation from scratch using Advantech Device Drivers wit h your favorite development tools such as V isual C ++, V isual Basic, Delphi and C++ Builder .
9 Chapter 1 1.5.2 Programming with Device Drivers Functio n Library Advantech Device Drivers of fers a rich function library to be utilized in various app lication prog rams. This f u nction library consists of numerous APIs that support m any development tools, such as V isu al C++, V isual Basic, Delphi and C++ Builder .
PCM-3780 User Manual 10 1.6 Accessories Advantech offers a complete set of accessory products to support the PCM-3780 card. These accessories include: 1.6.1 Wiring Cables • PCL-10120 PCL-10120 cable is a 20-pin flat cable for PCM-3780 cards. • PCL-10150 PCL-10150 cable is a 50-pin flat cable for PCM-3780 cards.
2 CHAPTER 2 Hardware Inst allation This chapter provides a packaged items checklist, proper instructio ns about unpacking and step-by-step procedures for card hardware installatio n.
PCM-3780 User Manual 12 Chapter 2 Hardware Inst allation 2.1 Unp acking After receiving your PCM-3780 package, please inspect its contents first. The package should contai n the followin g items: • .
13 Chapter 2 2.2 Driver Inst allation W e recommend you to install the driver before you instal l the PCM-3780 card into your system, since thi s will guarantee a smooth installation pro- cess. The Advantech Device Drivers Setup program for the PCM-3780 card is included on the companion CD-ROM th at is shipped with your DA&C card package.
PCM-3780 User Manual 14 St e p 3 : Select the Individual Drivers opt ion. St e p 4 : Select the specific device then ju st follow the installat ion instruc- tions step by step to complete your devi ce driver setup.
15 Chapter 2 2.3 Hardware Inst allation For more information about the driver installat ion, configuration and removal procedures for W indows 2000 and W i ndows XP , please see the corresponding help file: After the DLL driver installation is completed , you can go on to install the PCM-3780 card in one of the PC/104 I slots on your computer .
PCM-3780 User Manual 16.
2 CHAPTER 3 Pin Assignment s & Jumper Settings This chapter provides u seful inform a- tion about how to connect inpu t and output signals to the PCM-3 780 via the I/O connector .
PCM-3780 User Manual 18 Chapter 3 Pin Assignment s & Jumper Settings 3.1 Overview Maintaining si gnal connections is one of the most important factors in ensuring that y our application system is se nding and receiving data cor- rectly . A good signal connection can avoid unnecessary and costly dam- age to your PC and other hardware devices.
19 Chapter 3 3.3 Switch and Jumper Settings W e designed PCM-3780 with ease-of-use in mind. It has one address switch and one interrupt jumper setting. The follow ing section describes how to configure the card. Interrupt Level (I RQ) Setting (JP1) Select an IRQ which is not already in us e by another card in the system.
PCM-3780 User Manual 20 Base Address Setting (SW1) Select an address which is not alread y in use by another card in the sys- tem. If you are installing more than one PCM-3780 card in your system, set the cards to dif ferent base addres ses. The base address configuration switch SW1 controls each card's ba se address, as shown below .
21 Chapter 3 3.4 Connectors Pin Assignment CN3: I/O Port Connector Figure 3.2: I/O Port Connector CN4: Counter Interface Connector Figure 3.3: Counter Interface Connector.
PCM-3780 User Manual 22 I/O Connector Signal Description T able 3.3: I/O Connector Signal Descriptions Signal Name Reference Direction Description GND - - DC ground +5V GND Output +5 VDC source FOUT<0..1> GND Output Frequency output chan- nels C_OUT<0.
23 Chapter 3 3.5 Period Measurement 3.5.1 Using Advantech 32-bit DLL Driv er This approach is for a low frequency sign al. W e recommend you to perform period measurement thro ugh our 32-bit DLL driver because it is the simp lest way for both programming and wiring.
PCM-3780 User Manual 24 3.6 Frequency Measurement 3.6.1 Using Advantech 32-bit DLL Driv er This approach is for a high frequency signal. Measuring pulse frequ ency is simple by usin g the Advantech 32-bit DLL driver . Just connect the unknown single to Gate and the pulse frequency will be measured by th e software.
2 APPENDIX A Sp ecifications This appendix provides detailed speci- fications for PCM-3780..
PCM-3780 User Manual 26 Appendix A Specifications A.1 Programmable Counter A.2 Digit al Input/Output Channels 2 Resolution 16-bit Comp atibility TTL level Max. Input Frequency 20 MHz Clock Input Low 0.8 V max. High 2.0 V min. Gate In put Low 0.8 V max.
27 Appendix A A.3 General I/O Connec tor T ype One 50 pin and one 20 pin box header Dimensions 90 x 96 mm (3.6" x 3.8") Power Consumption Ty p i c a l +5 V @ 300mA Max.
PCM-3780 User Manual 28.
2 APPENDIX B Block Diagram This chapter provides i nformation on the block diagram for PCM-37 80..
PCM-3780 User Manual 30 Appendix B Block Diagram.
2 APPENDIX C Register S tructure & Format This chapter provides i nformation on the register structure and format for PCM-3780..
PCM-3780 User Manual 32 Appendix C Register S tructure & Format C.1 Overview PCM-3780 is delivered with an easy -to-use 32-bit DLL driver for user programming under th e W indows 2000/XP operating system.
33 Appendix C C.2.1 Register Format T able C.1: Register Offset Address T able Base Address + HEX PCM-3780 Register Format 1 5 1 4 1 3 1 2 1 1 1 0 9 8 76543 2 1 0 00h W Counter 0 Mode Register CM 15 C.
PCM-3780 User Manual 34 22h W Counter Command Enable Register CE 1 CE 0 R Interrupt S tatus Register DI C DIB DIA C1 C0 24h W Interrupt Clear RN / A 2Ch W I /O Direction Control Register PA P C H PB P.
35 Appendix C C.3 Counter 0/1 Mode Register 1. CM1 to CM0: Output Control 00 = Active High T erminal Count Pulse 01 = Active Low T erminal Count Pulse 10 = TC T oggled from low 11 = TC T ogg led from high 2. CM2: Output Enable Control 0 = Disable Ou tput (High impedance) 1 = Enable Output 3.
PCM-3780 User Manual 36 CM3: 0 = Count Down 1 = Count Up 4. CM7: Count Source Edge 0 = Count on Rising Edge 1 = Count on Falling Edge 5. CM1 1 to CM 8: Count Source Selection 0000 = Internal Clock (20MHz) 0001 = OUT N-1 0010 = CLK N 001 1 = CLK N-1 0100 = FOUT0 0101 = FOUT1 0 111 = GA TE N-1 6.
37 Appendix C C.4 Counter 0/1 Load Register: 1. CL15 to CL0: Counter lo ad data C.5 Counter 0/1 Hold Register 1. CH15 to CH0: Counter hold data Base Address + HEX PCM-3780 Register Format 15 14 13 12 .
PCM-3780 User Manual 38 C.6 Counter 0/1 Command Register 1. C2 to C0 : Command Code 000 = Disarm counter 001 = Load counter from LOAD 010 = Disarm and Save counter 100 = Arm counter 101 = Load and Arm counter 11 0 = Save counter to HOLD 111 = Reset counter C.
39 Appendix C C.8 Interrupt Control Register 1. C1 to C0: Counter Interrupt enable Bit 0 = Not enable interrupt for this counter 1 = Enable interrupt for this counter 2. DIA, DIB and DIC: DI Interrupt enable Bit 0 = Not enable interrupt for DI 1 = Enable in terrupt fo r DI C.
PCM-3780 User Manual 40 C.10 Interrupt Clear Register W rite any data to these two bytes to clear the interrupt. C.1 1 I/O Directi on Control Register 1.
41 Appendix C C.13 FOUT Register 1. DV3 to DV0: FOUT Divider (Divide by 1 to 16) 0000 = Divide by 1 0001 = Divide by 2 0010 = Divide by 3 001 1 = Divide by 4 0100 = Divide by 5 0101 = Divide by 6 01 1.
PCM-3780 User Manual 42 2. FS2 to FS 0: FOUT Sour ce 001 = CLK N 010 = FOUT N-1 01 1 = 10 MHz clock 100 = 1 MHz clock 101 = 100 KHz clock 11 0 = 10 KHz clock 111 = 1KHz clock 3.
2 APPENDIX D W aveform of Each Mode The PCM-3780 offers 16 powerful counter functio ns for your industrial or laboratory applications. This chapter will describe each mode in detail with waveform d iagrams.
PCM-3780 User Manual 44 Appendix D W aveform of Each Mode D.1 Counter Mode Descriptions Counter Mode register bits CM15- CM12 and CM6-CM4 select the oper- ating mode for each counter (see T able D-1). T o simplify references to a particular mode, each mode is assigned a letter from A through X .
45 Appendix D (N: No gate control, L: Level gate control, E: Edge gate control ) T able D.1: PCM-3780 Count er Mode Counter Mode A B C D E F G H I J K L Special Gate (CM6) 0 0 0 0 0 0 0 0 0 0 0 0 R e .
PCM-3780 User Manual 46 Note: Counter modes M , N , P , Q , S , T , V , W are identical to A , B , D , E , G , H , J , K . T able D.2: PCM-3780 Count er Mode Counter Mode M N O P Q R S T U V W X Speci.
47 Appendix D D.2 Mode A W aveforms Software-T riggered S trobe with No Hardware Gating Mode A is one of the simplest operating modes. The counter will be available for counting source edges wh en it is issued an ARM command. On each TC the counter will reload from the Load register and automati- cally disarm itself, inhibit ing further counting.
PCM-3780 User Manual 48 D.3 Mode B W aveforms Software-T riggered S tro be with Level Gating Mode B is identical to Mode A except that source edges are counted only when the assigned gate is active. The counter must be armed before counting can occur .
49 Appendix D D.4 Mode C W aveforms Hardware-T riggered S trobe Mode C is identical to Mode A, except that counting will no t begin until a gate edge is applied to the armed cou nter . The counter must be armed before applicatio n of the triggerin g gate edge, while gat e edges applied t o a disarmed counter are disregarded.
PCM-3780 User Manual 50 D.5 Mode D W aveforms Rate Generator with No Hardwar e Gating Mode D is typically used in frequency generation appl ications. In this mode, the gate input does not affect counter operation. Once armed, th e counter will count to TC repetitively .
51 Appendix D D.6 Mode E W aveforms Rate Generator with Level Gating Mode E is identical to Mode D, except the counter will only coun t those source edges that occur while the gate input is active. Th is feature allows the counting process to be enabled and disabled under hardware cont rol.
PCM-3780 User Manual 52 D.7 Mode F W aveforms Non-Retriggera ble One-Shot Mode F provides a non-retriggerabl e, one-shot, timing function . The counter must be arm ed before it will fun ction. Applicati on of a gate edge to the armed counter will enable c ounting.
53 Appendix D D.8 Mode G W aveforms Software-T riggered De layed Pulse One-Shot In Mode G , the gate does no t affect the counter's operation. Once armed, the counter will count to TC twice and then autom atically disarm itself.
PCM-3780 User Manual 54 D.9 Mode H W aveforms Software-T riggered Delayed Pulse One-Shot with Hardwar e Gating Mode H is identical to Mode G except that the gate inpu t is used to qual- ify which source edges are to be count ed. The counter must be armed for counting to occur .
55 Appendix D D.10 Mode I W aveforms Hardware-T riggered Delayed Pulse S trobe Mode I is identical to Mo de G , excep t that counting will not begin unti l a gate edge is applied to an armed coun ter . The counter must be armed before application of the trigg ering gate edge.
PCM-3780 User Manual 56 D.1 1 Mode J W aveforms V ariable Duty Cycle Rate Generator with No Hardware Gat ing Mode J will find the greatest usage in frequency generatio n applications with variab le duty cy cle requirements. Once ar med, the count er will count continuousl y until it is issued a DISARM command.
57 Appendix D D.12 Mode K W a veforms V ariable Duty Cycle Rate Generator with Level Gating Mode K is identical to Mode J except that source edges are only counted when the Gate is active.
PCM-3780 User Manual 58 D.13 Mode L W aveforms Hardware-T riggered Delayed Pulse One-Shot Mode L is similar to Mode J except that counting will not begin before a gate edge is applied to an armed coun ter . The counter must be armed before application of th e triggering gate edge; g ate edges applied to a dis- armed counter are disregarded.
59 Appendix D D.14 Mode O W aveforms Hardware-T riggered S trobe with Edge Disarm Mode O, shown in Figure O, is identical to Mode C except that the counter will be disarmed while an in active-going gate edge is applied to the counter . And the counter will hold the count value until it is issued a LOAD command or REST command.
PCM-3780 User Manual 60 D.15 Mode R W a veforms Non-Retriggerbale One-Sh ot with Edge Disarm Mode R is identical to Mode F except that the counter will be disarmed while an inactive-going ga te edge is applied to the counter . The counter will hold the count value until it is issued a LOAD command or REST command.
61 Appendix D D.16 Mode U W a veforms Hardware-T riggered Delayed Pu lse S trobe with Edge Disarm Mode U is identical to Mode I except that the counter will be disarmed while the gate and inactive-going gate edge is applied to the counter . The counter will hold the count value unt il it is issued a LOAD command or REST command.
PCM-3780 User Manual 62 D.17 Mode X W a veforms Hardware-T riggered Delayed Puls e One-Shot with Edge Disarm Mode X is identical to Mode L excep t that the counter will be disarmed while an inactive-going ga te edge is applied to the counter . The counter will hold the count value until it is issued a LOAD command or REST command.
Ein wichtiger Punkt beim Kauf des Geräts Advantech PCM-3780 (oder sogar vor seinem Kauf) ist das durchlesen seiner Bedienungsanleitung. Dies sollten wir wegen ein paar einfacher Gründe machen:
Wenn Sie Advantech PCM-3780 noch nicht gekauft haben, ist jetzt ein guter Moment, um sich mit den grundliegenden Daten des Produkts bekannt zu machen. Schauen Sie zuerst die ersten Seiten der Anleitung durch, die Sie oben finden. Dort finden Sie die wichtigsten technischen Daten für Advantech PCM-3780 - auf diese Weise prüfen Sie, ob das Gerät Ihren Wünschen entspricht. Wenn Sie tiefer in die Benutzeranleitung von Advantech PCM-3780 reinschauen, lernen Sie alle zugänglichen Produktfunktionen kennen, sowie erhalten Informationen über die Nutzung. Die Informationen, die Sie über Advantech PCM-3780 erhalten, werden Ihnen bestimmt bei der Kaufentscheidung helfen.
Wenn Sie aber schon Advantech PCM-3780 besitzen, und noch keine Gelegenheit dazu hatten, die Bedienungsanleitung zu lesen, sollten Sie es aufgrund der oben beschriebenen Gründe machen. Sie erfahren dann, ob Sie die zugänglichen Funktionen richtig genutzt haben, aber auch, ob Sie keine Fehler begangen haben, die den Nutzungszeitraum von Advantech PCM-3780 verkürzen könnten.
Jedoch ist die eine der wichtigsten Rollen, die eine Bedienungsanleitung für den Nutzer spielt, die Hilfe bei der Lösung von Problemen mit Advantech PCM-3780. Sie finden dort fast immer Troubleshooting, also die am häufigsten auftauchenden Störungen und Mängel bei Advantech PCM-3780 gemeinsam mit Hinweisen bezüglich der Arten ihrer Lösung. Sogar wenn es Ihnen nicht gelingen sollte das Problem alleine zu bewältigen, die Anleitung zeigt Ihnen die weitere Vorgehensweise – den Kontakt zur Kundenberatung oder dem naheliegenden Service.