STMicroelectronics STM32100E-EVAL User Manual

April 2011 Doc ID 18064 Rev 1 1/49
UM1011
User manual
STM32100E-EVAL demonstration firmware
Introduction
This user manual describes the demonstration firmware running on the STM32100E-EVAL evaluation board, which can be used to evaluate the capabilities of the high-density value line STM32F100ZET6 microcontroller and on-board peripherals.
This demo contains many applications that can be easily reused, such as RTC calendar, file system FAT implementation on SD Card, Waveplayer with STM32 DAC peripheral, HDMI CEC networking demo with an infrared remote control capability, temperature sensor interfacing and TFT LCD with touch screen.
The STM32100E-EVAL board is delivered with the demonstration programmed in the internal Flash memory, and all the files needed by the demonstration are programmed in the MicroSD card. At each reset (board power-up, external reset, etc.), the demonstration is executed.
In case the STM32100E-EVAL board was not factory-programmed or the demonstration application was erased, the in-circuit programming (ICP) boot loader can be used to program this file. For more details, refer to Section 3: STM32100E-EVAL demonstration
package and Section 4: STM32100E-EVAL demonstration programming.
This demonstration firmware is available for download from the STMicroelectronics website:
www.st.com.
www.st.com
Contents UM1011
2/49 Doc ID 18064 Rev 1
Contents
1 Evaluation board overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.1 Power control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.2 Clocking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.3 Reset control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.4 Debugging JTAG interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.5 Serial wire debugger interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.6 Embedded ST-LINK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.7 Display devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.7.1 LCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.7.2 LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.8 Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.8.1 RS232 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.9 Motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.10 IrDA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.11 Miscellaneous peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.11.1 Joystick . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.11.2 Push-buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.11.3 12-bit analog-to-digital converter (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.11.4 Audio amplifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.11.5 Storage memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.11.6 Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2 Running the demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.1 Menu tree and navigation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2 Demonstration startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.3 Time and date configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.4 Menu navigation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.4.1 Navigation procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.5 Clock sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.5.1 Clock control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.5.2 Clock failure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.6 STM32F100ZET6 resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
UM1011 Contents
Doc ID 18064 Rev 1 3/49
2.6.1 Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.6.2 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.6.3 External interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.6.4 Internal memory organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.6.5 External memory organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.7 Demonstration applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.7.1 Product presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.7.2 Calendar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.7.3 Image Viewer submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.7.4 Wave Player submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
2.7.5 Low power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
2.7.6 Infrared decoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
2.7.7 Thermometer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
2.7.8 HDMI™ CEC submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
2.7.9 Help submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
2.7.10 About submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
3 STM32100E-EVAL demonstration package . . . . . . . . . . . . . . . . . . . . . . 44
3.1 Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
3.2 Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
3.3 Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
4 STM32100E-EVAL demonstration programming . . . . . . . . . . . . . . . . . 46
4.1 Programming the media files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
4.2 Programming the demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
4.2.1 Using IAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
5 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
List of tables UM1011
4/49 Doc ID 18064 Rev 1
List of tables
Table 1. STM32F100ZET6 demonstration peripherals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 2. STM32F100ZET6 demonstration interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 3. STM32F100ZET6 demonstration external interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 4. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
UM1011 List of figures
Doc ID 18064 Rev 1 5/49
List of figures
Figure 1. Evaluation board overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 2. Structure of the demonstration menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 3. SD Card check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 4. Warning message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 5. ST logo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 6. STM32 presentation slide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 7. Time and date configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 8. Application main menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 9. Application submenus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 10. Navigating in the demonstration menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 11. Clock tree diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 12. No HSE clock detected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 13. Standby mode entered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 14. Internal Flash memory organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Figure 15. MicroSD Card organization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 16. Card removal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 17. Product presentation is ready to start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 18. First presentation slide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 19. Last presentation slide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 20. No loaded wave file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 21. End of slide show . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 22. Setting the time and date . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 23. Time Adjust submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 24. Time Show submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Figure 25. Setting the year. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Figure 26. Setting the month . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 27. Setting the day of the month . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 28. Date Show submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 29. Setting the alarm activation time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 30. Alarm Show submenu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 31. Time and date not configured . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 32. Image Viewer submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 33. Wave Player submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 34. Wave Player interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 35. Wave Player Playing submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Figure 36. Pause submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Figure 37. Stop mode menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 38. Stop mode entered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 39. MCU in Stop mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 40. RTC Alarm wakes up the MCU from Stop mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 41. Setting the wakeup time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 42. RTC Alarm wakeup configured . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 43. RTC Alarm wakeup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 44. Time and Date configuration prompt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 45. Entering Standby mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 46. MCU in Standby mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 47. Setting the wakeup time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 48. RTC Alarm wakeup configured . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
List of figures UM1011
6/49 Doc ID 18064 Rev 1
Figure 49. Time and Date configuration prompt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 50. Infrared Decoding menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Figure 51. Infrared protocol submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Figure 52. Thermometer submenu selected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Figure 53. Temperature display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Figure 54. Warning temperature display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Figure 55. Temperature sensor error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Figure 56. HDMI CEC submenu selected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Figure 57. HDMI CEC configuration submenu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Figure 58. CEC menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Figure 59. Select CEC command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Figure 60. Receive subscreen information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Figure 61. Help submenu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Figure 62. Joystick push-buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Figure 63. Second Help slide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Figure 64. About submenu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Figure 65. STM32100E-EVAL demonstration package directory tree . . . . . . . . . . . . . . . . . . . . . . . . . 44
Figure 66. SD Card directory organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
UM1011 Evaluation board overview
Doc ID 18064 Rev 1 7/49
1 Evaluation board overview
The STM32100E-EVAL evaluation board provides a development and demonstration platform for STM32F100Zx-based applications. It is used to evaluate the major functions of the STM32F100ZET6 microcontroller.
Figure 1 summarizes the main functional blocks of the evaluation board.
Figure 1. Evaluation board overview
34-&:%4
23
TRANSCEIVER
)R$!
TRANSCEIVER
6
-ICRO3$ CARD
3PEAKER AMPLIFIER
".#
CONNECTOR
,%$S
0OTENTIOMETER
53!24
$"CONNECTOR
$!#
'0)/
)#
%XTENSION
CONNECTORFOR
'0)/S
4EM PERATURE
SENSOR
*4!'
*OYSTICK
!$#
%MBEDDED
34 ,).+
53"4YPE "
CONNECTOR
"UTTONS
-OTOR CONTROL CONNECTOR
-#
*4! 'TRACE
CONNECTOR
53!24
$"CONNECTOR
30)
53!24
23
TRANSCEIVER
3ERIAL&LASH30)
#%#
)#
($-)
CONNECTOR
($-)
CONNECTOR
%%02/-
,#$TOUCH
SCREEN
23
TRANSCEIVER
)2RECEIVER 4)-?#(
&3-#
-"YTE
32!-
-BIT
/NE.!.$
4&4
,#$
REGULATOR
53!24
53!24
53!24
-36
Evaluation board overview UM1011
8/49 Doc ID 18064 Rev 1
1.1 Power control
The evaluation board can be powered from an external 5 V supply or from the USB connector. All other required voltages are provided by on-board voltage regulators.
1.2 Clocking
Two clock sources are available on the STM32100E-EVAL evaluation board:
32 kHz crystal for embedded RTC
8 MHz crystal for the STM32F100ZET6 main clock system
1.3 Reset control
The reset can be generated by hardware or software:
Reset button: activates the RESET input when pressed
JTAG reset
1.4 Debugging JTAG interface
Software debug is done via the standard ARM® JTAG interface, a 20-pin IDC (insulation displacement connector) for connection to the standard ARM host interface.
1.5 Serial wire debugger interface
The serial wire debug port (SWD-DP) provides a 2-pin (clock + data) interface to the AHP­AP port.
1.6 Embedded ST-LINK
The ST-LINK in-circuit debugger/programmer is embedded on the board. It supports the STM32F100ZET6 MCU.
1.7 Display devices
1.7.1 LCD
A color LCD module is mounted on the STM32100E-EVAL board. It is interfaced through FSMC of STM32F100ZET6.
1.7.2 LEDs
Four general-purpose LEDs are available.
UM1011 Evaluation board overview
Doc ID 18064 Rev 1 9/49
1.8 Interfaces
1.8.1 RS232
The STM32F100ZET6 evaluation board (STM32100E-EVAL) provides two on-board RS232 serial ports. Both RS232 ports are accessed via DB9 connectors.
1.9 Motor control
The STM32100E-EVAL evaluation board supports inductor motor control via a 34-pin connector. This connector provides all required control and feedback signals to and from the motor power-driving board.
1.10 IrDA
The STM32100E-EVAL evaluation board supports IrDA communication. The interface is mounted on UART4.
1.11 Miscellaneous peripherals
1.11.1 Joystick
The board features a four-direction joystick with a selection key.
1.11.2 Push-buttons
The following push-buttons are available:
Key
Tamper
Wakeup: used to wake up the processor from low power mode
1.11.3 12-bit analog-to-digital converter (ADC)
The MCU ADC channel (ADC1_IN14) is connected to an on-board variable resistor. The variable resistor provides a voltage in the range of 0 V to 3.3 V.
Moreover, a BNC connector is available for analog input.
1.11.4 Audio amplifier
The STM32100E-EVAL evaluation board implements a dedicated audio amplifier which can be interfaced with the STM32 DAC peripheral. For the audio output, a speaker and an audio jack connector are available on the board and connected to the DAC.
1.11.5 Storage memories
The STM32100E-EVAL evaluation board features an 8 Mbyte SPI Flash memory and an SD Card™ memory connected to the SPI2 peripheral. It features also an 64 Kbyte I
2
C
EEPROM memory connected to I2C2.
Evaluation board overview UM1011
10/49 Doc ID 18064 Rev 1
1.11.6 Temperature sensor
The STM32100E-EVAL evaluation board includes an I2C temperature sensor connected to the I2C2 peripheral.
UM1011 Running the demonstration
Doc ID 18064 Rev 1 11/49
2 Running the demonstration
2.1 Menu tree and navigation
Figure 2 shows the menu system of the STM32F100ZET6 demonstration. The main menu is
shown on the left-hand side. The UP, DOWN, RIGHT and LEFT joystick directions allow the user to navigate between items in the main menu and the submenus.
The user can also navigate through the demonstration menu by using the touch screen.The touch screen works only at the first level of the demonstration (main menu).
To enter a submenu, press the SEL push-button. The SEL push-button designates the action of vertically pressing the top of the joystick, as opposed to moving it horizontally UP, DOWN, RIGHT or LEFT.
To exit a submenu, select the Return menu and press SEL.
Running the demonstration UM1011
12/49 Doc ID 18064 Rev 1
Figure 2. Structure of the demonstration menus
2.2 Demonstration startup
The demonstration starts after a board reset. The system checks if an SD memory card is already plugged into the connector CN6. If no card detected, the demonstration does not start and the message shown in Figure 3 is displayed on the LCD screen.
0RODUCT
PRESENTATION
3TART

4IME
$ATE
!LARM
#ALENDAR

 
2ETURN
3TART
(ELP

4HERMOMETER
-36
2ETURN
3)2#
!BOUT
2ETURN
2ETURN
3HOW
3HOW
0HILIPS2#
!BOUT
,OWPOWER
MODE
7AVE0LAYER
)MAGE
6IEWER
)MAGE6IEWER
2ETURN
2ETURN
2ETURN
3TANDBY
3TOP
2ETURN
2ETURN
2ETURN
($-)#%#
2ETURN
%XIT24#ALARM
%XITWAKEUPPIN
%XIT%84)
2ETURN
2ETURN
($-)#%#
-AINMENU
%XIT24#ALARM
)NFRARED
DECODING
7AVE0LAYER
2ETURN
3HOW
2ETURN
!DJUST
3HOW
2ETURN
!DJUST
3HOW
2ETURN
!DJUST
3HOW
2ETURN
4EMPERATURE
UM1011 Running the demonstration
Doc ID 18064 Rev 1 13/49
Figure 3. SD Card check
To continue the demonstration, insert an SD Card. The demonstration graphic icons and bitmap files are now checked in the MicroSD Card (see Section 2.6.5: External memory
organization). All the icons have to be correctly programmed in the MicroSD Card for the
demonstration to start. If an icon is missing, the demonstration does not start and the message shown in Figure 4 is displayed on the LCD screen.
Figure 4. Warning message
If the icons are correctly loaded into the SD Card memory, the welcome screen is displayed and the ST logo appears on the LCD screen:
Figure 5. ST logo
Please insert SD Card
Warning
No loaded Bitmap files.
Demo cannot be
executed.
Please be sure that all files are correctly programmed in the MicroSD card and restart the demo
Running the demonstration UM1011
14/49 Doc ID 18064 Rev 1
After some seconds, the following STM32 slide is displayed on the LCD screen:
Figure 6. STM32 presentation slide
2.3 Time and date configuration
When the board is powered up for the first time and no power supply is detected on V
BAT
(battery), you are prompted to set the time, year, month and day. The following message appears on the LCD screen.
Figure 7. Time and date configuration
To set the time and date, press the SEL push-button. The Time Adjust and Date Adjust menus are displayed. Use the joystick UP/DOWN and SEL push-buttons to set the time/date.
To ignore the configuration sequence, press any key except for the SEL push-button.The main menu is displayed.
Note: 1 You can set the time parameters at any time by using the Calendar menu (see
Section 2.7.2: Calendar).
2 If the time has already been configured, then the number of elapsed days (higher than
1 day) since the last time the demonstration board was powered up appears on the LCD screen. It is soon followed by the current date.
2.4 Menu navigation
Once the time/date have been set, the main menu appears. The main menu is displayed in the form of a set of icons. It shows all the submenus in the same screen. You can navigate through the submenus by pressing the joystick UP, DOWN, RIGHT and LEFT. To enter the desired submenu, press the SEL joystick push-button or push on the desired icon, and the submenu corresponding to the selected icon is displayed.
UM1011 Running the demonstration
Doc ID 18064 Rev 1 15/49
Figure 8. Application main menu
Note: The icons shown in Figure 8 are taken from
http://commons.wikimedia.org/wiki/Crystal_Clear.
Once a submenu has been selected, the name of the application is listed at the top of the display and all the corresponding submenus are listed below as shown in Figure 9.
Figure 9. Application submenus
2.4.1 Navigation procedure
The demonstration menu is based on circular navigation, submenu selection, item selection and back navigation.
To navigate through the demonstration menus, use the joystick push-buttons located on the evaluation board: RIGHT, LEFT, UP, DOWN and SEL.
The UP, DOWN, RIGHT and LEFT push-buttons are used to perform circular navigation
in the main menu and the current menu items.
TOUCH SCREEN is used also to perform navigation only in the main menu.
The SEL push-button selects the current item.
The UP and DOWN push-buttons are used for vertical navigation in the submenus.
To return to the upper menu, go to the Return menu and press SEL.
APP Main Menu Name
Loading...
+ 34 hidden pages