
MV-D752-28 User’s Manual
REV: 1.0
Page 48/61
16.1
Example of EEPROM access
Table 35 summarizes the sequence of commands for data transmission to the EEPROM of
the camera. Depending on the access function, some steps may not be necessary. To
write to the EEPROM, steps 1-5 are necessary. To read, skip step 1, but use steps 2-7.
Special cases are the EEPROM commands write enable/disable. In these cases only the
steps 3-5 have to be used. The transmission protocol of the RS232 interface is defined in
Appendix C.
Table 35: Access steps for the EEPROM
Step Action
1
Write data byte (D7-D0) in register address 00H, if required for function
2
Write LSB address byte (A7-A0) in register address 01H, if required for function
3
Write OP-Code und MSB address byte (xxx,OP1, OP2,A10-A8) in register address 02H
4
Read status register address 04H, wait for state „not (PROM_BUSY or AUTOLOAD)“
5
Write in register address 03H
Î
command SEND_PROM
6
Read status register address 04H, wait for state „not (PROM_BUSY or AUTOLOAD)“
7
Read data byte (D7-D0) in register address 00H, when data are read out from the EEPROM
The following example Table 36 shows in detail the sequence of commands for the
EEPROM command write enable.
Table 36: Example accessing the EEPROM with the command „WRITE ENABLE“
Step BIN
Code HEX
Code
Comments
1 -
-
2 -
-
These steps are not required
xxx0 0xxx
OP-Code = 00 (2-bits)
xxxx x11x
Extended OP code A10..A8 = 11x (3-bits)
3
0000 0110
06
Write OP-Code in register address 02H
00xx xxxx
READ from address
xx00 0100
Address 04H
4
0000 0100
04
Read status register from register address 04H
01xx xxxx
Write to address
xx00 0011
Address 03H
5
0100 0011
43
Command SEND_PROM, Data will be transmitted to the EEPROM
6 -
-
7 -
-
These steps are not required
x: arbitrary
state