
Product
ZX
Date:
2018.09.19
Page:
20 of 62
Z-Laser Optoelektronik GmbH
Merzhauser Str. 134
D-79100 Freiburg
Tel.: (0761)29644-44
Fax: (0761)29644-55/56
Operation manual
Document-ID: UI-ZL-140011-0.9-2018-09-19
0.9
Author:
CSCH
Merzhauser Str. 134 ~ 79100 Freiburg ~ Tel.: +49-(0)761-29644-44 ~ Fax: +49-(0)761-29644-55
www.z-laser.com
The ASCII representation of the UART-frames is identical to the hexadecimal representation of the
TWI-frames. Even the device-ID must be transmitted when UART is used; see light green telegram
byte for TWI transmissions below. So the given documentation refers to TWI but is valid for UART
communication as well.
Example:
Documentation of the TWI telegram that reads the ZX Firmware Version
The corresponding TWI telegram in
hexadecimal
representation:
TWI write frame ->
88 F0 0E EF
length: 4 Bytes
TWI read frame ->
00 03 00 05 8D 35
length: 6 Bytes
The corresponding UART telegram in
ASCII
representation:
UART request telegram ->
88F00EEF<LF>
length: 9 Bytes
UART receive telegram->
000300058D35<LF>
length: 13 Bytes
The length of the UART frame is always calculated as: (length of TWI frame) * 2 + termination
character.
CRC (CCIT format) is calculated from the command and data frame without the TWI-address. See
details in next subchapter.
3.4.2
TWI Interface
The TWI communication interface is operated via SCL and SDA (Pin 4 and Pin 5) according to
standardized physical TWI protocol definition up to 100 Kbit/s. No pull-up resistors are implemented
for both wires; this must be done on the host side. A proper GND reference of the applied signals has
to be ensured. Signal-GND (Pin 3) can be used for this.
Please refer to the original Philips specification that can be found at this URL:
http://cache.nxp.com/documents/user_manual/UM10204.pdf
NOTE
Please pay attention to the following deviations from the original
Philips I²C specification:
Max high level output voltage 3.3V
1 mA current sink capacity
Pull-Up resistors must be chosen in accordance with the current
sink specification
WR-Device-ID CMD (0xF0)
RD-Device-ID System Status
Major Version Minor Version
Build
Hi-Byte CRC
Lo-Byte CRC
Hi-Byte CRC
Lo-Byte CRC