62
PRELIMINARY
1M28, 1M75, and 1M150 User’s Manual
03-32-00525-04
DALSA
read, the desired data is transmitted as a complete byte in order to accelerate communication.
Faulty data transmissions can only be recognized using the stop bit. Additionally, there are internal
status registers (in the camera) which record failures during transmission. An attempt to access an
undefined camera register will be answered with CAN = 18H. An overview over the camera
feedback is shown in Table 29.
Table 29: Camera Feedback
Camera Feedback
Abbreviation
Code
Successful transfer
ACK
06H
Failed transfer
NAK
15H
Undefined access
CAN
18H
Camera data
DATA
xxH
x:
arbitrary data
Example of Access to Camera Registers
For data transmission to the camera, the camera must be in slave mode, and the PC must be in
master mode. The camera receives data on the RX lead and transmits data to the PC via the TX
lead.
Table 30 summarizes the individual steps of a write/read of the register 06H and 07H from the
master’s point of view. Additionally a read process of an undefined register 16H is shown.
Table 30: Accessing Camera Registers
Steps
RX/TX
BIN Code
HEX
Code
Comments
1
RX
0100 0110
46
Write address 06H in the address register of
the camera
2
TX
0000 0110
06
Successful receipt, camera transmits ACK =
06H
3
RX
1000 0101
85
Write Low Data Nibble 5
4
TX
0000 0110
06
Successful receipt, camera transmits ACK =
06H
5
RX
1100 0101
C5
Write High Data Nibble 5
6
TX
0000 0110
06
Successful receipt, camera transmits ACK =
06H
7
RX
0100 0111
47
Write address 07H in the address register of
the camera
8
TX
0000 0110
06
Successful receipt, camera transmits ACK =
06H
9
RX
1000 1010
8A
Write Low Data Nibble A
10
TX
0001 0101
15
Failed transfer, Master must repeat transfer,
camera transmits NAK = 15H
11
RX
1000 1010
8A
Write Low Data Nibble A
12
TX
0000 0110
06
Successful receipt, camera transmits ACK =
06H
13
RX
1100 1010
CA
Write High Data Nibble A
14
TX
0000 0110
06
Successful receipt, camera transmits ACK =
06H
15
RX
0000 0110
06
Read Data from register address 6
16
TX
0101 0101
55
camera transmits register content address
06H
Î
55H
17
RX
0000 0111
07
Read data from register address 7