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

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

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

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.

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

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 6 Current Digital to Analog Converter (IDAC7)

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

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

PSoC Creator Quick Start Guide

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

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

PSoC 4 Current Digital to Analog Converter (IDAC)

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

Supports a range of speeds of external memories (from 5 to 200 ns) Supports external memory power-down, sleep, and wakeup modes

Optional Pause Pulse for constant frame length of 282 clock ticks

Setting Oscillation Stabilization Wait Time of the main clock (CLKMO) and sub clock (CLKSO)

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

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

Capable of adjusting detection timings for start bit and data bit

For More Information Please contact your local sales office for additional information about Cypress products and solutions.

Scanning Comparator (ScanComp) Features. General Description. Input/Output Connections. When to Use a Scanning Comparator. clock - Digital Input* 1.

Multifunction Serial Interface (PDL_MFS) Features. General Description. When to Use a PDL_MFS Component. Quick Start 1.0

Cypress BLE-Beacon ios App User Guide

THIS SPEC IS OBSOLETE

W H I T E P A P E R. Introduction. Devices. Energy Comparison of Cypress F-RAM and EEPROM

EZ-PD Analyzer Utility User Guide

ModusToolbox USB Configurator Guide

W H I T E P A P E R. Timing Uncertainty in High Performance Clock Distribution. Introduction

CE CY8CKIT-042-BLE F-RAM Data Logger

For More Information Please contact your local sales office for additional information about Cypress products and solutions.

Configurable transfer modes: single transfer, 1D transfer (using X loop) and 2D transfer (using both X and Y loops).

CE95314 PSoC 3, PSoC 4, and PSoC 5LP EZI2C

Shift Register. Features. General Description 1.20

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

Supports Analog, Digital I/O and Bidirectional signal types

AN F²MC-16FX Family, I2C. Contents. 1 Introduction. This application note describes how to communicate via I2C with a Serial EEPROM.

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

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

F²MC-8FX Family MB95200H/210H Series Capacitance Touch Sensor

The Emulated EEPROM Component should be used to store nonvolatile data on a target device.

EZ I2C Slave. Features. General Description. When to use a EZ I 2 C Slave Industry standard Philips I 2 C bus compatible interface

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

FM3 Family Motor Graphical Interface User Manual

Nine-Output 3.3 V Buffer

Operational Amplifier (Opamp) Features. General Description. Input/Output Connections. Noninverting Analog Follower or Opamp configuration

BGM Adaptor MB E Operation Manual. 8FX Family 8-bit Microcontroller. Doc. # Rev. *A

PSoC Creator Component Datasheet

MB39C811-EVB-03. PMIC for Solar/Vibration Energy Harvesting, Evaluation Board Operation Guide. Doc. No Rev. *B

Chip Errata for the MB96300/MB96600 Series MOVS/MOVSW Overlap of source and destination region, F 2 MC-16FX Microcontroller

For More Information Please contact your local sales office for additional information about Cypress products and solutions.

Sequencing Successive Approximation ADC (ADC_SAR_Seq) Features. General Description. When to Use the ADC_SAR_Seq Supports PSoC 5LP devices

AN FR Family, MB91F467S Emulation. 1 Introduction. 2 Hardware Setup. 2.1 Required parts

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

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

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

External Library. Features. General Description 1.0. The library provides documentation for external components

FM4 S6E2Cx Series Over The Air Update 32-Bit Microcontroller With Embedded Dual Flash

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

CY8CKIT-002. PSoC MiniProg3 Program and Debug Kit Guide. Doc. # Rev. *H

Writing to Internal Flash in PSoC 3 and PSoC 5

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

PSoC Creator 4.2 Production Release Notes

Graphic LCD Interface (GraphicLCDIntf) Features. General Description. When to Use a GraphicLCDIntf 1.80

TI: Uses a short pulse on spi_select to indicate start of transaction. National Semiconductor (Microwire): Transmission and Reception occur separately

Peripheral Driver Library (PDL) Component (PDL Application Programming Interface (API) only)

Bootloader project - project with Bootloader and Communication components

Version February 02, 2018

Master modes provide all functionality necessary to work in a multi-master environment.

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

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

PSoC 1 In-Circuit Emulator Development Kit Guide

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:

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

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

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

16-Mbit (512 K words 32 bits) Static RAM with Error-Correcting Code (ECC)

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

Cypress EZ-PD Configuration Utility User Manual

FM0+ Family S6E1A1 Series, Flash Programming Guide

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

Filter_ADC_VDAC_poll Example Project Features. General Description. Development Kit Configuration

CY7C603xx CYWUSB

8-Bit Voltage Digital to Analog Converter (VDAC8)

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

PSoC 1 I 2 C Bootloader

Cypress HX2VL Configuration Utility Blaster User Guide

CY4701 EZ-USB GX3 Reference Design Guide

Bootloader project Project with a Bootloader Component and communication Component.

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

4 to 1 Analog Multiplexer Data Sheet

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

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

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

THIS SPEC IS OBSOLETE

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

Bootloader project Project with a Bootloader component and communication component.

Incremental ADC Data Sheet

16-Bit Hardware Density Modulated PWM Data Sheet

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

Transcription:

PSoC Creator Component Datasheet Die Temperature (DieTemp) 2.0 Features Accuracy of ±5 C Range 40 C to +140 C (0xFFD8 to 0x008C) Blocking and non-blocking API General Description The Die Temperature (DieTemp) component provides an Application Programming Interface (API) to acquire the temperature of the die. The System Performance Controller (SPC) is used to get the die temperature. The API includes blocking and non-blocking calls. When to Use a DieTemp Use a DieTemp component when you want to measure the die temperature of a device. Input/Output Connections There are no Input/Output Connections on the DieTemp component. It is a software component only. Component Parameters The DieTemp has no configurable parameters other than standard Instance Name and Built-in parameters. Cypress Semiconductor Corporation 198 Champion Court San Jose, CA 95134-1709 408-943-2600 Document Number: 001-85002 Rev. *D Revised December 13, 2017

Die Temperature (DieTemp) PSoC Creator Component Datasheet Application Programming Interface Application Programming Interface (API) routines allow you to configure the component using software. The following table lists and describes the interface to each function. The subsequent sections cover each function in more detail. By default, PSoC Creator assigns the instance name DieTemp_1 to the first instance of a component in a given design. You can rename it to any unique value that follows the syntactic rules for identifiers. The instance name becomes the prefix of every global function name, variable, and constant symbol. For readability, the instance name used in the following table is DieTemp. Note that the device should not enter low power modes during temperature measurements. After calling DieTemp_Start() you should wait for the DieTemp_Query() API to report the status of the request that is different from CYRET_STARTED. For more information see the DieTemp_Query() API description. Functions Function DieTemp_Start() DieTemp_Stop() DieTemp_Query() DieTemp_GetTemp() Description Starts the SPC command to get the die temperature Stops the temperature reading Queries the SPC to see if the temperature command is finished Sets up the command to get the temperature and blocks until finished cystatus DieTemp_Start(void) Sends the command and parameters to the SPC to start a Die Temperature reading. This function returns before the SPC finishes. This function call must always be paired with a call to the DieTemp_Query() API to complete the Die Temperature reading.. void CYRET_STARTED if the SPC command was started successfully. CYRET_UNKNOWN if the SPC command failed. CYRET_LOCKED if the SPC was busy. Page 2 of 6 Document Number: 001-85002 Rev. *D

PSoC Creator Component Datasheet Die Temperature (DieTemp) void DieTemp_Stop(void) There is no need to stop or disable this component. This component is naturally a slave that sends request to SPC through SPC API of cy_boot and waits for data to be ready or in case of non-blocking operation it sends request to SPC and user can manually poll the result. cystatus DieTemp_Query(int16 * temperature) Checks to see if the SPC command started by DieTemp_Start() has finished. If the command has not finished, the temperature value is not read and returned. The caller will need to poll this function while the return status remains CYRET_STARTED. This can be used only in conjunction with the DieTemp_Start() API to successfully get the correct Die Temperature. The Die Temperature reading returned on the first sequence of DieTemp_Start() followed by DieTemp_Query() can be unreliable, so you must do this sequence twice and use the value returned from the second sequence. int16 * temperature: Address to store the temperature in degrees Celsius CYRET_SUCCESS if the temperature command completed successfully. CYRET_UNKNOWN if the there was an SPC failure. CYRET_STARTED if the temperature command has not completed. CYRET_TIMEOUT if waited too long before reading data. cystatus DieTemp_GetTemp(int16 * temperature) Sends the command and parameters to the SPC to start a Die Temperature reading and waits until it fails or completes. This is a blocking API. This function reads the Die Temperature twice and returns the second value to work around an issue in the silicon that causes the first value read to be unreliable. int16 * temperature: Address to store the temperature in degree of Celsius CYRET_SUCCESS if the command was completed successfully. Along with additional status codes from DieTemp_Start() or DieTemp_Query(). Document Number: 001-85002 Rev. *D Page 3 of 6

Die Temperature (DieTemp) PSoC Creator Component Datasheet Sample Firmware Source Code PSoC Creator provides many example projects that include schematics and example code in the Find Example Project dialog. For component-specific examples, open the dialog from the Component Catalog or an instance of the component in a schematic. For general examples, open the dialog from the Start Page or File menu. As needed, use the Filter Options in the dialog to narrow the list of projects available to select. Refer to the Find Example Project topic in the PSoC Creator Help for more information. MISRA Compliance This section describes the MISRA-C:2004 compliance and deviations for the component. There are two types of deviations defined: project deviations deviations that are applicable for all PSoC Creator components specific deviations deviations that are applicable only for this component This section provides information on component-specific deviations. Project deviations are described in the MISRA Compliance section of the System Reference Guide along with information on the MISRA compliance verification environment. The DieTemp component does not have any specific deviations. API Memory Usage The component memory usage varies significantly, depending on the compiler, device, number of APIs used and component configuration. The following table provides the memory usage for all APIs available in the given component configuration. The measurements have been done with the associated compiler configured in Release mode with optimization set for Size. For a specific design the map file generated by the compiler can be analyzed to determine the memory usage. Configuration PSoC 3 (Keil_PK51) Flash SRAM Bytes Bytes PSoC 5LP (GCC) Flash SRAM Bytes Bytes Default 339 0 210 0 Resources The DieTemp uses the on-chip Temperature sensor to measure the internal die temperature. Page 4 of 6 Document Number: 001-85002 Rev. *D

PSoC Creator Component Datasheet Die Temperature (DieTemp) DC and AC Electrical Characteristics Specifications are valid for 40 C TA 85 C and TJ 100 C, except where noted. Specifications are valid for 1.71 V to 5.5 V, except where noted. Parameter Description Conditions Min Typical Max Units Temp sensor accuracy Range: 40 C to +85 C ±5 C Component Changes This section lists the major changes in the component from the previous version. Version Description of Changes Reason for Changes / Impact 2.0.d 2.0.c Minor datasheet edits. Minor datasheet edits. 2.0.b Datasheet update. Added a note to not enter low power modes during temperature measurements. 2.0.a Minor datasheets edits and updates. Removed PSoC 5 references. PSoC 5 replaced by PSoC 5LP. 2.0 Removed CySpcStop() API call from DieTemp_Stop(). Added MISRA Compliance section. SPC cannot be stopped from runtime chip operation. The component does not have any specific deviations. 1.80 Added PSoC 5LP support. DieTemp APIs were updated. 1.70 The DieTemp_GetTemp() API was changed to read the DieTemp twice to fix an issue. 1.60 The DieTemp.c file GetTemp API was edited to fix the power-on reset error output. Due to changes to the cyboot SPC APIs. The DieTemp_GetTemp() API was returning the temperature even if the first read was unsuccessful. The DieTemp output on power-on reset was erroneous. 1.50.a Added characterization data to datasheet Added information to the component that advertizes its compatibility with silicon revisions. The tool returns an error/warns if the component is used on incompatible silicon. This component is not compatible with PSoC 3 ES2 or PSoC 5. Minor datasheet edits and updates 1.50 Switch from cydevice.h to cydevice_trm.h. The cydevice.h file has been made obsolete, so the APIs and generated code provided with PSoC Creator are not included with cydevice_trm.h. Document Number: 001-85002 Rev. *D Page 5 of 6

Die Temperature (DieTemp) PSoC Creator Component Datasheet Cypress Semiconductor Corporation, 2012-2017. This document is the property of Cypress Semiconductor Corporation and its subsidiaries, including Spansion LLC ( Cypress ). This document, including any software or firmware included or referenced in this document ( Software ), is owned by Cypress under the intellectual property laws and treaties of the United States and other countries worldwide. Cypress reserves all rights under such laws and treaties and does not, except as specifically stated in this paragraph, grant any license under its patents, copyrights, trademarks, or other intellectual property rights. If the Software is not accompanied by a license agreement and you do not otherwise have a written agreement with Cypress governing the use of the Software, then Cypress hereby grants you a personal, non-exclusive, nontransferable license (without the right to sublicense) (1) under its copyright rights in the Software (a) for Software provided in source code form, to modify and reproduce the Software solely for use with Cypress hardware products, only internally within your organization, and (b) to distribute the Software in binary code form externally to end users (either directly or indirectly through resellers and distributors), solely for use on Cypress hardware product units, and (2) under those claims of Cypress s patents that are infringed by the Software (as provided by Cypress, unmodified) to make, use, distribute, and import the Software solely for use with Cypress hardware products. Any other use, reproduction, modification, translation, or compilation of the Software is prohibited. TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. To the extent permitted by applicable law, Cypress reserves the right to make changes to this document without further notice. Cypress does not assume any liability arising out of the application or use of any product or circuit described in this document. Any information provided in this document, including any sample design information or programming code, is provided only for reference purposes. It is the responsibility of the user of this document to properly design, program, and test the functionality and safety of any application made of this information and any resulting product. Cypress products are not designed, intended, or authorized for use as critical components in systems designed or intended for the operation of weapons, weapons systems, nuclear installations, life-support devices or systems, other medical devices or systems (including resuscitation equipment and surgical implants), pollution control or hazardous substances management, or other uses where the failure of the device or system could cause personal injury, death, or property damage ( Unintended Uses ). A critical component is any component of a device or system whose failure to perform can be reasonably expected to cause the failure of the device or system, or to affect its safety or effectiveness. Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress products. You shall indemnify and hold Cypress harmless from and against all claims, costs, damages, and other liabilities, including claims for personal injury or death, arising from or related to any Unintended Uses of Cypress products. Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, WICED, PSoC, CapSense, EZ-USB, F-RAM, and Traveo are trademarks or registered trademarks of Cypress in the United States and other countries. For a more complete list of Cypress trademarks, visit cypress.com. Other names and brands may be claimed as property of their respective owners. Page 6 of 6 Document Number: 001-85002 Rev. *D