English
Language : 

IC-HT_15 Datasheet, PDF (23/45 Pages) IC-Haus GmbH – DUAL CW LASER DIODE DRIVER
iC-HT
DUAL CW LASER DIODE DRIVER
SERIAL COMMUNICATION INTERFACES
preliminary
Rev B1, Page 23/45
SPI slave interface
The SPI slave interface is enabled by setting pin
INS/WKR to lo and uses pins NCS/A1, SCLK/SCL,
MISO/SDA and MOSI/A0. Pin NCS/A1 is the chip se-
lect pin and must be set lo by the SPI master in order
to start communication. Pins MISO/SDA and MOSI/A0
are the data communication lines and pin SCLK/SCL
is the clock line generated by the SPI master (e.g. mi-
crocontroller). The SPI protocol frames are shown in
figure 13.
A communication frame consists of one address byte
and at least one data byte. Bits 7:6 of the address byte
is the opcode used for selecting a read operation (set
to "10") or a write (set to "01") operation. The remain-
ing 6 bits are used for register addressing.
It is possible to transmit several bytes consecutively,
if the NCS signal is not reset and SCLK/SCL keeps
clocking, as it is shown in figure 13. The address is in-
ternally incremented after each transmitted byte. Once
the address reaches the last register (0x3F), it is reset
back to 0x00.
NCS
SCLK
MOSI
MISO
SPI WRITE COMMAND FRAME. OPCODE = 01, POLARITY = 0, PHASE = 0
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Init Addr.(5:0) MSB first
Data 1 MSB first
Data 2
HIZ (Pull-Up) Don't care
Data n
Don't care
NCS
SCLK
MOSI
MISO
SPI READ COMMAND FRAME. OPCODE = 10, POLARITY = 0, PHASE = 0
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Init Addr.(5:0) MSB first
Don't care
HIZ (Pull-Up) Don't care
Data 1 MSB first
Data 2
Figure 13: SPI read and write commands
Data n
HIZ
I2C slave interface
The I2C slave interface is enabled by setting pin
INS/WKR to hi and uses pins NCS/A1, SCLK/SCL,
MISO/SDA and MOSI/A0. The protocol frames are
shown in figure 14.
Action
b7 b6 b5 b4 b3 b2 b1 b0
Write to slave 1 1 0 0 0 A1 A0 0
Read from slave 1 1 0 0 0 A1 A0 1
Table 46: I2C write/read byte
A communication frame consists of one slave address
byte, one register address byte and at least one data
byte. Bits 7:1 of the slave address byte form the slave
identification code (ID) and bit 0 is used for specifica-
tion of the data direction (0 for write, 1 for read). The
slave ID consists of 7 bits. The five most significant bits
are fixed by default to value 0b11000. Pins MOSI/A0
and NCS/A1 are used to set the remaining slave ID
bits (see table 46 and 47).
Action
A1 A0 Slave ID Address byte
Write to slave 0 lo lo 0x60
0xC0
Read from slave 0 lo lo 0x60
0xC1
Write to slave 1 lo hi 0x61
0xC2
Read from slave 1 lo hi 0x61
0xC3
Write to slave 2 hi lo 0x62
0xC4
Read from slave 2 hi lo 0x62
0xC5
Write to slave 3 hi hi 0x63
0xC6
Read from slave 3 hi hi 0x63
0xC7
Table 47: I2C write/read address