Preliminary. Gas Sensor Analog Front End Datasheet GasSensorAFE V Features and Overview. This datasheet contains Preliminary information.

Similar documents
8 to 1 Analog Multiplexer Datasheet AMux8 V 1.1. Features and Overview

For one or more fully configured, functional example projects that use this user module go to

Programmable Gain Amplifier Datasheet PGA V 3.2. Features and Overview

Supported Devices: CY8C28x13, CY8C28x33, CY8C28x43, CY8C28x45, CY8C28x52, CY8C21x45, CY8C22x45, CY8C24x93. CY8C24x

LPF (Optional) CY8C24x93. Without LPF and ISR to 3* With LPF only** to 3* With ISR only to 3*

CY7C603xx CYWUSB

Programmable Threshold Comparator Data Sheet

4 to 1 Analog Multiplexer Data Sheet

Use the Status Register when the firmware needs to query the state of internal digital signals.

Incremental ADC Data Sheet

Shadow Registers Datasheet ShadowRegs V 1.1. Features and Overview

Voltage Reference (Vref) Features. General Description. Input/Output Connections. When to Use a Vref Voltage references and supplies

DMX512 Receiver Datasheet DMX512Rx V 1.0. Features and Overview

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

CapSense I 2 C/SPI Timer Flash RAM

PSoC Blocks. CY8C20xx6/6A/6AS/6H/6L, CY8C20xx7/7S, CY7C643xx, CY7C604xx, CYONS2xxx, CYONSxNxxxx, CYRF89x35, CY8C20065, CY8C24x93, CY7C69xxx

Use the Status Register when the firmware needs to query the state of internal digital signals.

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

Comparator (Comp) Features. General Description. When to use a Comparator 1.60

Filter_ADC_VDAC_poll Example Project Features. General Description. Development Kit Configuration

Writing to Internal Flash in PSoC 3 and PSoC 5

HX2VL Development Kit Guide. Doc. # Rev. **

HX2VL Development Kit Guide. Doc. # Rev. *A

Supported devices: CY8C29x66, CY8C27x43, CY8C28xxx, CY8C24x23, CY8C24x33, CY8C21x23, CY8C21x34, CY8C21x45, CY8C22x45, CY8C24x94

16-Bit Hardware Density Modulated PWM Data Sheet

Cypress HX2VL Configuration Utility Blaster User Guide

CY8C29/27/24/23/21xxx, CY8CLED02/04/08/16, CY8CLED0xD, CY8CLED0xG, CY8C28x45, CY8CPLC20, CY8CLED16P01, CY8C28xxx. Main UM

PSoC 4 Low Power Comparator (LPComp) Features. General Description. When to Use a LPComp 2.0. Low input offset. User controlled offset calibration

24-Bit Pseudo Random Sequence Generator Data Sheet

PSoC Creator Component Datasheet

Use the IDAC8 when a fixed or programmable current source is required in an application.

CE PSoC 4: Time-Stamped ADC Data Transfer Using DMA

AN SIO Tips and Tricks in PSoC 3 / PSoC 5. Application Note Abstract. Introduction

THIS SPEC IS OBSOLETE

GPIF II Designer - Quick Start Guide

Libraries Guide. Arithmetic Libraries User Guide. Document #: Rev. *A

FTG Programming Kit CY3670. Spec. # Rev. *C

6 to 14-Bit Delta Sigma ADC DatasheetDelSigMultiV 1.30

THIS SPEC IS OBSOLETE

Next-Generation Hot-Swap Controllers

1st Order Modulator nd Order Modulator

PSoC 1 I 2 C Bootloader

Cypress HX2VL Configuration Utility Blaster User Guide

CYClockMaker Programming Kit Guide CY3675. Doc. # Rev. **

Reviving Bit-slice Technology in a Programmable Fashion

CYClockMaker Programming Kit Guide CY3675. Doc. # Rev. *C

The color of the Clock component waveform symbol will change based on the clock's domain (as shown in the DWR Clock Editor), as follows:

1st Order Modulator nd Order Modulator

Clock Programming Kit

PSoC 6 Current Digital to Analog Converter (IDAC7)

Use the Status Register when the firmware needs to query the state of internal digital signals.

CE56273 Associated Part Families: CY8C38xx/CY8C55xx Software: PSoC Creator Related Hardware: CY8CKIT-001 Author: Anu M D

The following table lists user modules used in this code example and the hardware resources occupied by each user module.

The AMuxSeq is capable of having between 2 and 32 analog inputs. The paired inputs are present when the MuxType parameter is set to "Differential.

PSoC 4 Current Digital to Analog Converter (IDAC)

CY3660-enCoRe V and encore V LV DVK Kit Guide

EZ I 2 C Slave. Features. General Description. When to use a EZ I 2 C Slave 1.50

4K x 8 Dual-Port Static RAM and 4K x 8 Dual-Port SRAM with Semaphores

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

This section describes the various input and output connections for the Voltage Fault Detector.

12-Mbit (512 K 24) Static RAM

PSoC Designer Release Notes

32-Bit Counter Datasheet Counter32 V 2.5. Features and Overview

PSoC 4 Voltage Comparator (Comp) Features. General Description. When to Use Comparator Low input offset. User controlled offset calibration

THIS SPEC IS OBSOLETE

FM3 MB9B100A/300A/400A/500A Series Inverter Solution GUI User Guide

This Application Note demonstrates an SPI-LIN slave bridge using a PSoC device. Demonstration projects are included.

PSoC Programmer 3.12 Release Notes

Use a DieTemp component when you want to measure the die temperature of a device.

Comparator Datasheet CMP V 1.1. Features and Overview

Triple Input 8-Bit Incremental ADC Datasheet TriADC8 V Features and Overview. See AN2239, ADC Selection Guide for other converters.

AN EZ-USB FX3 I 2 C Boot Option. Application Note Abstract. Introduction. FX3 Boot Options

AN1090. NoBL : The Fast SRAM Architecture. Introduction. NoBL SRAM Description. Abstract. NoBL SRAM Operation

This section describes the various input and output connections for the Voltage Fault Detector.

144-Mbit QDR -II SRAM 2-Word Burst Architecture

Digital Logic Gates. Features. General Description. Input/Output Connections. When to Use a Logic Gate. Input 1. Input 2. Inputs 3-8 * 1.

CE58957 demonstrates how to implement the fade and toggle feature to the backlight LEDs of CapSense buttons.

CE CY8CKIT-042-BLE F-RAM Data Logger

EZ-USB FX3 Development Kit Guide

Digital Multiplexer and Demultiplexer. Features. General Description. Input/Output Connections. When to Use a Multiplexer. Multiplexer 1.

PSoC 4 Operational Amplifier (Opamp) Features. General Description. When to Use the Opamp Follower or Opamp configuration

CY8C29/27/24xxx, CY8CLED04/08/16, CY8CLED0xD, CY8CLED0xG, CY8C28x45, CY8CPLC20, CY8CLED16P01, CY8C28x43, CY8C28x52

Use the Status Register when the firmware needs to query the state of internal digital signals.

This input determines the next value of the output. The output does not change until the next rising edge of the clock.

Automatic reload of the period to the count register on terminal count

Comparator (Comp) Features. General Description. When to use a Comparator Low input offset. User controlled offset calibration

Voltage Fault Detector (VFD) Features. General Description. Input/Output Connections. When to Use a VFD. Clock Input 2.30

Programmer User Guide

Inverting Programmable Gain Amplifier (PGA_Inv)

For one or more fully configured, functional example projects that use this user module go to

Bootloader project - project with Bootloader and Communication components

THIS SPEC IS OBSOLETE

This section describes the various input and output connections for the SysInt Component.

Analog Multiplexer (AMux) Features. General Description. Input/Output Connections. When to Use an AMux Single or differential connections

1-Mbit (64K x 16) Static RAM

One 32-bit counter that can be free running or generate periodic interrupts

Supports one or two address decoding with independent memory buffers. Memory buffers provide configurable Read/Write and Read Only regions

For one or more fully configured, functional example projects that use this user module go to

Base Timer Channel (BT) Features. General Description. When to Use a PDL_BT Component 1.0

Version 3.3. If you have technical questions, visit or call and select 8.

Transcription:

Preliminary Gas Sensor Analog Front End Datasheet GasSensorAFE V 1.10 001-81375 Rev. *A GasSensorAFE Copyright 2012-2013 Cypress Semiconductor Corporation. All Rights Reserved. This datasheet contains Preliminary information. Resources PSoC Blocks API Memory (Bytes) Digital Analog CT Analog SC Flash RAM Pins (per External I/O) Supported Devices: CY8C29466, CY8C29566, CY8C29666, CY8C29866, CY8C28243, CY8C28433, CY8C28445, CY8C28452, CY8C28533, CY8C28545, CY8C28623, CY8C28643, CY8C28645, CY8C27143, CY8C27243, CY8C27443, CY8C27543, CY8C27643, CY8C24094, CY8C24794, CY8C24894, CY8C24994, CY8C24123A, CY8C24223A, CY8C24423A 0 2 1 427 0 4 Features and Overview Implements a three-lead electrochemical sensor with current output. Contains a trans-impedance amplifier (TIA) for current-to-voltage conversion. Maintains bias conditions needed by the cell Can be used to build a single-chip gas sensing solution in combination with appropriate ADC, SLCD, and CapSense User Modules The Gas Sensor Analog Front End (AFE) User Module contains a bias circuit to maintain the sensor at a specific state and a TIA (current-to-voltage converter) to translate the sensor current, which is proportional to gas concentration, into a voltage that can be digitized. Cypress Semiconductor Corporation 198 Champion Court San Jose, CA 95134-1709 408-943-2600 Document Number: 001-81375 Rev. *A Revised May 15, 2013

Figure 1. GasSensor Hardware Block Diagram (PSoC 1) Figure 2. Gas Sensor Circuit (PSoC 1) Document Number: 001-81375 Rev. *A Page 2 of 8

Functional Description The Gas Sensor AFE User Module is made up of two main sections as shown in Figure 1 and Figure 2: A control amplifier A trans-impedance amplifier The gain resistor for the TIA (RTIA) and load resistor for the sensor (RLOAD) are external components. Control Amplifier The control amplifier maintains the sensor's reference electrode (RE) at the Bias Reference Voltage using one analog continuous time block (CT BLOCK (PGA)) and one analog switched capacitor block (SC BLOCK). The voltage at RE is buffered via the CT BLOCK (PGA) and fed to the CB arm of the SC BLOCK. REFHI drives the CA arm of the SC BLOCK. The opamp in the SC BLOCK servos its output to maintain its inverting input at the same level as the non-inverting input, which is at AGND. Therefore, the node at which CA and CB are connected is also maintained at AGND. Since the switch phases of CA and CB are opposite, the voltages across CA and CB subtract. Solving for PGA_OUT we have, We also know, Substituting Equation 3 for PGA_OUT in Equation 2 and solving for VRE we get, TIA The TIA maintains the working electrode, WE, at ground potential through the resistor RG, and provides a voltage output proportional to the current through WE. Document Number: 001-81375 Rev. *A Page 3 of 8

DC and AC Electrical Characteristics Table 1. 5.0V PGA AC Electrical Characteristics Parameter Description Min Typ Max Units Conditions and Notes I RE I CE V OS RW Input leakage current through the RE pin Minimum sink/ source current through the CE pin Offset voltage between WE and RE pin 1 na 1 ma 10 mv V RW RE-WE bias voltage error 2 % of FS Placement The Gas Sensor AFE User Module uses three analog PSoC blocks, two continuous time (CT), and one switched capacitor (SC). The Gas Sensor AFE also uses two output buffers and the band gap reference generator. Parameters and Resources Bias Voltage This parameter specifies the voltage, in millivolts, that the control amplifier maintains between the RE and WE terminals. TIA_Output The TIAMP block output can be routed through an analog output bus. Setting the TIA_Output parameter to Disable, the default value, restricts the set of possible connections to the local network. If TIA_Output is enabled on to the analog bus, make sure that no other user module drives this same bus. SCA_Output The SCAMP block output can be routed through an analog output bus. Setting the SCA _Output parameter to Disable, the default value, restricts the set of possible connections to the local network. If SCA _Output is enabled on to the analog bus, make sure that no other user module drives this same bus. Application Programming Interface The Application Programming Interface (API) routines are provided as part of the user module to allow the designer to deal with the module at a higher level. This section specifies the interface to each function together with related constants provided by the include" files. Note In this, as in all user module APIs, the values of the A and X register may be altered by calling an API function. It is the responsibility of the calling function to preserve the values of A and X prior to the call if those values are required after the call. This registers are volatile" policy was selected for efficiency reasons and has been in force since version 1.0 of PSoC Designer. The C compiler automatically takes care of this requirement. Assembly language programmers must ensure their code observes the policy, Document Number: 001-81375 Rev. *A Page 4 of 8

too. Though some user module API function may leave A and X unchanged, there is no guarantee they will do so in the future. For Large Memory Model devices, it is also the caller's responsibility to preserve any value in the CUR_PP, IDX_PP, MVR_PP, and MVW_PP registers. Even though some of these registers may not be modified now, there is no guarantee that will remain the case in future releases. GasSensorAFE_Start Description: Configures the Analog CT and SC blocks to function as a Gas Sensor AFE. C Prototype: void GasSensorAFE_Start(BYTE bpowersetting) Assembly: lcall GasSensorAFE_Start Parameters: bpowersetting: Gas AFE operating power. Symbolic Name Value GasSensorAFE_OFF 0 GasSensorAFE_LOWPOWER 1 GasSensorAFE_MEDPOWER 2 GasSensorAFE_HIGHPOWER 3 Return Value: GasSensorAFE_SetPower Description: Changes the power setting of the GasSensorAFE. C Prototype: void GasSensorAFE_SetPower(BYTE bpowersetting) Assembly: lcall GasSensorAFE_SetPower Parameters: bpowersetting: Gas AFE operating power. Document Number: 001-81375 Rev. *A Page 5 of 8

Symbolic Name Value GasSensorAFE_OFF 0 GasSensorAFE_LOWPOWER 1 GasSensorAFE_MEDPOWER 2 GasSensorAFE_HIGHPOWER 3 Return Value: GasSensorAFE_SetBias Description: Sets the bias voltage between the RE and WE pins. C Prototype: void GasSensorAFE_SetBias (int ibias, int iextref) Assembler: lcall GasSensorAFE_SetBias Parameters: ibias: Bias voltage in millivolts, 0 999. iextref: The external reference voltage in millivolts, 0 2500, if external reference is enabled in the global parameters, otherwise this parameter is ignored. Return Value: GasSensorAFE_Stop Description: Stops the Gas Sensor AFE by turning off the power to the Analog CT and SC blocks. C Prototype: void GasSensorAFE_Stop Assembler: lcall GasSensorAFE_Stop Parameters: Return Value: Document Number: 001-81375 Rev. *A Page 6 of 8

Sample Firmware Source Code The sample code in C is as follows: //---------------------------------------------------------------------------- // C main line //---------------------------------------------------------------------------- #include <m8c.h> #include "PSoCAPI.h" // part specific constants and macros // PSoC API definitions for all User Modules void main(void) { // Start the GasSensorAFE UM in the medium power mode GasSensorAFE_Start(GasSensorAFE_MEDPOWER); // Set the bias voltage between RE and WE to 300 mv and set the external reference //(P2[6]) to 1000 mv. // If reference is internal, iextref parameter is ignored. GasSensorAFE_SetBias(300, 1000); } while (1); The equivalent code in assembly is: ;----------------------------------------------------------------------------- ; Assembly main line ;----------------------------------------------------------------------------- include "m8c.inc" ; part specific constants and macros include "memory.inc" ; Constants & macros for SMM/LMM and Compiler include "PSoCAPI.inc" ; PSoC API definitions for all User Modules export _main _main: ;Start the GasSensorAFE UM in the medium power modes mov A, GasSensorAFE_MEDPOWER call GasSensorAFE_Start ;Set the bias voltage between RE and WE to 300(0x012Ch) mv and set the external ;reference (P2[6]) to 1000(0x03E8h) mv. ;If reference is internal, iextref parameter is ignored. mov A, 0x03 push A mov A, 0xE8 push A mov A, 0x01 push A mov A, 0x2C push A call GasSensorAFE_SetBias.terminate: jmp.terminate Document Number: 001-81375 Rev. *A Page 7 of 8

Version History Version Originator Description 1.0 KUK Initial version 1.10 MYKZ 1. Added code generation script to read Ref Mux Global parameter and initialize the SC block settings properly. 2. Moved UM to Legacy state as this is no longer recommended for new designs. Note PSoC Designer 5.1 introduces a Version History in all user module datasheets. This section documents high level descriptions of the differences between the current and previous user module versions. Document Number: 001-81375 Rev. *A Revised May 15, 2013 Page 8 of 8 Copyright 2012-2013 Cypress Semiconductor Corporation. The information contained herein is subject to change without notice. Cypress Semiconductor Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any license under patent or other rights. Cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or safety applications, unless pursuant to an express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges. PSoC Designer and Programmable System-on-Chip are trademarks and PSoC is a registered trademark of Cypress Semiconductor Corp. All other trademarks or registered trademarks referenced herein are property of the respective corporations. Any Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide patent protection (United States and foreign), United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a personal, non-exclusive, non-transferable license to copy, use, modify, create derivative works of, and compile the Cypress Source Code and derivative works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source Code except as specified above is prohibited without the express written permission of Cypress. Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the right to make changes without further notice to the materials described herein. Cypress does not assume any liability arising out of the application or use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress' product in a life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges. Use may be limited by and subject to the applicable Cypress software license agreement.