Advertisement

Quick Links

This purpose of this document is to introduce SONiX 2-wire interface of the SNM9S50x/51xx/52xx Series
by defining the Master and Slave of the transmission, explaining signal, data transmission, and data format.
Refer to the commands provided in the end of this document to make various settings of OID decoder
functions.
Date
Revision
21-Oct-2020
Version 1.0
Indicates a hazard with a medium or low level of risk that, if not avoided, could result
 WARNING
in minor or moderate injury.
 TIP
Indicates a tip that may help you solve a problem or save time.
Provides additional information to emphasize or supplement important points of the
 NOTE
main text.
www.sonix.com.tw
About This Document
Revision History
Description
Initial release
Convention
1
SNM9S50x/51xx/52xx
2-wire Interface Manual
STWM-2010

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SNM9S50 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for SONIX SNM9S50 Series

  • Page 1 2-wire Interface Manual About This Document This purpose of this document is to introduce SONiX 2-wire interface of the SNM9S50x/51xx/52xx Series by defining the Master and Slave of the transmission, explaining signal, data transmission, and data format. Refer to the commands provided in the end of this document to make various settings of OID decoder functions.
  • Page 2: Table Of Contents

    Master and Slave ........................4 Signal Description ........................4 Data Transmission ..........................6 Read Operation ........................... 6 Write Operation ........................... 7 Timing ............................8 Data Format ............................10 Command ............................13 Single Command ........................13 Multi-write Command ........................ 13 www.sonix.com.tw STWM-2010...
  • Page 3 Command Indication ......................12 Table 3–7 Command Value ....................... 12 Table 3–8 Options for Command Indication ..................12 Table 4–1 Command and Setting Value .................... 13 Table 4–2 PGA Gain1 Setting ......................14 Table 4–3 PGA Gain2 Setting ......................14 www.sonix.com.tw STWM-2010...
  • Page 4: Introduction

    A Master device is the device that initiates a data transfer on the bus and generates the clock signals to permit that transfer. The 2-wire interface of SONiX OID products receives and transmits signals between the backend DSP/MCU (Master) and OID decoder (Slave). Functions of the Master include: •...
  • Page 5: Table 1-1 Characteristics Of Sclk And Sdio

    Pull High Default Status Pulled high The table below lists some of the recommended SONiX backend DSP to pair with SONiX OID image decoder or OID decoder module. For more options and detailed information of each product, refer to http://www.sonix.com.tw/category-tw-146.
  • Page 6: Data Transmission

    The read operation is initiated by the Master to transfer data from the Slave to the Master. In R/W control bit, the Master keeps the R/W control bit on SDIO low to indicate read operation. The table below lists the controlled status of the signal on SDIO in different timing during a read operation. www.sonix.com.tw STWM-2010...
  • Page 7: Write Operation

    When the write operation completes, the Master keeps the signal on SCLK low as a stop condition. The Slave releases the SDIO on the falling edge for an external pull-up resistor to pull high. The signal on SDIO has to be pulled high before every write operation. The Slave pulls the signal on SDIO www.sonix.com.tw STWM-2010...
  • Page 8: Timing

    Pulse duration, SCLK high w(SCLKH) μs Pulse duration, SCLK low < 78 w(SCLKL) Setup time, SDIO state change before – μs < T su(SDIOV-SCLKL) w(SCLKH) SCLK low μs – Hold time, SDIO valid after SCLK low h(SDIOV-SCLKL) w(SCLKL) www.sonix.com.tw STWM-2010...
  • Page 9: Figure 2-5 Timing

    SNM9S50x/51xx/52xx 2-wire Interface Manual SDIO SCLK Figure 2–5 Timing www.sonix.com.tw STWM-2010...
  • Page 10: Data Format

    Valid Index Indication of Bit [59:0] Valid (Bit 60 = 0) Indication 59–54 Reserved 53–45 Angle Reserved OID2 OID3 with General code OID3 with Position Code Indication Indication Indication 43–16 Reserved 43–28 Reserved 43–0 Coordinate 15–0 16-bit index 27–0 Index www.sonix.com.tw STWM-2010...
  • Page 11: Figure 3-1 Coordinate For Oid3 With Position Code

    To convert the coordinate to X coordinate: Combine the integer in binary, 00 0000 0000 0100b, with the fractional bit in binary, 0111 0100b to get the 21-bit X coordinate. 21-bit X coordinate = 0 0000 0000 0010 0111 0010b = 626 (decimal) www.sonix.com.tw STWM-2010...
  • Page 12: Table 3-6 Command Indication

    Command/Index 1: Command OID mode 62–61 01: Original OID mode Else: Reserved 60–16 Reserved Command 0xFFF8: Decoder entered normal mode. 15–0 0xFFF6: Decoder is going to enter calibration mode. DSP/MCU sets 2-wire SCLK and SDIO as input mode. www.sonix.com.tw STWM-2010...
  • Page 13: Command

    The OID decoder does not output index until a different set of valid data is read. By setting this command, the OID decoder outputs all indexes even if the data is redundant or invalid. www.sonix.com.tw STWM-2010...
  • Page 14: Table 4-2 Pga Gain1 Setting

    Take PGA gain2 as an example, the calculation of length and checksum is demonstrated as below. Length = 2 * 2 + 1 Checksum = Low Byte of 0x05 + 0x16 + 0xC7 + 0x04 + 0x70 = Low Byte of 0x156 = 0x56 www.sonix.com.tw STWM-2010...
  • Page 15 Sonix or any of its suppliers, agents or representatives in connection therewith. The information contained in this document is the property of Sonix, and none of it may be used, reproduced or distributed without the express written permission by Sonix.
  • Page 16 SNM9S50x/51xx/52xx 2-wire Interface Manual SONiX Technology Headquarter Taipei Office 10F-1, No.36, Taiyuan Street, 15F-2, No.171, Song Ted Road, Zhubei City, Hsinchu, Taiwan Taipei, Taiwan Tel: +886-3-5600-888 Tel: +886-2-2759-1980 Fax: +886-3-5600-889 Fax: +886-2-2759-8180 http://www.sonix.com.tw/Masterpage-en mkt@sonix.com.tw sales@sonix.com.tw Japan Office Hong Kong Office Kobayashi bldg.

This manual is also suitable for:

Snm9s51 seriesSnm9s52 series

Table of Contents