Application Note. I²C Interface for Digital CO2 Measurement Module

Similar documents
Application Note. E2 Interface for EE871, EE892 and EE893

Please refer to "4. Evaluation Board" on page 2 for more information about these steps. Figure 1. System Connections

The USB Debug Adapter package contains the following items: USB Debug Adapter (USB to Debug Interface) with attached 7 Ribbon Cable

Table 1. RS232 Serial Adapter DEBUG Connector Pin Descriptions

AN205 CP210X BAUD RATE SUPPORT. Relevant Devices This application note applies to the following devices: CP2102, CP

HID-USB-to-IR-RD HID USB TO IR REFERENCE DESIGN USER S GUIDE. 1. Kit Contents. 2. Software Download

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

PSM Training 3.0 PRODUCT DESCRIPTION FEATURES. PSM Training 3.0 Data Sheet

Figure 1. EFM32 Wonder Gecko STK (Left) Connected to a Biometric-EXP (Right)

AN104 I NTEGRATING KEIL 8051 TOOLS INTO THE SILICON LABS IDE. 4. Configure the Tool Chain Integration Dialog. 1. Introduction. 2.

STEPPER-MOTOR-RD STEPPER MOTOR REFERENCE DESIGN KIT USER S GUIDE. 1. Kit Contents. 2. Kit Overview. Figure 1. Stepper Motor Reference Design Board

CP2102-EK CP2102 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Software Setup Virtual COM Port Driver Installation

AN803. LOCK AND SETTLING TIME CONSIDERATIONS FOR Si5324/27/ 69/74 ANY-FREQUENCY JITTER ATTENUATING CLOCK ICS. 1. Introduction

Figure 1. 8-Bit USB Debug Adapter

AN220 USB DRIVER CUSTOMIZATION

AN220 USB DRIVER CUSTOMIZATION. Relevant Devices This application note applies to the following devices: CP2101, CP2102, CP2103, C8051F320, C8051F321

This document describes the command line interface (CLI) functionality provided in the Application Framework for RF4CE-based applications.

WinCE6.0 I2C SMDKV210. Revision 1.00 October Samsung Electronics Co., Ltd. All rights reserved.

C8051F411-EK C8051F411 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Kit Overview. 3. Evaluation Board Interface LCD User Interface

DIGITAL COMPASS-RD DIGITAL COMPASS REFERENCE DESIGN KIT USER' S GUIDE. 1. Kit Contents. 2. Introduction. 3. Quick-Start Guide. 4. General Description

Si1140-DK. Si1140 DEVELOPMENT KIT USER S GUIDE. 1. Kit Contents. Figure 1. Si1143 Evaluation Board

AN127 FLASH PROGRAMMING VIA THE C2 INTERFACE. Relevant Devices. Introduction. C2 Interface

Hardware Documentation

NOVPEK NetLeap User Guide

F&S Documentation User Tool

SENSORLESS-BLDC-MOTOR-RD

ToolStick-EK TOOLSTICK USER S GUIDE. 1. Kit Contents. 2. ToolStick Overview. Green and Red LEDs. C8051F321 provides USB debug interface.

Si7005USB-DONGLE. EVALUATION DONGLE KIT FOR THE Si7005 TEMPERATURE AND HUMIDITY SENSOR. 1. Introduction. 2. Evaluation Kit Description

ugreen DAB Board Instructions v5

IIC Driver for the MC9S08GW64

Software Defined Radio API Release Notes

AND8386/D. Bootloading BelaSigna 250 Using the I 2 C Interface APPLICATION NOTE

Using IIC to Read ADC Values on MC9S08QG8

ET100/NRZ. Ethernet WAN Bridge. 10/100Base-TX Ethernet over NRZ

Device Errata MPC860ADS Application Development System Board Versions ENG, PILOT, REV A

Interface Description Sensirion SCD30 Sensor Module

Using an I 2 C EEPROM During MSC8157 Initialization

EZRadio-2WayLink-DK EZRADIO TWO-WAY LINK DEVELOPMENT KIT USER S GUIDE. 1. Overview

AND8335/D. Design Examples of Module-to-Module Dual Supply Voltage Logic Translators. SIM Cards SDIO Cards Display Modules HDMI 1-Wire Sensor Bus

F&S Introduction to Eclipse

Programming and Evaluation Tool for Serial EEPROMs

1N5221B - 1N5263B Zener Diodes

2005: 0.5 PQ-MDS-PCIEXP

ugreen DAB Board Instructions v0.12

for ColdFire Architectures V7.2 Quick Start

Note: The Silicon Labs USB Debug Adapter is not included in this kit and is required to reprogram the board.

for Freescale MPC55xx/MPC56xx Microcontrollers V2.10 Quick Start

MTIM Driver for the MC9S08GW64

Is Now Part of. To learn more about ON Semiconductor, please visit our website at

Quickstart. with F&S Development Machine Fedora 23. Version 1.2 ( )

Utilizing Extra FC Credits for PCI Express Inbound Posted Memory Write Transactions in PowerQUICC III Devices

EE870 Modular CO 2 Transmitter

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

Table 1. Kits Content. Qty Part Number Description. Si4010 Simplified Key Fob Demo Kit 868 MHz

1.3 General Parameters

SENSORLESS-BLDC-MOTOR-RD

MPR121 Proximity Detection

AND9032. How to Read Temperature Through I 2 C Bus for NCT75-based Thermostat APPLICATION NOTE

Using the PowerQUICC II Auto-Load Feature

IEXT224-4PH-L IEXT224-4PH-R Long Reach POE Extenders

SML40-CH04 Chassis CWDM Passive 4 Slot Rack

MPC5200(b) ATA MDMA, UDMA Functionality BestComm Setup Recommendations

F&S Introduction to QT5

AND9192/D. Estimating Dark Current from Operating Temperature APPLICATION NOTE

Upgrade the Solution With No Changes 2 Upgrade the Solution With No Changes If a Codebase does not contain updates to its properties, it is possible t

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Prepared by: Gang Chen ON Semiconductor U1 NCP1529 GND SW 5. Figure 1. Typical Simulation Circuit of NCP1529 for DC DC Applications

Installing Service Pack Updater Archive for CodeWarrior Tools (Windows and Linux) Quick Start

CodeWarrior Development Studio

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Is Now Part of To learn more about ON Semiconductor, please visit our website at

Figure 1. (Top) top view and (bottom) bottom view of the version 3 ON Semiconductor SMA boards, from left to right 6mm, 3mm and 1mm

Freescale Semiconductor, I

AND8319/D. How to Maintain USB Signal Integrity when Adding ESD Protection APPLICATION NOTE

MM5Z2V4 - MM5Z75V Zener Diodes

Figure 1. Simplicity Studio

MPR121 Jitter and False Touch Detection

ESD5381 Series. Transient Voltage Suppressors. Micro Packaged Diodes for ESD Protection

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

AN335 USB DRIVER INSTALLATION UTILITY. 1. Description. 2. Installation Install Package

NUP8011MUTAG. Transient Voltage Suppressors

CodeWarrior Kernel-Aware Debug API

Managing Failure Detections and Using Required Components to Meet ISO7637 pulse 1 on MC33903/4/5 Common Mode Choke Implementation

AN716 INSTRUCTIONS FOR USING IMAGE-BUILDER. (Formerly document )

Design Recommendations to Implement Compatibility Between the MC13783VK and the MC13783VK5

PDB Driver for the MC9S08GW64

PCB Layout Guidelines for the MC1321x

Freescale Semiconductor, I

Interfacing HCS12 Microcontrollers to the MFR4200 FlexRay Controller

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

ESD9X3.3ST5G SERIES. Transient Voltage Suppressors Micro Packaged Diodes for ESD Protection

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

NUP4114UCW1T2G. Transient Voltage Suppressors. ESD Protection Diodes with Low Clamping Voltage

CM1219. Low Capacitance Transient Voltage Suppressors / ESD Protectors

Low Pressure Digital Sensor

USB Bootloader GUI User s Guide

MC56F825x/MC56F824x (2M53V) Chip Errata

SDR API Linux Installation

ugreen DAB Board Instructions v6

BZX85C3V3 - BZX85C56 Zener Diodes

Transcription:

APPLICATION NOTE AN1804-1 Application Note I²C Interface for Digital CO2 Measurement Module Rev. 1.0 04/2018 Relevant for: This application note applies to EE894 Introduction: EE894 supports the standard I²C specification. For details please see NXP UM10204 I²C-bus specification and user manual, Rev. 6, 4 April 2014; https://www.nxp.com/docs/en/userguide/um10204.pdf. CONTENT 1 Setup... 3 1.1 Peculiarities of the I²C interface of EE894:... 3 1.2 Example for CRC8 calculation:... 4 1.3 Example: Read all available data... 5 Contact information... 6 Rev. 1.0 04/2018 1

1 Setup The I²C interface of EE894 supports the Standard-Mode up to 100 kbit/s, 8-bit oriented, where the I²C slave address is 7 bit long. The slave address is 0x33. Accordingly, the address byte 0x67 is used to read and 0x66 to write, please refer to 3.1.10 in the NXP specs. The I²C interface of EE894 module is used only for reading measured data. There are two 2-byte commands for telling the module which measurand is to be read. Command 1: 0xE000 Read the temperature value in Kelvin and relative humidity value in %. Command 2: 0xE027 Read the averaged CO2 value in ppm, the raw CO2 value in ppm and ambient pressure in mbar 1.1 Peculiarities of the I²C interface of EE894: There are 16-bit unsigned integers in the form of 2 bytes each The MSB (most significant byte) comes first, then the LSB (least significant byte) After each 2 data bytes, a CRC byte ("CRC8") is sent to ensure that the data has been transferred correctly. This CRC8 is calculated from the 2 data bytes. Property Value Width 8 bit Polynomial 0x31 (x8 + x5 + x4 + 1) XOR input 0xFF Reflect input False Reflect output False XOR output 0x00 If the data readout is cancelled (after "CO2 average value" for instance) then the rest of the data will not be read. Rev. 1.0 04/2018 2

1.2 Example for CRC8 calculation: #define CRC8_ONEWIRE_POLY 0x31 #define CRC8_ONEWIRE_START2 0xff static unsigned char i2ccalccrc8 (unsigned char buf[], unsigned char from, unsigned char to) unsigned char crcval = CRC8_ONEWIRE_START2; unsigned char i = 0; unsigned char j = 0; unsigned char curval = 0; for (i = from; i < to; i ++) int curval = buf[i]; for (j = 0; j < 8; j ++) if (((crcval ^ curval) & 0x80)!= 0) // If MSBs are not equal crcval = ((crcval << 1) ^ CRC8_ONEWIRE_POLY); else crcval = (crcval << 1); curval = curval << 1; return crcval; Rev. 1.0 04/2018 3

1.3 Example: Read all available data The green marked content comes from the module, other commands are sent by the master. First, the EE894 needs to be initialized on which two measurands shall be read. Step 1A: Initialize command 1 or switch from command 2 to command 1 for reading the temperature and relative humidity data. Step 2A: Now the temperature and the relative humidity data can be read. Step 1B: Initialize command 2 or switch from command 1 to command 2 for reading the CO2 and the pressure data Step 2B: Now the CO2 and ambient pressure data can be read: Rev. 1.0 04/2018 4

Contact information E+E ELEKTRONIK GES.M.B.H. Langwiesen 7 4209 Engerwitzdorf Austria Tel.: +43 (7235) 605-0 Fax: +43 (7235) 605-8 E-Mail: info@epluse.com Homepage: www.epluse.com For your local contact please visit the homepage. The information in this document is believed to be accurate in all respects at the time of publication but is subject to change without notice. E+E Elektronik assumes no responsibility for errors and omissions, and shall not accept responsibility for any consequences resulting from the use of information included herein. Additionally, E+E Elektronik assumes no responsibility for the functioning of features or parameters not described. E+E Elektronik reserves the right to make changes without further notice. E+E Elektronik makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does E+E Elektronik assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including consequential or incidental damages without limitation. E+E Elektronik products are not designed, intended, or authorised for use in applications intended to support or sustain life, or for any other application in which the failure of the E+E Elektronik product could create a situation where personal injury or death may occur. Should the buyer purchase or use E+E Elektronik products for any such unintended or unauthorised application, the buyer shall indemnify and hold E+E Elektronik harmless against all claims and damages. Rev. 1.0 04/2018 5