ICP DAS USA I-8084W User manual

Type
User manual
I-8084W
User Manual
Version 1.0 beta1, June 2009
Service and usage information for
LinPAC-8000 Series
I8084W User Manual, Version 1.0 beta1, June 2009 --- 1
I8084W User Manual, Version 1.0 beta1, June 2009 --- 2
Warranty
All products manufactured by ICP DAS are under warranty regarding defective
materials for a period of one year, beginning from the date of delivery to the original
purchaser.
Warning
ICP DAS assumes no liability for any damage resulting from the use of this product.
ICP DAS reserves the right to change this manual at any time without notice. The
information furnished by ICP DAS is believed to be accurate and reliable. However, no
responsibility is assumed by ICP DAS for its use, no for any infringements of patents or
other rights of third parties resulting from its use.
Copyright
Copyright © 2009 by ICP DAS Co., Ltd. All rights are reserved.
Trademarks
The names used in this manual are for identification purpose only and may be registered
trademarks of their respective companies.
I8084W User Manual, Version 1.0 beta1, June 2009 --- 3
Table of Contents
Table of Contents 3
1. Introduction to the I8084W 5
1.1. Specification 5
1.2. Pin Assignment 7
1.3. I/O Structure 8
1.4. Wiring Connection 12
2. Hardware Operation Principle 14
2.1. Input Signal Model 14
2.2. Digital Low Pass Filter 17
2.3. Operation Mode 27
2.3.1. MODE 00: PULSE /DIR COUNTING 28
2.3.2. MODE 01: UP/DOWN COUNTING 29
2.3.3. MODE 02: FREQUENCY MODE 30
2.3.4. MODE 03: UP C UNTING 31 O
2.3.5. MODE 04: QUADRANT COUNTING 32
3. Usage on the LinPAC 33
3.1. i8084W_GetLibVersion 33
3.2. i8084W_GetLibDate 35
3.3. i8084W_InitDriver 36
3.4. i8084W_SetChannelMode 37
3.5. i8084W_AutoScan 38
3.6. i8084W_ReadCntABPhase 39
3.7. i8084W_ReadCntPulseDir 40
3.8. i8084W_ReadCntUpDown 41
3.9. i8084W_ReadFreq 42
3.10. i8084W_ReadCntUp 43
3.11. i8084W_ClrCnt 44
3.12. i8084W_RecoverDefaultSetting 45
3.13. i8084W_ReadXorRegister 46
3.14. i8084W_SetXorRegister 47
3.15. i8084W_ReadChannelMode 48
I8084W User Manual, Version 1.0 beta1, June 2009 --- 4
3.16. i8084W_ReadLowPassFilter_Us 49
3.17. i8084W_SetLowPassFilter_Us 50
3.18. i8084W_ReadLowPassFilter_Status 51
3.19. i8084W_SetLowPassFilter_Status 52
3.20. i8084W_ReadFreqMode 53
3.21. i8084W_SetFreqMode 54
3.22. i8084W_ReadFreqUpdateTime 55
3.23. i8084W_SetFreqUpdateTime 56
3.24. i8084W_ReadDI_Xor 57
3.25. i8084W_ReadDI_XorLPF 58
3.26. i8084W_EepWriteEnable 59
3.27. i8084W_EepWriteDisable 60
3.28. i8084W_EepWriteWord 61
3.29. i8084W_EepReadWord 62
I8084W User Manual, Version 1.0 beta1, June 2009 --- 5
1. Introduction to the I8084W
I-8084W is a 4/8-channel Counter/Frequency Module.
1.1. Specification
Digital Input
4-ch Up/Down Counter (Up/Down)
4-ch Dir/Pulse Counter (Bi-direction)
4-ch Quadrant Counting
8-ch Up Counter
8-ch Frequency
Programmable Built-in gate time: 0.33 sec (Default)
Mode
Programmable Digital Noise Filter: 1 ~ 32737 µs
Logic Level 0: +1 V max
Isolated Input Level
Logic Level 1: +4.5 ~ 30 V
Logic Level 0: 0 ~ 0.8 V
TTL Input Level
Logic Level 1: 2 ~ 5 V
0 ~ 450 kHz (Frequency Mode)
Input Frequency
450 kHz (Counter Mode)
1 µs (Frequency Mode)
Minimum Pulse Width
1 µs (Counter Mode)
EEPROM 128 KB
Isolated Voltage 1000 Vrms
ESD Protection 2 kV (Contact for each channel)
I8084W User Manual, Version 1.0 beta1, June 2009 --- 6
LED Display
1 LED as Power Indicator
8 LEDs as Digital Input Indicators
Power
Power Consumption 1 W
Environment
Operating Temperature -25 ~ 75
Storage Temperature -30 ~ 85
Humidity 5 ~ 95 % RH, Non-condensing
Dimensions
30 mm x 85 mm x 114 mm (W x L x H)
1.2. Pin Assignment
I8084W User Manual, Version 1.0 beta1, June 2009 --- 7
1.3. I/O Structure
The default jumper settings are as follows:
I8084W User Manual, Version 1.0 beta1, June 2009 --- 8
Isolated
Input:
i-8084
Inside 8084
I8084W User Manual, Version 1.0 beta1, June 2009 --- 9
TTL
Input:
Inside 8084
i-8084
I8084W User Manual, Version 1.0 beta1, June 2009 --- 10
Isolated or TTL input is selected by using JP1 to JP3 as indicated below:
I8084W User Manual, Version 1.0 beta1, June 2009 --- 11
J1 Select A0
J2 Select B0
J1/2/3/4/5/6/7/8 J1/2/3/4/5/6/7/8
+
J3 Select A1
J4 Select B1
J5 Select A2
J6 Select B2
J7 Select A3
J8 Select B3
Isolated input
(Default Setting)
TTL input
1.4. Wiring Connection
Counter Type
I8084W User Manual, Version 1.0 beta1, June 2009 --- 12
Isolation No-n-Isolation Mode
Dir/Pulse
Up/Down
Up
Quadrant
Frequency Type
Mode Isolation No-n-Isolation
Frequency Frequency
I8084W User Manual, Version 1.0 beta1, June 2009 --- 13 I8084W User Manual, Version 1.0 beta1, June 2009 --- 13
2. Hardware Operation Principle
2.1. Input Signal Model
1. Isolated Input (XOR=0)
The operational logic applied on the 8084 modules is the falling edge trigger.
(Normal High and Active Low)
The external signal is input into an 8084 module through the isolated mechanism, with
the signal being reversed from the external signal.
This internal signal is the suggested waveform, as it doesn’t need to execute the XOR
operation (XOR=0).
The solution is shown below.
i-8084
I8084W User Manual, Version 1.0 beta1, June 2009 --- 14
2. TTL Input (XOR=1)
When an external TTL signal is input into an 8084 module through the TTL mechanism,
the signal will be the same as the external signal. This internal signal isn’t the
recommended waveform as it must execute the exclusive OR (XOR=1) operation.
The solution is shown below.
i-8084
i
-8084
I8084W User Manual, Version 1.0 beta1, June 2009 --- 15
3. Always XOR=0
Regardless of whether the input signal is TTL or isolated, XOR is always set to 0, and
the maximum count error can only be 1. XOR=0 can be used for all cases, if a 1-count
error is acceptable.
Note:
z When XOR=0 and the 8084 module status is OPEN status ( i.e. no signals on the
input terminal) , regardless of whether you select the TTL or Isolated mode, the signal
at the C point will always be 1. Similarly, if XOR=1 and the status is OPEN,
then the signal at the C point will always be 0.
z If the input signal is a pulse rather than a 50/50 duty cycle square waveform, then
the 1-count error will not occur as the pulse width is shorter..
I8084W User Manual, Version 1.0 beta1, June 2009 --- 16
I8084W User Manual, Version 1.0 beta1, June 2009 --- 17
2.2. Digital Low Pass Filter
The 8084 has three independent 2nd-order digital noise filters, LP0, LP1 & LP2, to remove
noises as follows:
Channel Low Pass Filter
A0 Low Pass Filter 0
B0 Low Pass Filter 0
A1 Low Pass Filter 1
B1 Low Pass Filter 1
A2 Low Pass Filter 2
B2 Low Pass Filter 2
A3 Low Pass Filter 2
B3 Low Pass Filter 2
z The Low Pass Filter can be either disabled or programmable from 2 µs to 65535 µs.
z The Low Pass Filter will apply to all working modes, counter or frequency.
z These 3 Low Pass Filters are disabled status in the default shipping. User defined
program can be used to issue a command to enable or disable the filters.
z Assume that the filter clock of the Low Pass Filter is set to T, this clock is used to
sample the input signal.
z If one of the adjacent 2 samples is low, then the input signal will be removed as
follows:
z If the high width of the input signal is shorter then T, it will be filtered.
z If the adjacent 2 samples are all HIGH, the input signal can pass as indicated below:
I8084W User Manual, Version 1.0 beta1, June 2009 --- 18
Note: the filter signal is shorter than the original input signal.
z If the input signal is shorter than 2T, it may be filtered in the following manner:
z The relationship between the input signal and the filter signal is as follows:
if (2T<input signal), it will pass
if (T<=input signal<=2T), it may be filtered or passed
if (input signal <T), it will be filtered
z The software driver, i8084_SetLowPassUs (int Slot, int Channel, unsigned int Us),
provides an parameter, Us which can be used to set the Low Pass Filter as follows:
if Us=1 and 2T =1µs then T = 0.5µs and signal<=0.5µs will be removed
if Us=2 and 2T= 2µs then T = 1 µs and signal<=1µs will be removed
if Us=N, N from 1 to 0x7fff and 2T = N µs then signal<=(N/2) µs will be removed
z The Low Pass Filter range can be configured from 1µs to 32767µs. The high width of
the signal < (Us/2) will be removed.
I8084W User Manual, Version 1.0 beta1, June 2009 --- 19
For example, if you use a function generator as signal source, the 500Hz signal &
50/50 duty cycle will generate a 1000 µs high & 1000 µs low as follows:
Input signal=500Hz & Low Pass Filter Disable
Signal 1 =
input signal=500Hz, 50/50 duty cycle
Signal 2 =
input signal after Xor and Low Pass Filter, now Xor=0 and Low Pass Filter is disable.
I8084W User Manual, Version 1.0 beta1, June 2009 --- 20
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62

ICP DAS USA I-8084W User manual

Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI