Home
User Manual of PCL711B DAS Board
Contents
1. format is as below BASE 10 Multiplexer Scan Control Write C2 Cl CO CH 0 0 0 0 0 0 1 1 0 1 0 2 0 i 1 3 1 0 0 4 1 0 1 5 1 1 0 6 1 1 1 7 16 PCL 711B Controlling the PCL 711B 3 2 4 Mode and Interrupt Control Register The PCL 711B s A D conversion can be triggered in one of the following three ways By software Writing any data to BASE 12 will generate a trigger pulse to the PCL 711B s on board A D converter By the on board clock pacer The PCL 711B is equipped with a Intel 8253 a programmable interval timer counter to generate precise clock output pacer The pacer clock rate of the PCL 711B is between 0 5MHz and 35 minutes per pulse See section 3 7 for details on programming the Intel 8253 timer counter By external pulse The PCL 711B allows users to use external signal from D I 0 Pin 1 of the connector CN4 as the A D trigger pulse The A D conversion will be triggered at the rising edge of the external signal Also the PCL 711B provides two ways to transfer the converted A D data to certain variables By software control foreground The software control data transfer utilizes advantage of the foreground polling concept After the A D converter has been triggered the application program should keep checking the DRDY bit of I O port BASE 5 until the DRDY bit is detected as 0 Then the program should read data from BASE 4 and BASE 5 to get the whole converted data By interrupt ba
2. the output s state will be changed The counter will be reloaded with the full count repeating the entire process If the count value is odd and the output high then the first clock pulse after the count is loaded decrements the count by one Subsequent clock pulses will decrement the count by two After a timeout period the output is set low and the full count value is then reloaded The clock pulse following the reload decrements the counter by three Subsequent clock pulses decrement the count by two until a timeout occurs then the whole process is repeated In this way if the count value is odd the output will be set high for N 1 2 counts and low for N 1 2 counts B 1 5 Mode 4 Software Triggered Strobe Mode 4 sets the counter timer s output high When the count value is loaded the counter begins counting The output will be set low for one input clock period when the terminal count is reached after which it will be set high again If the count register is reloaded during counting the new count will be loaded on the next clock pulse Also the count will be inhibited while the gate input is low B 1 6 Mode 5 Hardware Triggered Strobe When in Mode 5 the counter will start counting after the trigger input s rising edge and will then be set low for one clock period when the terminal count is reached The counter is retriggerable in this mode 30 PCL 711B Intel 8253 Reference B 2 Counter Control Regi
3. Adjust VR1 until the reading of your voltmeter equals to VREF reference voltage of D A output with opposite sign 2 Offset adjustment The D A digital data is sent to 0 Adjust VR2 until the reading of your voltmeter is 0 volts A 3 A D Calibration Because the PCL 711B supports versatile A D input ranges accurately calibrated result for certain A D range may still cause a small offset for the other ranges It is suggested that you make a calibration again when you are going to use different A D input range Calibration steps 1 Short the A D input of Channel 0 to AGND Then adjust the VR3 until the reading of the A D conversion flickers between 2047 and 2048 2 Apply a voltage with the full sacle value corresponding to the specific A D input range to A D Channel 0 Then adjust the VR4 until the reading of A D conversion flickers between 4094 and 4095 27 APPENDIX B INTEL 8253 REFERENCE B 1 Operation Modes B 1 1 Mode 0 Stop on Terminal Count In Mode 0 the counter timer s output will initially be set low The output will remain low and the counter will start to count after the count has been loaded into the selected count register When the terminal count has been reached the output will be set high and remain high until the selected counter is reloaded with this mode or a new count has been loaded The counter will continue to decrement after the terminal count has been reached Rewriting data to a count
4. 53 a 16 bit programmable counter timer to generate pacer clock Each Intel 8253 provides three independent counter timer channels Counter 0 Counter 1 and Counter 2 The PCL 711B cascades Counter 1 and Counter 2 as a 32 bit frequency divider to support wide range of pacer clock rate as shown below UCC COUNTER 2 COUNTER 1 PACER i NM SEG Intel 8253 has six operation modes from Mode 0 through Mode 5 To generate pacer clock both Counter 1 and Counter 2 should be programmed as Mode 2 rate generator mode Four I O ports from BASE 0 through BASE 3 are used to program the on board Intel 8253 BASE 0 Counter 0 Read Write BASE 1 Counter 1 Read Write BASE 2 Counter 2 Read Write BASE 3 Counter Control Write only 22 PCL 711B Controlling the PCL 711B Please refer to the following steps to set desired pacer clock rate Step 1 Write 74H to BASE 3 to make Counter 1 work at Mode 2 Step 2 Write an appropriate data 16 bit data ranging from 2 to 65535 to BASE 1 to set Counter 1 s divisor constant C1 Since Cl is a 16 bit data you have to first write the low byte of Cl to BASE 1 then write the high byte of C1 to BASE 1 Step 3 Write BAH to BASE 3 to make Counter 2 work at Mode 2 Step 4 Write an appropriate data 16 bit data ranging from 2 to 65535 to BASE 1 to set Counter 1 s divisor constant C2 Since C2 is a 16 bit data you have to first write the low byte of C2 to BASE 2 then
5. Controlling the PCL 711B PCL 711B 3 2 A D Conversion 3 2 1 A D Data Registers The PCL 711B uses the data registers located at I O ports BASE 4 and BASE 5 to store the converted A D data The low byte data is stored at BASE 4 and the high byte data is stored at BASE 5 BASE 4 A D Low Byte Data Read BASE 5 A D High Byte Data Read o o o Prev Where ADO through AD11 Represent the PCL 711B s A D data bits ADO is the Least Significant Bit LSB and AD11 is the Most Significant Bit MSB DRDY Data ready bit When A D conversion is in progress this bit remains as 1 It becomes 0 when the A D conversion is completed It will become to 1 after reading the low byte A D data from BASE 4 14 PCL 711B Controlling the PCL 711B 3 2 2 Gain Control Register BASE 9 is used to set the PCL 711B s amplification gain for A D conversion The PCL 711B provides five different gains x1 x2 x4 x8 and x16 The following tables outline BASE 9 s register format and corresponding gain settings BASE 9 Gain Control Register Write G2 Gl G0 GAIN 0 0 0 xl 0 0 x2 0 1 0 x4 0 1 1 x8 l 0 0 x16 15 Controlling the PCL 711B PCL 711B 3 2 3 Multiplexer Scan Register The PCL 711B can multiplex up to 8 channels of analog input Users have to set this register located at BASE 10 to select to the desired channel which is going to be measured before performing any A D conversion The register
6. ckground The PCL 711B also provides background data transfer support if it is programmed to be in the interrupt data transfer mode If the PCL 711B is in interrupt data transfer mode it will generate an interrupt to your PC after each A D conversion is completed The corresponding ISR interrupt service routine should handle everything to transfer the converted data to memory variables in your program 17 Controlling the PCL 711B PCL 711B I O port BASE 11 is used to set the PCL 711B s operation mode and the IRQ level The register format is as following BASE 11 Mode and Interrupt Control Register Write SO to S2 mode selection Let i S W trigger with S W data transfer o o Extemal trigger with S W data transfer o 1 external trigger with INT data transfer 1 o o Pacer trigger with S W data transfer EERTE 1 Reserved Eee Pacer trigger with INT data transfer Note xternal trigger signal go through DIO of CN4 IO to I2 IRQ level selection 12 Il 10 Interrupt Level 0 0 0 IRQ2 0 0 1 N A 0 1 0 IRQ2 0 1 1 IRQ3 1 d 0 IRQ4 1 0 1 IRQ5 1 1 0 IRQ6 1 1 1 IRQ7 p Wal PCL 711B Controlling the PCL 711B 3 2 5 Interrupt Status Register If the PCL 711B is in interrupt data transfer mode a hardware status flag will be set after each A D conversion Users have to clear the status flag by writing any data to BASE 8 to let the PCL 711B accept next interrupt BASE 8 Clea
7. er register during counting generates the following results 1 Writing to the first byte stops the current count 2 Writing to the second byte starts a new count B 1 2 Mode 1 Programmable One Shot When in this mode the output will be set low on the count that follows the gate input s rising edge The output goes high on the terminal count If a new count value is loaded while the output is set low then it will not affect the duration of the one shot pulse until after the succeeding trigger The current count can be read at any time without affecting the one shot pulse The one shot is retriggerable This allows the output to remain low for the full count after any rising edge from the gate input B 1 3 Mode 2 Rate Generator When in Mode 2 the counter timer s output will be set at low for one period of the input clock The period from one output pulse to the next is equal to the number of input counts in the counter register If the counter register is reloaded between output pulses the present period will not be affected 29 Intel 8253 Reference PCL 711B B 1 4 Mode 3 Square Wave Generator This mode is similar to Mode 2 with the exception that the output remains high until one half of the count value has been completed for even values and then low for the other half of the count This is accomplished by decreasing the counter by two on the falling edge of each clock pulse When the counter reaches the terminal count
8. formed using the CAL711B EXE program This program will lead you through the calibration and set up procedure with variety of prompts and graphic displays directing you to correct settings and adjustment the variable resistors The explanatory material in this section is brief and is intended for use in conjunction with the calibration program A 1 VR Assignments The PCL 711B has five on board VRs which allow you to make accurate calibration adjustments for the card s A D and D A functions Each VR s location is indicated in Figure A 1 The function of each VR is listed below VRI D A full scale adjustment VR2 D A offset adjustment VR A D offset adjustment VR4 A D full scale adjustment VRS Programmable amplifier offset adjustment 25 PCL 711B Calibration 07 1 ON ILL un pan En On tan EI e nS nat tdf IMS PNI ENO Ge T 431 W Jd 4N04 tw nad aT Td 6 ind 979 ENI Z NI 9 70 HN T eg Figure A 1 VR location 26 PCL 711B Calibration A 2 D A Calibration The user should first choose the D A output range to be calibrated by setting the J1 5V or 10V The zero offset and full scale of D A channel can be tuned through two VRs VR1 is for the full scale adjustment of D A and VR2 is for the zero offset adjustment of D A The user should use a precision voltmeter to measure the D A output Calibration steps 1 Full scale adjustment The D A digital data is sent to 4095
9. r Interrupt Status Write 3 2 6 Software Trigger Register Writing any data to BASE 12 will generate a trigger pulse to the PCL 711B e A D converter BASE 12 Software A D Trigger Write 19 Controlling the PCL 711B PCL 711B 3 3 D A Conversion The PCL 711B provides one D A output channel The low byte and the high byte D A data are set via BASE 4 and BASE 5 respectively Since the PCL 711B uses so called double buffer D A output technology to avoid output glitch the low byte data should be written first and the high byte data second that is write BASE 4 first and BASE 5 second The D A output will not change until BASE 5 is updated BASE 4 D A Low Byte Data Write BASE 5 D A High Byte Data Write WE ee OO where DAO through DA11 the D A output data DAO represents the D A LSB data while DAI represents the D A MSB data 20 PCL 711B Controlling the PCL 711B 3 4 Digital Input and Output 3 4 1 Digital Input Registers The PCL 711B provides 16 bits of digital input The registers are located at BASE 6 and BASE 7 BASE 6 D I Low Byte Data Read DI9 3 4 2 Digital Output Registers The PCL 711B provides 16 bits of digital output The registers are located at BASE 13 and BASE 14 BASE 13 D O Low Byte Data Write Controlling the PCL 711B PCL 711B BASE 14 D O High Byte Data Write 3 5 Pacer Programming The PCL 711B uses an Intel 82
10. ster Format BASE 3 Counter Control Register Write Key SCT SCH COUNTER 0 0 0 0 1 1 0 0 2 1 1 illegal 0 0 Counter latch 0 0 Read Write LSB 0 1 Read Write MSB 1 1 Read Write LSB first then MSB 31 Intel 8253 Reference PCL 711B M2 M1 amp MO Select Operation Mode Interrupt on terminal count Programmable one shot Rate generator Square wave rate generator Software triggered strobe Hardware triggered strobe na amp WON amp Hou We i ue ul 0 16 bit binary counter 1 Binary coded decimal BCD counter with four decades The BCD is defaulted to count in binary mode The count can be set to any value from 0 up to 65535 If you set this bit to BCD logic 1 then the count may be set to any value from 0 up to 9999 32
11. write the high byte of C2 to BASE 2 The pacer rate is determined by the following formula Pacer rate 2 MHz C1 C2 In the following example written in BASIC C1 is set as 40 and C2 is set as 10 thus the pacer rate will be 5 KHz 5KHz 2MHz 40 10 500 OUT BASE 3 amp H74 Set Counter 1 as Mode 2 510 OUT BASE 1 40 write low byte of Cl 520 OUT BASE 1 0 write high byte of Cl 530 OUT BASE 3 amp HB4 Set Counter 2 as Mode 2 540 OUT BASE 2 10 write low byte of C2 550 OUT BASE 2 0 write high byte of C2 NOTE 1 Counter 0 is reserved to future developement NOTE 2 For more detailed information about Intel 8253 s register formats please refer to Appendix B 23 APPENDIX A CALIBRATION In data acquisition and control application it is important to constantly calibrate your measurement device to maintain its accuracy A calibration program CAL711B EXE is provided in the PCL 711B software disk to assist your calibration work Minimum equipment required to perform a satisfactory calibration is a 4 1 2 digit digital multimeter In addition a voltage calibrator or a stable noise free d c voltage source that can be used in conjunction with the digital multimeter is required A card extender such as the PC LabCard model PCL 757 is an inexpensive device that you will find greatly improves access to the board during calibration and will probably be useful with other boards Calibration is easily per
Download Pdf Manuals
Related Search
Related Contents
KCA-iP500 LH140 ECO3 Series Security DVR Sanyo DP39843 User's Manual Warehouse of Tiffany TS47+BB75B Instructions / Assembly 入 札 公 告 PEAKTECH_4105_4115 User's Manual Bedienungsanleitung - SICOM - Prozeß Copyright © All rights reserved.
Failed to retrieve file