beautypg.com

5 i2c requirements, 1 i2c register write, C requirements – PNI RM3100 Sensor Suite User Manual

Page 26: C register write, Table 4-2: spi timing specifications, Symbol description min max units, The magi2c can operate as a slave device on an i, A generic write transaction is given below

background image

PNI Sensor Corporation

Doc 1017252 r03

RM3100 & RM2100 Sensor Suite User Manual

Page 25 of 45

Table 4-2: SPI Timing Specifications

Symbol

Description

Min

Max

Units

t

SHZD

SSN LOW to data output

100

ns

t

SSDV

SSN LOW to Command Byte

100

ns

t

DBSH

Setup data before active edge

50

ns

t

DASH

Hold data after active edge

50

ns

t

DRDV

Clock falling edge to valid data

10

ns

t

SSH

Final clock cycle falling edge to SSN HIGH

100

ns

t

SHDZ

SSN HIGH to output data tri-state

100

ns

t

SSW

SSN HIGH to LOW (time between transactions)

100

4.5 I

2

C Requirements

The MagI2C can operate as a slave device on an I

2

C bus. It is identified by a 7-bit slave

address. The higher 5 bits of the slave address are pre-defined in hardware and the same for

all MagI2C devices. PNI has registered these first 5 bits as 0b01000. The lower 2 bits of the

slave address are user-configurable, using pins 3 and 28. As such, 4 different slave addresses

are possible. For example, setting pin 3 HIGH and pin 28 LOW results in an address of

0b0100001.

The MagI2C’s I

2

C interface complies with NXP’s UM10204 specification and user manual,

revision 03. Standard, fast, fast plus, and high speed modes of the I

2

C protocol are

supported. Below is a link to this document.

http://www.nxp.com/documents/user_manual/UM10204.pdf

4.5.1 I

2

C Register Write

A generic Write transaction is given below.

START

MagI2C ADDRESS

RW ACK MagI2C REG. ADDRESS (N) ACK

DATA TO REGISTER (N)

ACK DATA TO REGISTER (N+1) ACK STOP

S

A6 A5 A4 A3 A2 A1 A0 0

0 A7 A6 A5 A4 A3 A2 A1 A0 0 A7 A6 A5 A4 A3 A2 A1 A0 0 A7 A6 A5 A4 A3 A2 A1 A0 0

P

From Host to MagI2C

------------ Data Transferred (n bytes + acknowledge) ------------

From MagI2C to Host