DOC: SPII2CHDWBrief - V2.71 07/25/2017
PAGE 1
LB5900 Series Power Sensor
SPI & I2C Interface Guide
TABLE OF CONTENTS
TABLE OF CONTENTS
......................................................................................................................... 1
NOTICE
............................................................................................................................................... 4
GENERAL
............................................................................................................................................ 5
Sensor Power
................................................................................................................................. 6
Data Line Electrical Specifications
................................................................................................. 6
Commands, Data Transmission & Reception
................................................................................. 6
Sensor Reset and Communication Port Reset
............................................................................... 6
Wiring Diagram & Connector Pin Out
............................................................................................ 7
USING I2C
........................................................................................................................................... 8
Electrical Data Connection and Addressing
................................................................................... 8
I2C Message Overview
................................................................................................................... 9
Processing Time Delay
............................................................................................................... 9
Clock, Start, Stop, Direction
....................................................................................................... 9
Acknowledge & NACK
................................................................................................................ 9
Sensor Busy & NACK
................................................................................................................ 10
I2C Timing
................................................................................................................................ 10
Data Format and Communications
.......................................................................................... 11
The Address byte
................................................................................................................. 12
The Status byte
.................................................................................................................... 13
Command Header
................................................................................................................ 14
Using NACK & ACK ........................................................................................................... 15
06h Send Command plus Prepare Status & Length ......................................................... 16
0Ch Prepare Complete Output Buffer ............................................................................. 19
I2C Measurement Example
.......................................................................................................... 20
USING SPI
......................................................................................................................................... 21