PRODUCT MANUAL - BARIX X8 - V01.05 - 10/26/2006
To check if WIEGAND data is available the register 11 has to be
read. The lower Byte will contain the amount of Bits received.
If it is 00h then no new data was received. The higher Byte
contains a bitmap of found temperature sensors (see next page)
The Bits of the received WIEGAND data are shifted in (from
right to left) into the Registers 12 to 16 (5x16=80 bits max):
Register 12
13
14
15
16
Bit
1.......16 17........32 33........48 49........64 65........80
Example:
Register 11: 2B1A 1Ah=26 Bits
Register 12: A8DF
Register 13: D8CA
Register 12 (Word)
Register 13 (Word)
A8 (High Byte)
DF (Low Byte)
D8 (High Byte)
02 (Low Byte)
1 0 1 0 1 0 0 0 1 1 0 1 1 1 1 1 1 1 0 1 1 0 0 0 1 1 0 0 1 0 1 0
1 2 3 4 5 6 7 8 9 1
0
1
1
1
2
1
3
1
4
1
5
1
6
1
7
1
8
1
9
2
0
2
1
2
2
2
3
2
4
n
a
n
a
n
a
n
a
n
a
n
a
2
5
2
6
Note: As the Bits are shifted in from right to left, the Bits in the
last Byte are right aligned. The unused Bits can contain old data !
To obtain correct data the last Byte must be masked.
In the above example with 26 Bits the mask for the last Byte is:
2
0
+ 2
1
= 1 + 2 = 3
Now let us mask the data received:
CAh AND 03h = 02h
So the WIEGAND data in this example is in fact:
A8 DF D8 02
The BARIX X8 keeps this data in the registers 12 to 16 and will
NOT read further WIEGAND data until register 11 is cleared
(Reg. 11 = 00h).
Connecting the I/O · 14