DPP202A000

MEAS TSYS02D XPLAINED PRO BOARD
Digital Temperature DCS Development Tools
SENSOR SOLUTIONS /// MEAS TSYS02D XPLAINED PRO BOARD 05/2016
Page 4
Project Setup
This project is based on ATSAMD20J18 board with Measurement Specialties Xplained Pro extension board connected to
EXT1 pad as shown on figure below.
Running the Application
1. Download the TSYS02D Xplained Pro example package on
TE Website
2. Decompress the archive file
3. Open the .cproj project file with Atmel Studio 6
4. You will now be able to build the TSYS02D example project -
5. Finally, run the build result on your Xplained Pro Board -
Application Code
This section is intended to provide a basic example of functionality.
/**
* \file main.c
*
* \brief TSYS02D temperature monitoring application file
*
* Copyright (c) 2014 Measurement Specialties. All rights reserved.
*
*/
#include <asf.h>
float temperature;
uint64_t serial;
int main (void)
{
enum tsys02d_status status;
float last_temperature = 0;
MEAS TSYS02D XPLAINED PRO BOARD
Digital Temperature DCS Development Tools
SENSOR SOLUTIONS /// MEAS TSYS02D XPLAINED PRO BOARD 05/2016
Page 5
float variation = 0;
enum tsys02d_heater_status heater;
system_init();
delay_init();
// Configure device and enable
tsys02d_init();
if( !tsys02d_is_connected() )
return -1;
// Reset TSYS02D
status = tsys02d_reset();
if( status != tsys02d_status_ok)
return -1;
// Monitor temperature every 500ms
while (1) {
tsys02d_read_temperature( &temperature);
if( status != tsys02d_status_ok)
return -1;
variation += temperature - last_temperature;
// Look for significant temperature variation
if ( variation >= 0.5 ) {
// Yes, so turn LED on.
port_pin_set_output_level(LED_0_PIN, LED_0_ACTIVE);
variation = 0;
} else if ( variation <= -0.5 ) {
// No, so turn LED off.
port_pin_set_output_level(LED_0_PIN, LED_0_INACTIVE);
variation = 0;
}
delay_ms(500);
last_temperature = temperature;
}
return 0;
}
MEAS TSYS02D XPLAINED PRO BOARD
Digital Temperature DCS Development Tools
SENSOR SOLUTIONS /// MEAS TSYS02D XPLAINED PRO BOARD 05/2016
Page 6
Ordering Information
Description
Part Number
MEAS TSYS02D XPLAINED PRO BOARD
DPP202A000
PRODUCT SHEET
MEAS France SAS,
a TE Connectivity company.
Impasse Jeanne Benozzi CS 83 163
31027 Toulouse Cedex 3, FRANCE
Tel:+33 (0) 5 820 822 02
Fax: +33 (0) 5 820 821 51
customercare.tlse@te.com
te.com/sensorsolutions
Measurement Specialties, Inc., a TE Connectivity company.
MEAS, Measurement Specialties (logo), TE Connectivity and TE connectivity (logo) are trademarks. All other logos,
products and/or company names referred to herein might be trademarks of their respective owners.
The information given herein, including drawings, illustrations and schematics which are intended for illustration purposes
only, is believed to be reliable. However, TE Connectivity makes no warranties as to its accuracy or completeness and
disclaims any liability in connection with its use. TE Connectivity‘s obligations shall only be as set forth in TE
Connectivity‘s Standard Terms and Conditions of Sale for this product and in no case will TE Connectivity be liable for any
incidental, indirect or consequential damages arising out of the sale, resale, use or misuse of the product. Users of TE
Connectivity products should make their own evaluation to determine the suitability of each such product for the specific
application.
© 2016 TE Connectivity Ltd. family of companies All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to
whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

DPP202A000

Mfr. #:
Manufacturer:
TE Connectivity / Measurement Specialties
Description:
Temperature Sensor Development Tools Xplained Pro TSY02D
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet