| Electronic Components Datasheet Search |
|
IC-LO Datasheet(PDF) 19 Page - IC-Haus GmbH |
|
|
|||||||||||||||||||||||||||||
IC-LO Datasheet(HTML) 19 Page - IC-Haus GmbH |
|
19 / 25 page ![]() prel imin ary prel imin ary iC-LO TRIANGULATION SENSOR Rev B3, Page 19/25 SPI INTERFACE General description SPI name pin name description NCS NCS not chip select SCLK SCK clock MOSI MOSI master out slave in MISO MISO master in slave out Table 29: SPI Connector Pin List During SPI communication (NCS low) an ongoing mea- surement sequence in iC-LO is halted (LED off, switch- ing output off). OPCODE summary SPI OPCODES Opcode Description 0xB0 not implemented 0xA6 not implemented 0xF5 not implemented 0x97 not implemented 0xD2 not implemented 0x8A Read REGISTER (cont.) 0xCF Write REGISTER (cont.) 0xAD REGISTER status/data 0x9C Read STATUS 0xD9 Write INSTRUCTION Table 30: OPCODE Table iC-Haus SPI data transmission SPI modes 0 and 3 are supported, i.e. an idle polarity of SCLK 0 or 1 and acceptance of data with a rising edge of SCLK. The idle level (NCS high) of the MISO line is tristate. The slave passes MOSI to MISO on a falling edge at NCS. Data is sent bytewise with the MSB first. Each data transmission begins with the master sending an opcode. To be compatible to Microwire™, all opcodes start with a 1. The following describes the typical sequence of an SPI data transmission, taking the command Read REGIS- TER (cont.) as an example (see figure 8): 1. The master initializes a transmission with a falling edge at NCS. 2. The slave passes the level on from MOSI to MISO. 3. The master transmits the Read REGISTER (cont.) opcode and address ADR via MOSI; the slave immediately outputs OPCODE and ADR via MISO. 4. The slave transmits the addressed data. 5. The master quits the command with a rising edge at NCS. 6. The slave switches its MISO output to tristate. SCLK MOSI MISO NCS OP7 OP6 OP5 OP4 OP3 OP2 OP1 OP0 OP7 OP6 OP5 OP4 OP3 OP2 OP1 OP0 ADR7 ADR6 ADR5 ADR4 ADR3 ADR2 ADR1 ADR0 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 ADR7 ADR6 ADR5 ADR4 ADR3 ADR2 ADR1 ADR0 Figure 8: SPI transmission, using opcode Read REGISTER (cont.) as an example Description of the SPI-Opcodes REGISTER status/data The REGISTER status/data command can be used to request the status of the last register communication and/or the last data transmission. The STATUS byte contains the information summarized in table 31. STATUS Bit Name Description of the status report 7 ERROR Opcode not implemented. 6..4 - Reserved 3 DISMISS Address refused 2 FAIL Data request has failed 1 BUSY Slave is busy with a request 0 VALID DATA is valid Note Display logic: 1 = true, 0 = false Table 31: Communication Status Byte |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |