SILICON MICROSTRUCTURES

Similar documents
DS1676 Total Elapsed Time Recorder, Erasable

DS1845 Dual NV Potentiometer and Memory

DS WIRE INTERFACE 11 DECOUPLING CAP GND

White Paper Using the MAX II altufm Megafunction I 2 C Interface

DS 1682 Total Elapsed Time Recorder with Alarm

VBattery 7 VCC V DD IRLED IS31SE5001 SDA SCL INTB SDB. Figure 1 Typical Application Circuit

GT24C02. 2-Wire. 2Kb Serial EEPROM (Smart Card application)

DS1855 Dual Nonvolatile Digital Potentiometer and Secure Memory

Digital Thermometer and Thermostat

GT34C02. 2Kb SPD EEPROM

ACE24C512C Two-wire serial EEPROM

DS28CM00. I²C/SMBus Silicon Serial Number

Digital Thermometer and Thermostat

2-Wire, 5-Bit DAC with Three Digital Outputs

Debounced 8 8 Key-Scan Controller

Figure 1 Typical Application Circuit

FM24C02A 2-Wire Serial EEPROM

FM24CL04 4Kb FRAM Serial Memory

PART IN+ IN- TX_DISABLE TX_FAULT BIAS SET BIASMAX 2 APCSET 2 MODSET 2 MOD SET PC_MON BS_MON

Digital Thermometer and Thermostat

GT24C WIRE. 1024K Bits. Serial EEPROM

FM24C Kb FRAM Serial Memory Features

DS75 Digital Thermometer and Thermostat

TOP VIEW CLOCK GENERATOR A1 A2 GND CPU SPEED SELECT

PCA bit multiplexed/1-bit latched 6-bit I 2 C EEPROM DIP switch

GT24C256 2-WIRE. 256K Bits. Serial EEPROM

DS1631/DS1631A/DS1731 High-Precision Digital Thermometer and Thermostat

User-configurable Resolution. 9 to 12 bits (0.5 C to C)

User-configurable Resolution. 9 to 12 bits (0.5 C to C)

FM24C02B/04B/08B/16B 2-Wire Serial EEPROM

PCA9560 Dual 5-bit multiplexed 1-bit latched I 2 C EEPROM DIP switch

FM24C16B-GTR. 16Kb Serial 5V F-RAM Memory. Features. Pin Configuration. Description. Ordering Information NC NC NC VSS VDD WP SCL SDA.

512K bitstwo-wire Serial EEPROM

Tutorial for I 2 C Serial Protocol

DS1682 Total-Elapsed-Time Recorder with Alarm

Embedded Systems and Software. Serial Interconnect Buses I 2 C (SMB) and SPI

ZD24C32A. I 2 C-Compatible (2-wire) Serial EEPROM. 32-Kbit (4,096 x 8) DATASHEET. Features. Description. Low Voltage Operation

Preliminary Data MOS IC. Type Ordering Code Package SDA Q67100-H5092 P-DIP-8-1

How to Implement I 2 C Serial Communication Using Intel MCS-51 Microcontrollers

A24C64. AiT Semiconductor Inc. ORDERING INFORMATION

I 2 C Touch Screen Controller

Optimized for V CC range of 1.7V to 3.6V. 2-wire serial interface: I 2 C Fast Mode Plus (FM+) compatible

I 2 C Application Note in Protocol B

DS Wire Digital Thermometer and Thermostat

24C08/24C16. Two-Wire Serial EEPROM. Preliminary datasheet 8K (1024 X 8)/16K (2048 X 8) General Description. Pin Configuration

Preliminary Data MOS IC. Type Ordering Code Package SDA Q67100-H5096 P-DIP-8-1

RM24C64AF 64-Kbit 1.65V Minimum Non-volatile Fast Write Serial EEPROM I 2 C Bus

HDI Series Amplified pressure sensors

DS2401 Silicon Serial Number

XRA BIT I2C/SMBUS GPIO EXPANDER WITH INTEGRATED LEVEL SHIFTERS

Fremont Micro Devices, Inc.

XRA1201/1201P 16-BIT I2C/SMBUS GPIO EXPANDER

ACE24AC64 Two-wire Serial EEPROM

INTEGRATED CIRCUITS. PCA bit I 2 C and SMBus I/0 port with reset. Product data Supersedes data of 2002 May Dec 13

DS1846 NV Tri-Potentiometer, Memory, and MicroMonitor

ACE24AC128 Two-wire Serial EEPROM

12 Push-Pull Outputs and 4 Inputs

INTEGRATED CIRCUITS. PCA bit I 2 C and SMBus I/O port with interrupt. Product data sheet Supersedes data of 2004 Jul 27.

FM24C16C-GTR. 16Kb Serial 5V F-RAM Memory. Features. Description. Pin Configuration NC NC NC VSS VDD WP SCL SDA. Ordering Information.

FEATURES APPLICATIONS C1 C2 C3 C4 C5 C6 C7 C8 R8/C9 R7/C10 R6/C11. Figure 1 Typical Application Circuit

FM24C1024A. Apr Data Sheet. Data Sheet FM24C1024A 2-wrie Serial EEPROM Ver 1.1 1

RM24C64C. 64Kbit 2.7V Minimum Non-volatile Serial Memory I 2 C Bus. Features. Description

ORDERING INFORMATION. OPERATION Measuring Temperature A block diagram of the DS1621 is shown in Figure 1. DESCRIPTION ORDERING PACKAGE

A24C08. AiT Semiconductor Inc. ORDERING INFORMATION

AN-1159 APPLICATION NOTE

AT24C01A/02/04/08/16. 2-Wire Serial CMOS E 2 PROM. Features. Description. Pin Configurations. 1K (128 x 8) 2K (256 x 8) 4K (512 x 8) 8K (1024 x 8)

24LC08. 8K-Bit Serial EEPROM OVERVIEW FEATURES ORDERING INFORMATION

BL24C02/BL24C04/BL24C08/BL24C16

± 2g Tri-axis Accelerometer Specifications

1.3inch OLED User Manual

LE24L042CS-B. Overview. Functions. CMOS IC Two Wire Serial Interface EEPROM (4k EEPROM)

LE24512AQF. Overview. Functions. CMOS IC Two Wire Serial Interface EEPROM (512k EEPROM)

+Denotes a lead(pb)-free/rohs-compliant package.

FM24C Kb FRAM Serial Memory Features

DS2401 Silicon Serial Number

Digital Thermometer and Thermostat in SOT23

SN8200 LI+ DUAL BATTERY CONTROLLER

Altimeter / Barometer Module SMD500 ultra low power, low voltage

Lecture 25 March 23, 2012 Introduction to Serial Communications

and 8 Open-Drain I/Os

A24C02. AiT Semiconductor Inc. ORDERING INFORMATION

I 2 C Port Expander with Eight Inputs. Features

PCA bit multiplexed/1-bit latched 5-bit I 2 C EEPROM DIP switch

DS1852 Optical Transceiver Diagnostic Monitor

Specifications PMD-1208FS

XRA1202/1202P 8-BIT I2C/SMBUS GPIO EXPANDER WITH RESET

Specifications USB-1408FS

ACE24AC16B Two-wire Serial EEPROM

DS2405. Addressable Switch PIN ASSIGNMENT

FM24C32A/64A 2-Wire Serial EEPROM

Two-wire Serial EEPROM Smart Card Modules 128K (16,384 x 8) 256 (32,768 x 8) AT24C128SC AT24C256SC. Features. Description VCC NC

PI4IOE5V bit I 2 C-bus and SMBus I/O port with reset. Description. Features. Pin Configuration

Raystar Microelectronics Technology Inc.

AN-895 APPLICATION NOTE

DIGITAL HUMIDITY SENSOR HYT-131

DS1625. Digital Thermometer and Thermostat FEATURES PIN ASSIGNMENT

ACE24AC02A1 Two-wire Serial EEPROM

ST1633. Datasheet. Capacitive Touch Screen Controller. Version /11/17

Pin Description Pin No. (TSSOP, SOIC) Pin Configuration TSSOP TQFN PI4MSD5V9548A. 8 Channel I2C bus Switch with Reset

Introduction the Serial Communications Parallel Communications Parallel Communications with Handshaking Serial Communications

Transcription:

Digital Communication with SM5800 Series Parts OVERVIEW The SM5800 series pressure product offers the corrected pressure output in both analog and digital formats. Accessing the analog output is an easy process requiring a simple voltage measurement. But accessing the digital output requires an understanding of the digital communication protocols and memory locations containing the digital output data. The purpose of this note is to provide the information needed to establish a connection with a SM5800 part and then read the digital output of the part. INTRODUCTION The SM5800 series pressure product utilizes the Inter Integrated Circuit (I 2 C) Bus interface for all digital communication. Using the I 2 C bus the corrected digital pressure and digital temperature values are accessed from on board memory registers. DIGITAL COMMUNICATION BASICS The I 2 C bus interface utilizes a two-wire method for carrying information back and forth between integrated circuit devices connected to the bus. The two-wire method is comprised of a bi-directional, 8-bit serial data (SDA) line providing the path for data transfers and a serial clock (SCL) line for synchronizing the data transfers. A Master device in the form of a personal computer or microcontroller initiates and terminates data transfers on the SDA line and generates the clock signal on the SCL line. A Slave device (which represents the SM5800 series product) receives requests from the Master and transmits data according to the request. When multiple Slave devices are connected to the bus, each Slave must have a unique address and the Master must use this unique address when performing data transfers with a particular Slave. A diagram of the I 2 C bus with a Master and multiple Slaves (or SM5800 parts) is shown in Figure 1. Master Slave 1 Slave 2 Figure 1. Multiple SM5800 series devices connected to the I 2 C bus Slave 3 DATA TRANSFER The data transfer process begins with the Master issuing a START (S) command, which alerts all Slave devices of the pending transfer request. The Master then specifies which Slave device to communicate with and how the data will flow between the Master and Slave. Next, the Master waits for the addressed Slave to respond. When the desired Slave responds, the Master and Slave begin the process of transmitting data back and forth. The transfer process ends with the Master issuing a STOP (P) command. Figure 2 provides a diagram showing a simple data transfer sequence. START & STOP CONDITIONS Initiated by the Master, a START conditioned is identified by a HIGH to LOW transition of the SDA line while maintaining a stable HIGH condition on the SCL line. All data transfer must begin with a START condition and the bus lines are considered busy after a START condition is issued. To end the transfer of data the Master initiates a STOP condition, which is identified by a LOW to HIGH transition of the SDA line while maintaining a stable HIGH condition on the SCL line. Page 1 of 9

BYTE COMPLETE, CLOCK HELD LOW UNITL RECEIVING DEVICE IS READY FOR NEXT OPERATION START CONDITION STOP CONDITION SCL HIGH 1 2 3-8 9 1 2 3-8 9 LOW SDA HIGH 1 2 3-8 9 1 2 3-8 9 LOW BITS S 1-7 8 9 1-8 9 P SLAVE ADDRESS (BEGINS WTH MSB) R/W (LSB) DATA (BEGINS WTH MSB) Figure 2. Diagram of a simple data transfer sequence DATA FORMAT & VALIDITY The SDA line is an 8-bit digital line and this defines the size of each byte transferred. An acknowledge bit starts with the Transmitter releasing the SDA line HIGH at the start of the clock cycle immediately following a byte transfer. The Receiver must then pull the SDA line LOW during the HIGH period of the same clock cycle. The set-up and hold times for the SDA and SCL lines are provided in APPENDIX A. Every byte transferred from Transmitter to Receiver starts with the most significant bit (MSB). Valid data transfers only occur during the HIGH period of the SCL clock. If a Receiver needs time to carry out a request before receiving another byte, it can hold the SCL line LOW. To do this the Receiver performs an internal interrupt to hold the SCL LOW, which forces the Transmitter to wait before sending the next byte. When ready, the Receiver releases the SCL line and data transfer continues. ADDRESSING A SLAVE DEVICE All Slave devices must have a unique identification or address. A Slave address cannot exceed a length of seven bits. The Slave address shares space in the address byte with a read/write bit and the maximum length of the address byte is eight bits. To construct the address byte, place the Slave address at the MSB of the address byte and place the read/write bit at the least significant bit (LSB). The address byte always follows a START condition. When an address byte is sent over the SDA line, each Slave compares the MSB of this byte with its own unique address. The Slave with the matching address becomes active and responds by sending an acknowledge bit along the SDA line to the Master. How the Slave responds to the next byte transmitted by the Master following the acknowledgement depends on the read/write bit. When the LSB of the address byte is 1 the Slave transmits data for the Master to read. When the LSB of the address byte is 0 the Slave waits for the Master to write data to the Slave. Page 2 of 9

EEPROM SPECIFIC READ OPERATIONS The Slave devices with onboard EEPROM contain an internal byte register, which will store the register address of the EEPROM register recently accessed by the Master. To set the value of the internal byte register a Random Address Read operation must be performed. Once the internal byte register is set then the value of the EEPROM register corresponding to the address found in the internal byte register can be read repeatedly through the use of the Current Address Read operation. The two read operations are detailed in the following: Random Address Read Following the initial START condition, the Master performs a dummy write operation to load the EEPROM register address into the internal byte register. The Slave acknowledges this dummy write operation. The Master then sends a Repeated START (Sr) condition. Following the repeated START condition, the Master again sends the Slave address byte with the read/write bit set to 1. The Slave acknowledges this and outputs the EEPROM register data corresponding to the address stored in the internal byte register. The Master does not acknowledge having received the byte output of the Slave, but instead terminates the data transfer session with a STOP condition. Pseudo code detailing the steps of the random address read operation can be found in APPENDIX B. Figure 3 shows a diagram of the random address read operation. Current Address Read Following a START condition, the Master transmits the first byte with the read/write set to 1. The Slave acknowledges this and outputs the EEPROM register data corresponding to the address stored in the internal byte register. The Master does not acknowledge having received the byte output of the Slave, but instead terminates the data transfer session with a STOP condition. Figure 4 shows a diagram of the current address read operation. R/W R/W NO S DEVICE ADDRESS REGISTER ADDRESS Sr DEVICE ADDRESS DATA OUT P MSB LSB MSB MSB LSB MSB Figure 3. EEPROM specific Random Address Read operation R/W NO S DEVICE ADDRESS DATA OUT P MSB LSB MSB Figure 4. EEPROM specific Current Address Read operation Page 3 of 9

Gnd Vdd C f C f C f C f Rp Rp SM5800 [1] SM5800 [2] SM5800 [3] SM5800 [n] Rs Rs Rs Rs Rs Rs Rs Rs SCL SDA Figure 5. Implementation of Rp and Rs resistors along the I 2 C-bus PRECAUTIONS To protect devices connected to the SCL and SDA lines, series resistors must be utilized. The series resistors protect against high-voltage spikes traveling along the bus lines and help reduce interference and ringing. In addition to the series resistors, the SCL and SDA lines must be connected to the positive supply voltage (Vdd) using either a current-source or a pull-up resistor. A current-source or pull-up resistor helps maintain the HIGH state of the SCL and SDA lines and ensures that the signals are pulled from the LOW to HIGH state within the set rise time. For bus lines with a low capacitive load (<100pF) use pull-up resistors and when dealing with a high capacitive load (>100pF) use an external current-source pull-up. Figure 5 provides a diagram showing how to implement series and parallel resistors in the I 2 C bus. ACCESSING THE DIGITAL OUTPUT A total of four digital values are accessible through the digital output of the SM5800. These digital values are: Band-gap voltage (11-bit) Temperature (11-bit) Uncorrected pressure (11-bit) Corrected pressure (12-bit) The digital output values are stored in addressable memory registers and updated with each clock cycle. The length of the digital output values range from eleven to twelve bits. A single memory register has a maximum capacity of eight bits. Since a single digital output value exceeds the storage capacity of a single register a total of two consecutive memory registers are reserved for each digital output value. Each digital value is split in half with the LSB placed into the first register and the MSB placed into the second register. Table 1 provides a list of the register addresses reserved for the LSB and MSB of each digital output value. Table 1. Digital Output Memory Mapping REGISTER DESCRIPTION 128 Corrected pressure, LSB [5:0] 129 Corrected pressure, MSB [11:6] 130 Temperature, LSB [5:0] 131 Temperature, MSB [11:6] 132 Un-corrected pressure, LSB [5:0] 133 Un-corrected pressure, MSB [11:6] 134 Band-gap voltage, LSB [5:0] 135 Band-gap voltage, MSB [11:6] Page 4 of 9

CONCLUSIONS SM5800 series parts are now capable of digital communication through an I 2 C bus interface. The two-wire I 2 C bus allows multiple SM5800 series parts to be accessed. Different SM5800 models and pressure ranges can be connected to the same I 2 C bus as long as each SM5800 series part has a unique bus address. Please consult the factory to obtain SM5800 series parts programmed with addresses other than the factory default value of 95. The digital interface provides access to the digital band-gap voltage, digital temperature, uncorrected digital pressure, and corrected digital pressure values of a SM5800 series part. Now a SM5800 series part can be used in a purely digital system thus eliminating the need of an analog-to-digital converter for the corrected analog pressure output. APPENDIX A. I 2 C Bus Characteristics PARAMETER MIN TYP MAX UNITS SCL frequency 0 100 khz LOW period of the SCL clock 4.7 µs HIGH period of the SCL clock 4.0 µs Rise time for SCL and SDA bus signals 1000 ns Fall time for SCL and SDA bus signals 300 ns Set-up time for repeated START condition 4.7 µs Set-up time for Data 250 ns Set-up time for STOP condition 4.0 µs SDA transfer rate 100 kbits/s LOW level input voltage for each bus line -0.5 0.3 * Vdd V HIGH level input voltage for each bus line 0.7 * Vdd V Supply Voltage, Vdd 5 V Supply Voltage Filter Capacitance, Cf 0.1 pf Capacitive load per bus line, Cb 400 pf Parallel Resistor, Rp 10 kω Series Resistor, Rs 100 Ω Noise limit at the LOW level for each device connected Noise limit at the HIGH level for each device connected 0.1 * Vdd V 0.2 * Vdd V Page 5 of 9

APPENDIX B. Random Address Read Pseudo Code //********** MAIN PROGRAM ********** START START_CONDITION; DEVICE_ADDRESS; NOWLEDGEMENT; REGISER_ADDRESS; NOWLEDGEMENT; RE-START_CONDITION: DEVICE_ADDRESS; NOWLEDGEMENT; DATA_OUT; NO_NOWLEDGEMENT; STOP_CONDITION; END //********** SUB-ROUTINES ********** START_CONDITION SDA(W)=0; //Set the read/write bit to 0 (= write) //Set the read/write bit to 1 (= read) //Set SDA bus line low DEVICE_ADDRESS n=7; FOR i=0 to n-1 SDA(W)=DEVICE_ADD(i); //Writing i th bit of the Device Address DELAY i=i+1; END; SDA(W)=R_or_W; //Set the read/write bit NOWLEDGEMENT SDA(W)=1; =SDA(R); //Set SDA bus line high //Reading bit REGISTER_ADDRESS n=8; FOR i=0 to n-1 SDA(W)=REGISTER_ADD(i); //Writing i th bit of the Register Address DELAY i=i+1; END; Page 6 of 9

RE-START_CONDITION SDA(W)=1; SDA(W)=0; //Set SDA bus line high //Set SDA bus line low DATA_OUT n=8; FOR i=0 to n-1 DATA(i)=SDA(R); //Reading i th bit of Data Out DELAY i=i+1; END; NO_NOWLEDGEMENT SDA(W)=1; STOP_CONDITION SDA(W)=0; SDA(W)=1; //Set SDA bus line high //Set SDA bus line low //Set SDA bus line high Page 7 of 9

APPENDIX C. Glossary of Terms NOWLEDGE () BIT : ADDRESS : BUS CAPACITENCE (Cb) : I 2 C Bus : MASTER : PARALLEL RESISTOR (Rp) : LOW signal sent by the over the SDA line during the 9 th clock pulse indicating a successful data transfer. 7-bits used to identify a specific SLAVE on the I 2 C-bus and found in the MSB of the first byte transmitted after a START condition. Total capacitance of the wire, connections, and pins found on the bus. Inter Integrated Circuit, a two-wire communication bus consisting of a bidirectional serial data line and a clock line. (Also known as Inter IC.) A desktop computer or microcontroller. Generates the clock signal and initiates/terminates the data transfer process with a Slave. Resistor placed between the bus and supply voltage lines. READ (R) : 8 th bit of the ADDRESS byte with a value of 1. RECEIVER : Obtains data transmitted over the SDA line. REPEATED START CONDITION (Sr) : See START Condition. Occurs during the data transfer process. SERIAL CLOCK (SCL) : SERIAL DATA (SDA) : SERIES RESISTOR (Rs) : START CONDITION (S) : STOP CONDITION (P) : SUPPLY VOLTAGE (Vdd) : SLAVE : TRANSMITTER : Line used to synchronize data transfers between a Master and Slave device. Bi-directional line used to transfer data between a Master and Slave device. Resistor placed between the bus line and a Slave device. Transitioning from HIGH to LOW on the SDA line while the SCL line remains HIGH. Transitioning from LOW to HIGH on the SDA line while the SCL line remains HIGH. Voltage powering I 2 C devices. A SM5800 series part. Receives/sends data when addressed by a Master. Sends data over the SDA line. WRITE( W ) : The 8 th bit of the ADDRESS byte with a value of 0. Page 8 of 9

APPENDIX D. SM5800 Package Pin-Out Diagrams PIN NO. PIN DESCRIPTION 1 NC 2 NC 3 SERIAL DATA (SDA) 4 SERIAL CLOCK (SCL) 5 NC 6 NC 7 NC 8 NC 9 NC 10 NC 11 NC 12 GROUND 13 Vexc = 5.000 VDC 14 NC 15 NC 16 ANALOG OUTPUT NOTE: DO NOT GROUND NC PINS. NC PINS MUST FLOAT. Figure 6. SM5822/SM5872 package pin-out diagram PIN NO. PIN DESCRIPTION 1 NC 2 GROUND 3 NC 4 SERIAL DATA (SDA) 5 SERIAL CLOCK (SCL) 6 NC 7 Vexc = 5.000 VDC 8 ANALOG OUTPUT NOTE: DO NOT GROUND NC PINS. NC PINS MUST FLOAT. Figure 7. SM5812/SM5852 package pin-out diagram Notice: Silicon Microstructures, Inc. reserves the right to make changes to the product contained in this publication. Silicon Microstructures, Inc. assumes no responsibility for the use of any circuits described herein, conveys no license under any patent or other right, and makes no representation that the circuits are free of patent infringement. While the information in this publication has been checked, no responsibility, however, is assumed for inaccuracies. Silicon Microstructures, Inc. does not recommend the use of any of its products in life support applications where the failure or malfunction of the product can reasonably be expected to cause failure of a life-support system or to significantly affect its safety or effectiveness. Products are not authorized for use in such applications. Page 9 of 9