UM1539 User manual STEVAL-IFS017V1 multi device temperature sensor and RTC demo Introduction This document explains the functioning of the multiple temperature sensors and RTC demo which is based on a motherboard and daughter card approach. The complete system consists of one motherboard having an STM32F102xx microcontroller and different daughter cards having a temperature sensor and RTC.
Contents UM1539 Contents 1 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1 Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.2 System setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.2.1 Power supply unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.2.
UM1539 2 Contents 1.2.29 M41T83_QFN RTC alarm setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 1.2.30 M41T83_QFN RTC watchdog configuration . . . . . . . . . . . . . . . . . . . . . 28 1.2.31 M41T83_QFN RTC timer configuration . . . . . . . . . . . . . . . . . . . . . . . . . 28 1.2.32 M41T83_QFN RTC digital calibration configuration . . . . . . . . . . . . . . . 28 1.2.33 M41T83_QFN RTC analog calibration configuration . . . . . . . . . . . . . . . 29 1.2.
List of tables UM1539 List of tables Table 1. Table 2. Table 3. Table 4. Table 5. Table 6. Table 7. 4/46 Power selection for daughter cards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Switch settings for selecting different addresses of STT75/STLM75/STDS75/STCN75 onboard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
UM1539 List of figures List of figures Figure 1. Figure 2. Figure 3. Figure 4. Figure 5. Figure 6. Figure 7. Figure 8. Figure 9. Figure 10. Figure 11. Figure 12. Figure 13. Figure 14. Figure 15. Figure 16. Figure 17. Figure 18. Figure 19. Figure 20. Figure 21. Figure 22. Figure 23. Figure 24. Figure 25. Figure 26. STM32F102xx based motherboard for temperature sensor and RTC . . . . . . . . . . . . . . . . . 1 Temperature sensor GUI connected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Getting started UM1539 1 Getting started 1.1 Package The contents of the complete package are as follows: 1. Hardware content: – 2. 3. – User manual (this document) – Schematics, Gerber files, BOM Firmware: – 4. 1.2 Demonstration board: STEVAL-IFS017V1 Documentation: Already programmed STM32F102xx device soldered on the demo board GUI installation file. System setup The steps for starting the demo board are as follows: 1. Install the GUI .exe in the computer.
UM1539 1.2.1 Getting started Power supply unit There are two power sections in this system: 1.2.2 1. Power for motherboard. 2. Power for temperature sensor daughter cards. Power for motherboard The motherboard input power is 5 V from a USB connection. This 5 V is converted to 3.3 V using the LD39080DT33 voltage regulator. The STM32F102xx microcontroller is operated at 3.3 V. 1.2.
Getting started UM1539 Figure 3. Logic level and position of switch for address selection ,OGIC LEVEL AT ADDRESS LINES 3WITCH POSITION FOR ADDRESS LINES ,/7 LOGIC ()'( LOGIC !- V 1.2.5 Address configuration for STTS75, STDS75, STLM75 and STCN75 temperature sensors The STTS75, STDS75, STLM75 and STCN75 all are digital temperature sensors with 3 address lines. There are 8 possible addresses for these sensors.
UM1539 1.2.6 Getting started Address configuration for STTS2002 and STTS424E02 temperature sensors The STTS2002 and STTS424E02 are digital temperature sensors with 3 address lines. There are 8 possible addresses for these sensors. SW2 corresponds to A0, SW3 corresponds to A1 and SW4 corresponds to A2 address lines of the sensor. Below are the allowed addresses and their settings for these sensors: Table 3.
Getting started UM1539 Below is the table for selecting the address of the STTS751 temperature sensor: Table 4. Address selection for STTS751 sensor Device type Connector CN5 on daughter card Sensor address Short Pin1 and Pin2 0x90 Short Pin3 and Pin4 0x92 Short Pin5 and Pin6 0x70 Short Pin7 and Pin8 0x72 Short Pin1 and Pin2 0x94 Short Pin3 and Pin4 0x96 Short Pin5 and Pin6 0x74 Short Pin7 and Pin8 0x76 STTS751-0 STTS751-1 1.2.
UM1539 Getting started Figure 4. 1.2.10 List of temperature sensors in the GUI GUI window for STTS75, STDS75, STLM75 and STCN75 sensors The STTS75, STLM75, STDS75, and STCN75 sensors are supported by a single GUI window, as shown in Figure 5. There are radio buttons for selecting one of four possible sensors (STTS75, STLM75, STDS75, and STCN75). Below are the steps for operating these sensors using the GUI: 1.
Getting started UM1539 a) Default state: alarm OFF b) Temperature reaches above the over-limit temperature (Tos): alarm GLOWS c) Temperature reaches below Thys: alarm OFF On the motherboard there is an LED D5 which shows the alarm signal from the #ALERT pin of the temperature sensor. In the case of alert, D5 glows, and as soon as the alert signal goes OFF, D5 switches off. 8. There is a One-shot mode button present in the GUI which functions only for the STTS75 sensor.
UM1539 Getting started Figure 6. 1.2.11 Wrong address message on GUI GUI window for STTS424E02 temperature sensor The STTS424E02 is a simple digital temperature sensor with an on-chip 2 Kb EEPROM. Below are the steps to operate the STTS424E02 sensor in GUI mode: 1. Plug the daughter card of the STTS424E02 on the motherboard. 2. Select the sensor option for the STTS424E02 from the GUI, as shown in Figure 4. 3.
Getting started UM1539 register). This alarm glows as the BAW alarm in the GUI. As the measured temperature becomes greater than the BAW setting, the alarm switches off. b) Above alarm window (AAW): This alarm occurs when the measured temperature goes above the temperature setting performed in the alarm temperature upper boundary register (upper temp register). This alarm glows as the AAW alarm in the GUI. As the measured temperature becomes lower than the AAW setting, the alarm switches off.
UM1539 1.2.12 Getting started GUI window for EEPROM section of the STTS424E02 temperature sensor The STTS424E02 sensor has an on-chip 2 Kb EEPROM. For the STTS424E02 sensor selected in the GUI, the “Edit EEPROM” button gets enabled. The EEPROM window opens on clicking this Edit EEPROM button. The steps for using the EEPROM of the STTS424E02 sensor are as follows: 1. Check the address of the EEPROM. The last 3 bits of the EEPROM address are derived from the last 3 bits of the temperature sensor address.
Getting started UM1539 Figure 8. 1.2.13 EEPROM GUI window for the STTS424E02 GUI window for the STLM20 temperature sensor The STLM20 is an analog temperature sensor. The steps for using the GUI for the STLM20 are as follows: 1. Plug the STLM20 daughter card on the motherboard. 2. Select the STLM20 sensor in the GUI and the GUI window for the STLM20 opens, as shown in Figure 9. 3. The Read button reads the sensor value and voltage output value, at that moment, from the sensor. 4.
UM1539 1.2.14 Getting started GUI window for the STTS751 temperature sensor The STTS751 temperature sensor is available in two versions: ● STTS751-0 ● STTS751-1. Address configuration for this sensor is done using the jumper CN5 present on the daughter card (explained in Section 1.2.8). The steps to operate the STTS751 sensor in GUI mode are as follows: 1. Place the daughter card on the motherboard. 2. Select the address of the daughter card using CN6/CN5 on the daughter card (refer to Section 1.
Getting started UM1539 Figure 10. STTS751 sensor address selection connector CN5 STTS751 sensor address selection connector CN6 AM12164v1 Figure 11. GUI window for the STTS751 1.2.15 GUI window for the STTS2002 temperature sensor The STTS2002 is a digital temperature sensor with an on-chip 2 Kb EEPROM. Below are the steps to operate the STTS2002 sensor in GUI mode: 18/46 1. Plug the daughter card of the STTS2002 on the motherboard. 2.
UM1539 Getting started error message appears in the GUI. In the case of an error, re-check the address with the correct option. 4. All the registers show the default readings at first selection. 5. Press the Loop button to continuously read the temperature in the GUI. 6. Configure the different registers through the GUI and observe the behavior of the sensor. The bits of the configuration register can be individually selected using the GUI. 7.
Getting started UM1539 and is seen as ACK glowing in the GUI. For timeout delay greater than 29 milliseconds, the device returns NACK to communication and is seen as NACK glowing in the GUI. This ACK and NACK is the response from the sensor to the I2C communication along with the delay in between. 12. I2C speed can be selected to be either 100 kHz or 400 kHz using the Radio buttons and Write button. Figure 12. GUI Window for STTS2002 1.2.
UM1539 Getting started button which returns the status of the memory being protected or not. Writing PSWP permanently protects the memory for read and write. Once the memory is permanently write protected then neither read nor write is possible for the lower half memory area. 4.
Getting started UM1539 Figure 14. PSWP for permanent write protection 1.2.17 RTC features The GUI supports the demonstration of three RTCs: 1. M41T82 RTC mounted on separate daughter card. 2. M41T83 (QFN package) mounted on separate daughter card. 3. M41T83 (SOX18 package) mounted on separate daughter card. RTC mode of the GUI is selected through the RTC selection icon in the GUI. Pressing the RTC selection icon shows the selection menu for the RTC, as shown in Figure 15. Figure 15.
UM1539 1.2.18 Getting started GUI window for M41T82SM6 RTC M41T82 RTC is available in SO8 package and is mounted on a separate daughter card. The steps for selecting the M41T82 RTC are as follows: 1. Select the supply for the RTC daughter card using jumper CN5 and CN6 on the motherboard. Refer to Section 1.2.3. 2. Plug in the M41T82 RTC daughter card on the motherboard (take note of the notch on the daughter card connector for mounting). 3. Power up the motherboard using the USB cable. 4.
Getting started 1.2.19 1.2.20 UM1539 M41T82 RTC date and time setting 1. Click on the RTC selection icon in the toolbar of the GUI. RTC selection Radio button appears in the GUI, as shown in Figure 15. 2. Select for RTC M41T82, it opens the RTC GUI window for the M41T82, as shown in Figure 16. 3. Press the Update button to enable the configuration of RTC. Pressing the Update button enables the GUI window for RTC configuration. It also reads the RTC registers and displays the same in the GUI. 4.
UM1539 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 Getting started M41T82 RTC watchdog configuration 1. The watchdog of RTC is enabled by configuring the multiplier and resolution settings and pressing the Write button. 2. The time period for watchdog is calculated by the resolution x multiplier value. This value is in seconds. 3. The watchdog alarm occurs when the time set in the watchdog register has lapsed. 4. The status of the watchdog alarm can be seen only by pressing the Read Flags button.
Getting started 1.2.26 UM1539 1. HT bit set and reset option is selected from the dropdown menu. 2. Setting the HT bit halts the clock display of RTC. 3. Resetting the HT bit resumes the clock display of RTC. M41T82 RTC FT bit configuration The FT bit is a checkbox; if none of the RTC interrupt functions (alarm/WDG/SQW) are selected, checking this box selects the frequency test function of RTC and D3 LED on the motherboard lights up. Resetting the bit switches off the frequency test function. 1.2.
UM1539 1.2.28 1.2.29 Getting started M41T83_QFN date and time setting 1. Click on the RTC Selection icon in the toolbar of the GUI. the RTC selection Radio button appears in the GUI, as shown in Figure 15. 2. Select RTC M41T83 (QFN) and the RTC child window opens, as shown in Figure 17. 3. Press the Update button to enable the configuration of RTC. Pressing the Update button enables the GUI window for RTC configuration.
Getting started 1.2.30 1.2.31 1.2.32 28/46 UM1539 5. The alarm status can be seen in the GUI by pressing the Read Flags button. Pressing read flags again clears the alarm register of RTC and its new status is shown in the GUI. 6. The Reset OF button is used to reset the OF bit in the alarm register and, correspondingly, the Oscillator bit alarm is also cleared by the Reset button. M41T83_QFN RTC watchdog configuration 1.
UM1539 1.2.33 1.2.34 Getting started M41T83_QFN RTC analog calibration configuration 1. Check the FT bit checkbox. 2. The slider for analog calibration gets enabled and LED D6 glows on the motherboard. This disables the remaining RTC window. 3. Enter the calibration value using the slider and press the Write button to configure the value inside the RTC registers. 4. After the value is configured, remove the check from the FT bit checkbox and then the remaining GUI window gets enabled.
Getting started UM1539 Figure 18. GUI window for M41T83_SOX18 RTC 1.2.38 30/46 M41T83_SOX18 RTC date and time setting 1. Click on the RTC Selection icon in the toolbar of the GUI. The RTC selection Radio button appears in the GUI, as shown in Figure 15. 2. Select RTC M41T83 and the RTC child window opens, as shown in Figure 18. 3. Press the Update button to enable the configuration of RTC. Pressing the Update button enables the GUI window for RTC configuration.
UM1539 1.2.39 Getting started M41T83_SOX18 RTC alarm settings M41T83_SOX18 RTC has two alarm functions: ● Alarm one ● Alarm two a) 1. Set the alarm date and time using the alarm one date and time section on the RTC GUI window. 2. Check the A1IE checkbox to see the alarm status on the interrupt output pin of RTC. This is seen as a D6 LED glowing on the motherboard whenever the alarm match occurs. 3. Press the Write button to program the alarm one date and time in the RTC. 4.
Getting started 1.2.41 1.2.42 1.2.43 UM1539 M41T83_SOX18 RTC timer configuration 1. M41T83 RTC has an 8-bit countdown timer. This timer counts down from the user configured value (timer countdown value) to 1 and then again reloads the timer countdown value. 2. Enter any value between 1 and 255 inside the value area of the timer. 3. Select the timer ticking clock from the clock frequency dropdown menu of the timer. 4. Enable the checkbox for the TE bit, this enables the timer.
UM1539 1.2.45 Getting started M41T83_SOX18 RTC FT bit configuration The FT bit is a checkbox; if none of RTC interrupt functions (Alarm/WDG/SQW) are selected, then checking this box selects the frequency test function of RTC and it is displayed as a glow on D6 LED. Resetting the bit switches off the frequency test function. 1.2.46 M41T83_SOX18 RTC square wave configuration M41T83_SOX18 RTC has a square wave output option. 1.2.47 1.
Getting started UM1539 Figure 19. Plotter selection window Graph Plotter start selector button Time interval selector AM12173v1 Figure 20.
UM1539 Getting started Figure 21. Tool bar of plotter window Display the saved file Save plot window Save plotter data in .xls Plotter toolbar AM12175v1 1.2.48 Application LEDs There are 4 application specific LEDs on the board: 1. I2C LED: This is a green LED (D4) which blinks whenever there is an I2C communication occurring in the application. 2. RQ1 LED: This is a green LED (D6) which glows in accordance to the signal status on the #IRQ1 pin of M41T83 RTC. 3.
System overview 2 UM1539 System overview This demo is a generic system for evaluating the family of temperature sensors and RTC from ST. This demo has 2 main blocks: 2.1 1. STM32F102xx microcontroller based motherboard. 2. Temperature sensors and RTC based daughter cards. Hardware design description Figure 22. Block diagram 2.1.1 ● JP: jumper for selecting one VCC (daughter card supply) out of 2.3 V/ 2.7 V/ 3.0 V/ 3.
UM1539 2.2 System overview Hardware layout Figure 23 and 24 below show the component layout to help the user to locate different components / sections on the board. Figure 23. Hardware layout: motherboard top Figure 24.
/46 # N & Doc ID 023106 Rev 1 ) / %3$!5,# " ) / 0" ? 53")/ 2 K .# # N & 53"$0 53"$- *4!'?#/.. 2 - '.$ 2 2 2 K .# # P & 0! ? 53"$0 0! ? 53"$- 0! ? *4!' 2 K 2 K 53"$0 N234 2 K 3(%,, 3(%,, 3(%,, 3(%,, # P & 0! ? *4!' 5 2 K ) / # N & 24#+ 53"$- 0! ? 3#+ 0! ? 30) -)3/ 0! ? 30) -/3) 0" ? !$# ). $"'!#+ 6?53" $"'21 #/.
2 K #/- #$ #. 0" ? !$$2 0" ? !$$2 6 2 K 2 K U3$ #/.. 0# ? 3$33 0! ? 30) -/3) 0! ? 3#+ 0! ? 30) -)3/ 2 + '.$ 6## ?$# ARD '.$ 6## ?$# ARD '.$ 6## ?$# ARD --#?#/. 236 236 #3 $!4!?). 3#,+ $!4!?/54 37 +%9 30$4 37 37 +%9 30$4 37 37 +%9 30$4 6$$ 0" ? !$$2 37 !$$2%33 3%,%#4)/.
Bill of materials Table 5. BOM Category UM1539 4 Reference designator Component description Package Manuf.
Category Capacitors Doc ID 023106 Rev 1 Capacitors BOM (continued) Manuf. Manufacturer’s ordering code / orderable part number or equivalent Supplier Supplier ordering code SMD0805 AVX Corporation or equivalent 08051A200JAT2A Digi-Key 478-3735-1-ND 100 nF SMD0805 Panasonic - ECG or equivalent ECJ-2VB1E104K or equivalent Digi-Key PCC1828CT-ND C6,C9 4.
Category Doc ID 023106 Rev 1 Resistors BOM (continued) Manuf. Manufacturer’s ordering code / orderable part number or equivalent Supplier Supplier ordering code SMD0805 Panasonic - ECG or equivalent ERJ-6GEYJ221V Digi-Key P220ACT-ND 4.2 kΩ SMD0805 Panasonic - ECG or equivalent ERJ-6ENF4221V Digi-Key P4.
Category BOM (continued) Manuf. Manufacturer’s ordering code / orderable part number or equivalent Supplier Supplier ordering code SMD0805 Susumu or equivalent RR1220P-392-D Digi-Key RR12P3.9KDCTND 5.6 kΩ SMD0805 Susumu or equivalent RR1220P-562-D Digi-Key RR12P5.6KDCTND R37 6.8 kΩ SMD0805 Susumu or equivalent RG2012P-682-B-T5 Digi-Key RR12P6.8KDTRND R38 8.2 kΩ SMD0805 Susumu or equivalent RR1220P-822-D Digi-Key RR12P8.
Definitions UM1539 Appendix A Table 6.
UM1539 Revision history Revision history Table 7. Document revision history Date Revision 16-Nov-2012 1 Changes Initial release.
UM1539 Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST’s terms and conditions of sale.