| поискавой системы для электроныых деталей |
|
IC-HTP датащи(PDF) 26 Page - IC-Haus GmbH |
|
|
|||||||||||||||||||||||||||||
IC-HTP датащи(HTML) 26 Page - IC-Haus GmbH |
|
26 / 51 page ![]() prel imin ary prel imin ary iC-HTP DUAL CW P-TYPE LASER DIODE DRIVER Rev B1, Page 26/51 SERIAL COMMUNICATION INTERFACES 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 remaining 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. 13 14 15 MOSI SPI READ COMMAND FRAME. OPCODE = 10, POLARITY = 0, PHASE = 0 SPI WRITE COMMAND FRAME. OPCODE = 01, POLARITY = 0, PHASE = 0 NCS Don't care 16 17 Data n HIZ MISO HIZ (Pull-Up) Don't care Data 1 MSB first Data 2 Init Addr.(5:0) MSB first SCLK 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 MOSI 0 1 SCLK Data 1 MSB first Data 2 16 17 Data n Don't care MISO HIZ (Pull-Up) Don't care NCS 2 Init Addr.(5:0) MSB first 3 4 5 6 7 8 9 10 11 12 Figure 13: SPI read and write commands 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. 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 specification 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 0b10000. Pins MOSI/A0 and NCS/A1 are used to set the remaining slave ID bits (see table 55 and 56). Action b7 b6 b5 b4 b3 b2 b1 b0 Write to slave 1 0 0 0 0 A1 A0 0 Read from slave 1 0 0 0 0 A1 A0 1 Table 55: I2C write/read byte Action A1 A0 Slave ID Address byte Write to slave 0 lo lo 0x40 0x80 Read from slave 0 lo lo 0x40 0x81 Write to slave 1 lo hi 0x41 0x82 Read from slave 1 lo hi 0x41 0x83 Write to slave 2 hi lo 0x42 0x84 Read from slave 2 hi lo 0x42 0x85 Write to slave 3 hi hi 0x43 0x86 Read from slave 3 hi hi 0x43 0x87 Table 56: I2C write/read address |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |