Home

STM32100E-EVAL demonstration firmware

image

Contents

1. The progress bar and the volume bar are displayed at the bottom of the Wave Player Playing submenu The progress bar is updated about every 1 of the audio file duration and the volume bar is updated each time the volume level is changed At this application level Press the SEL push button to pause the audio stream Press the LEFT push button to decrement the audio stream Press the RIGHT push button to increment the audio stream Press the DOWN push button to exit the Wave Player submenu Press the TAMPER push button to decrement the volume level Press the KEY push button to increment the volume level When the audio stream is paused the menu in Figure 36 is displayed Figure 36 Pause submenu To resume playing press the SEL push button to return to the Wave Player Playing submenu as shown in Figure 35 When the audio stream is stopped the stream position is reset and you return to the Wave Player interface menu shown in Figure 34 Doc ID 18064 Rev 1 31 49 Running the demonstration UM1011 2 7 5 32 49 Low power modes The STM32F100ZET6 microcontroller features several operating modes in which the power consumption is reduced The purpose of this menu is to demonstrate the behavior of the microcontroller in various low power modes The Stop and Standby modes are used as examples Stop mode menu This menu allows you to put the STM32F100ZET6 in Stop mode The software performs the specific instr
2. N UM1011 J User manual STM32100E EVAL demonstration firmware April 2011 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 corm Doc ID 18064 Rev 1 1 49 www st com Contents UM1011 Contents 1 Evaluation board overview 00 cece eee eee 7 1 1 Pow
3. are supported by the demonstration For more details refer to Section 2 7 4 Wave Player submenu and Section 2 7 3 Image Viewer submenu Figure 66 SD Card directory organization Mandatory files ee STM32100E F STFILES User 1 User files bmp wav Demo The default content of the media files STFILES and USER directories can be retrieved from Binary Media folder So if you want to reprogram the MicroSD Card you can copy the content of the Binary Media to your own SD memory Programming the demonstration You can program the demonstration using three methods Using the Bootloader To program the demonstration binary images into the internal Flash memory you have to use the stm32100e eval fw v1 0 0 bin file located under Project STM32100E EVAL Binary with embedded Bootloader For more details please refer to application note AN2606 STM32 microcontroller system memory boot mode Using preconfigured projects 1 Select the folder corresponding to your preferred toolchain MDK ARM EWARM HiTOP RIDE or TrueSTUDIO 2 Open the STM32100E_EVAL_Demo project and rebuild all sources Load the project image through your debugger 4 Restart the evaluation board press B1 reset button e Doc ID 18064 Rev 1 ky UM1011 STM32100E EVAL demonstration programming 4 2 1 Using IAP To program the demonstration s binary image into the internal Flash memory you have to use t
4. 843 a a a a Left Item 9 Right Item 10 unt Item 11 Right Item 12 Right Down Down Down Down Return ai15162 Clock sources Clock control The STMS2F100ZET6 internal clocks are derived from the HSE clocked by the external 8 MHz crystal In this demonstration application the various system clocks are configured as follows The system clock is set to 24 MHz The PLL is used as the system clock source 24 MHz The HCLK frequency is set to 24 MHz The timer clock TIMCLK is set to 24 MHz PCLK1 is set to 24 MHz PCLK2 is set to 24 MHz Only the RTC is clocked by a 32 kHz external oscillator Figure 11 illustrates the clock tree organization for this demonstration Doc ID 18064 Rev 1 ky UM1011 Running the demonstration Figure 11 Clock tree diagram HSE oscillator 8 MHz PCLK1 to APB1 peripherals APB1 prescaler 1 2 4 8 16 TIM2 3 4 5 6 7 x1 if APB1 prescaler 1 else x 2 multiplier PCLK2 to APB2 peripherals APB2 prescaler 1 2 4 8 16 TIM1 15 16 17 x1 if APB2 prescaler 1 else x 2 multiplier oscillator 32 kHz ai17768 2 5 2 Clock failure At any point of the demonstration if no clock is present on OSC_IN broken or disconnected crystal the message shown in Figure 12 is displayed on the LCD screen Figure 12 No HSE clock detected If no clock is detected the clock security system CSS feeds the MCU with the
5. HSI OSC used as an emergency clock The demonstration will not restart as long as the 8 MHz crystal is not present You must connect the crystal before starting the demonstration Connecting the 8 MHz crystal after reset may not restart the demonstration correctly If the 8 MHz crystal is not reconnected in the next few seconds the MCU enters Standby mode If the 8 MHz crystal is reconnected within a few seconds a system reset is generated When a timeout occurs the MCU enters Standby mode and the message shown in Figure 13 is displayed on the LCD screen ky Doc ID 18064 Rev 1 17 49 Running the demonstration UM1011 Figure 13 Standby mode entered No 2 6 STM32F100ZET6 resources 2 6 1 Peripherals All used peripherals are described in Table 7 Table 1 STM32F100ZET6 demonstration peripherals Used peripherals Applications 12C2 Temperature sensor BKP Calendar demo kernel EXTI Menu navigation joystick push button low power modes GPIO All applications LEDs NVIC All applications using interrupts PWR Low power modes RCC All applications demo kernel RTC Calendar FSMC Color LCD SysTick Generate 10 ms time base TIM1 LED toggling DMA2 Wave Player TIM6 Wave Player DAC Wave Player SPI1 SPI Flash SPI2 MSD TIM3 Infrared decoding CEC HDMI CEC 18 49 Doc ID 18064 Rev 1 ky UM1011 Running the demonstration 2 6 2 Interrupts Table
6. To set the wakeup time follow the procedure explained in the section Time submenu Doc ID 18064 Rev 1 35 49 Running the demonstration UM1011 Figure 47 Setting the wakeup time BH MM 55 Once the alarm has been configured the red LEDs stop blinking and the system enters Standby mode The message shown in Figure 48 is then displayed on the LCD Figure 48 RTC Alarm wakeup configured MCU in Standby Mode Wait For RTC Alarm After the programmed timing has elapsed the system exits Standby mode and a system reset signal is generated Note If the time and date have not been set the message shown in Figure 49 is displayed on the LCD screen Figure 49 Time and Date configuration prompt Time and Date are not configured please go to the Calendar menu and set time and Date pereen ters cp recs Joystick to continue 36 49 Doc ID 18064 Rev 1 UM1011 Running the demonstration 2 7 6 Note Note Infrared decoding The IR receiver TSOP34836 is connected to PC6 of STM32F100ZET6 on the STM32100E EVAL board On STM32100E EVAL RevA the IR receiver TSOP34836 is connected to PA11 To select the Infrared Decoding menu press SEL from the main menu or push on the IR icon The IR submenu shown in Figure 50 is then displayed on the LCD screen Figure 50 Infrared Decoding menu Infrared Decoding SIRC Return If yo
7. and a new command Figure 59 Select CEC command Send Status Select CEC Command Get CEC VERSION When receiving a new message the following information can be displayed on the LCD Receive status Sender address Number of bytes including the sender s address Opcode message Data operands Figure 60 shows that the device has correctly received the frame from the sender with address 0x5 number of bytes received 0x3 header opcode data message opcode 0x44 and data 0x41 Figure 60 Receive subscreen information Receive Succeeded Sender Address 05 Number of bytes 03 Message Opcode 44 Data 41 Send Status Select Follower ADDR ak Doc ID 18064 Rev 1 41 49 Running the demonstration UM1011 Note 2 7 9 42 49 Normally for the Standby command the device is in Stop mode and can wake up only when it receives a new command However you can use the TAMPER push button to exit the HDMI CEC submenu in case the demonstration is blocked Any time in the CEC application if you press the TAMPER push button the HDMI CEC stops and you return to the HDMI CEC submenu shown in Figure 56 The STM32100E CEC device responds only to the following commands To other commands it sends a feature abort e Standby e Get CEC version e Give physical address e Give OSD name Help submenu This submenu provides help on the various keys used in the STM32F100ZET6 demonstration
8. depending on the field hour minutes or seconds Figure 23 Time Adjust submenu e Time Show this item displays the current time If time and date have not been previously configured a message is displayed prompting the user to set the time and date or to exit to the upper submenu When this submenu is selected the message shown in Figure 24 appears on the LCD In the example the time has not been set yet ky Doc ID 18064 Rev 1 25 49 Running the demonstration UM1011 Figure 24 Time Show submenu HH MM SS To exit the Time Show submenu press the SEL push button To exit the Time submenu select Return and press the SEL push button Date submenu This submenu is divided into two items that allow the user to display or set the current date e Date Adjust select this item after each power up in order to set the current date If the time and date have not been previously configured a message is displayed prompting the user to set the time and date or to exit to the upper submenu The date is displayed as Year Month Week Nbr Day Nbr number of the day in the year with the selected day shown in the month There is no default date since you have to set the date at least once To adjust the date 1 Start by selecting the year To select the year use the UP or DOWN push button Pressing the UP push button displays the current value plus one pressing the DOWN push button dis
9. 00E EVAL demonstration version on the LCD screen ky Doc ID 18064 Rev 1 43 49 STM32100E EVAL demonstration package UM1011 3 44 49 STM32100E EVAL demonstration package The STM32100E EVAL demonstration is supplied in one single zip file The extraction of the zip file generates one folder STM32100E EVAL FW VX Y Z which contains the subfolders shown in Figure 65 and described below Figure 65 STM32100E EVAL demonstration package directory tree STM32100E EVAL Fw v1 0 0 _htmresc Libraries CMSIS STM32F10x StdPeriph Driver 73 inc src 5 Release Notes html stm32F 0s stdperiph driver um chm Project STM32100E EVAL Binary Media E readme txt stm32100e eval_fw_v1 0 0 bin B stm32100e eval fw v1 0 0 offset 0 3000 bin EWARM HiTOP inc MDK ARM RIDE src TrueSTUDIO E readme txt Utilities STM32 EVAL Common STM32100B EVAL STM32100E EVAL STM3210B EVAL STM3210C EVAL STM3210E EVAL 73 STM32L152 EVAL Release Notes html stm32_eval c h stm32 eval h Third Party DosFs Release Notes htrnl 2 stm32100e eval fw chm Doc ID 18064 Rev 1 ky UM1011 STM32100E EVAL demonsiration package 3 1 Libraries The Libraries folder contains all the subdirectories and files that make up the core of the STM32F10xxx Standard Peripheral library VX Y Z e CMSIS CM3 CoreSupport contains the Cortex M3 files CM3 DeviceSu
10. 2 shows all the enabled interrupts Table 2 STM32F100ZET6 demonstration interrupts Interrupts Priority Used for Preemption 0 ux SysTick SubPriority 0 System timing Preemption 0 RTC SubPriority 0 Calendar date update NMI Preemption fixed 2 CSS interrupt Preemption 2 ae EXTIO SubPriority 1 Menu navigation Preemption 2 prc EXTI9 5 SubPriority 1 Menu navigation Preemption 0 S EXTI15 10 SubPriority 0 Menu navigation Preemption 0 I2C2 Error SubPriority 0 SMBus Alert interrupt Preemption 0 TIM6 UP SubPriority 1 Sampling rate Preemption 1 TIM1 UP SubPriority 3 LED toggling Preemption 0 RTC Alarm SubPriority 1 Alarm generation TIM3_IRQ Freempuon Infrared decodin SubPriority 0 9 CEC Freempion CEC transactions SubPriority 1 Doc ID 18064 Rev 1 19 49 Running the demonstration UM1011 2 6 3 External interrupts Table 3 STM32F100ZET6 demonstration external interrupts External interrupts Used for EXTI line7 Joystick SEL interrupt mode falling edge EXTI line8 CEC Interrupt interrupt mode falling edge EXTI line11 Joystick DOWN interrupt interrupt mode falling edge amp SD Card Detection interrupt mode rising edge EXTI line12 IO expander Interrupt interrupt mode rising falling edge EXTI line13 TAMPER push button interrupt mode falling edge EXTI line15 Joystick UP interrupt mode fallin
11. 240x320 The maximum images number that can be read from the MicroSD Card is 25 images selected by alphabetic order The Image Viewer submenu is shown in Figure 32 Figure 32 Image Viewer submenu Image Viewer Image Viewer Return Use RIGHT and LEFT to go to the next previous image stored in the USER folder of the MicroSD Card If you press the SEL push button the Image Viewer is stopped and you return to the Image Viewer submenu shown in Figure 32 ky Doc ID 18064 Rev 1 29 49 Running the demonstration UM1011 2 7 4 Note 30 49 Wave Player submenu The STM32F100ZET6 microcontroller features an embedded DAC which can be used to generate output signals In this demonstration any wave file stored under the USER folder in the MicroSD Card can be opened using the file system DOSFS and transferred to the internal SRAM by block 512 bytes using the DMA and the SPI interface Timer 6 TIM6 triggers the DAC to generate the wave signal The voice sampling period is read from the Wave File Header An audio amplifier is connected to the DAC interface to play the stored wave files This application illustrates all STM32 DAC features and modes using dedicated examples and lists the configuration steps for each mode The wave files available in the MicroSD Card are based on free music downloads from the http www danosongs com website This application reads all wave files from the USER directory s
12. EG MEMU mM 40 Select CEC command 0 0 hh 41 Receive subscreen information 0 nes 41 Help submenu 4c dead ede 2 ee Reg IER RR he hape den PY Ra quur Re Pee oe 42 Joystick push buttonS esee rp e m rn 42 Second Help slide llle 43 About SUBMENU ecse pier acsi e nea kinna aa e a DEUET i EE ren 43 STM32100E EVAL demonstration package directory tree uasan aunean 44 SD Card directory organization s sassa aaea e 46 Doc ID 18064 Rev 1 ky UM1011 Evaluation board overview 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 TIM3 CH1 SPI 1 SRAM 512 Mbit OneNAND USART4 Sg TFT USART2 HDMI Em LI CEC maT CEC erwsorioozere LYSART BNC connector Motor control Serial Flash MicroSD card mA transceiver RS232 USART2 transceiver DB9 connector RS485 RS232 USART1 transceiver DB9 connector LCD touch screen EEPROM E tb E e Qo 2 gt lt v E Ei 3 gej oO 2 e E E d Sensor Speaker amplifior af Embedded T LINK JTAG amp trace connector for connector GPIOs MS19704V1 du Doc ID 18064 Rev 1 7 49 Eva
13. ERE ees 13 STM32 presentation slide 2 14 Time and date configuration illie eh 14 Application main menu 06 RR RI un 15 Application submenus 0 00 Rm rh 15 Navigating in the demonstration menus 000 eese 16 Clock tree diagram 1 2 teeta 17 No HSE clock detected 2 2 0 00 0 cect tee 17 Standby mode entered 2 2 2 0 ceca 18 Internal Flash memory organization 0 0 0 eee 20 MicroSD Card organization siiis ren 21 Card removal siis nii uu aha esed i apia at CIL RR EM E ee Tw CR ed CR S 22 Product presentation is ready to start lille 22 First presentation slide 2 2 aaau aana naana rh 23 Last presentation slide 0 0 Rr 23 No loaded wave file 0 0 0 c cee rh 24 End of slide SHOW os son ce See ro ee ee en ee ee a ee aed x 24 Setting the time and date 0 0 cect 25 Time Adjust SUDMENU 1 eee 25 Time Show submenu 00 000 cee tet 26 Setting the year oss cessi eee eee de eed EGRE e Da eee 26 Setting the month 20 0 cea 27 Setting the day of the month 27 Date Show submenu 0 00 cet 27 Setting the alarm activation time liliis 28 Alarm Show submenu sssssseseeeeese hh 28 Time and date not configured eh 29 Image Viewer submenu 6 eh rh 29 Wave Player SUBMENU 1 6 eh ren 30 Wave Player interface ssi seror llle m mr 30 Wave Player Playing submenu 1 2 00 ee en 31 P
14. F100ZET6 embedded peripherals and features The product presentation is made with a slide show Each slide is associated with a dedicated speech When you start the product presentation the first slide appears and the corresponding speech starts Once the speech is finished the second slide is displayed accompanied by its speech and so on until the last slide When the Product presentation menu is selected the message shown in Figure 17 is displayed on the LCD screen Figure 17 Product presentation is ready to start Press SEL to start When presentation starts use RICHT and LEFT to go to the next previous slide and SEL to exit Doc ID 18064 Rev 1 ky UM1011 Running the demonstration Product presentation slides The presentation is composed of 14 slides where all features and advantages of the STM32F100ZET6 are listed Figure 18 and Figure 19 show the first and last slides respectively Figure 18 First presentation slide STM32 Releasing your creativity y EN Ly Figure 19 Last presentation slide ST s objectives for creating STM32 Family Enable YOU to Create value added products Address new markets and new market needs Enable and encourage SOlutions that are Innovative Easy to implement e Secure Cost effective 9 ays Product presentation speech The STM32100E EVAL features an external audio amplifier used to play speech audio files thro
15. NAR E EX p E E ER RE PER EK 16 2 5 1 Clock control L5 ex RE cee ERE ER RE RE ERR E Wee a 16 2 5 2 Clock failure lise I E 17 2 6 STM32F100ZET6 resources 445v ura aeg ke d em a Rdeick ede d 18 2 49 Doc ID 18064 Rev 1 ky UM1011 Contents 2 6 1 Peripherals sos secs e edm eta eG m Pad eae bbw Paw ad 18 2 6 2 Interrupts ET 19 2 6 3 External interrupts 0 0 0 0 ee eee 20 2 6 4 Internal memory organization 0 cee eee 20 2 6 5 External memory organization llis 20 2 7 Demonstration applications llis 22 2 7 1 Product presentation 00 cee tee 22 2 7 2 Calendar arasam tia deena nes Ede ed E EMG Xue aioe ss 24 2 7 3 Image Viewer submenu 00 eee 29 2 7 4 Wave Player submenu 00 eee 30 2 7 5 Low power modes ee tees 32 2 7 6 Infrared decoding esos coatet tees 37 2 7 7 Thermometer 00000 aa a A a a a E R a E n eee 38 2 7 8 HDMI CEC submenu sssssesee eee 39 2 7 9 Help submenu 00 0 cee rns 42 2 7 10 Aboutsubmenu 0 ete 43 3 STM32100E EVAL demonstration package 44 3 1 BlOC U S T IPTE IM 45 3 2 Project cup au vex RR RR R EAEERERARERGAREEERRANREXAERREREKE ERE 45 3 3 Utilities sc v4 us ov aloe ae ERE WARE Rx else dhe Slee oe ee BLE Ea 45 4 STM32100E EVAL demonstration programming 46 4 1 Programming the media files llle 46 4 2 Programming the demon
16. When this submenu is selected the message shown in Figure 61 is displayed on the LCD screen Figure 61 Help submenu welis Menu Navigation Jumpers Lontig Return If the user chooses the menu navigation the image shown in Figure 62 is displayed on the LCD screen Figure 62 Joystick push buttons JoyStick Buttons UP SEL LEFT RIGHT DOWN Doc ID 18064 Rev 1 ky UM1011 Running the demonstration Press any joystick push button to display the next help slide as shown in Figure 63 Figure 63 Second Help slide UP DOWN RIGHT and DERC push DUCEONS perform circular navigation in the main menu current menu items SEL push button selects the current item UP and DOWN perform vertical navigation Press the joystick to exit the slide and return to the Help submenu Figure 61 If you choose Jumpers config a list of jumpers to be configured for the demonstration is displayed on the LCD screen Use Right and Left to go to the next jumper configuration If you press the Down push button you return to the Help submenu 2 7 10 About submenu This submenu shows the version of the STM32F100ZET6 demonstration software When the About submenu is selected the message shown in Figure 64 is displayed on the LCD Screen Figure 64 About submenu About About Return Press SEL to display a message showing the STM321
17. aces all information previously supplied The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners 2011 STMicroelectronics All rights reserved STMicroelectronics group of companies Australia Belgium Brazil Canada China Czech Republic Finland France Germany Hong Kong India Israel Italy Japan Malaysia Malta Morocco Philippines Singapore Spain Sweden Switzerland United Kingdom United States of America www st com ky Doc ID 18064 Rev 1 49 49
18. ause submen isi eene sped bares o Hake a RUE Ros Whew bs ee de te a t RR A 31 Stop mode menu i5 iem sued ean be does Ake ed ecd doe Peto Od avd ae is 32 Stop mode entered liliis hr 32 MCU in Stop mode iria riaa asse mia ia a a e aaa rr rers 33 RTC Alarm wakes up the MCU from Stop mode 000 00 e eee eee 33 Setting the wakeup time 0 liliis 33 RTC Alarm wakeup configured 00 0 ccc ete 34 RTC Alarm wakeup 0000 cece rh 34 Time and Date configuration prompt 00 000 eee 34 Entering Standby mode 0 0000 tees 35 MCU in Standby mode 0 0 cette eens 35 Setting the wakeup time 1 6 0 teeta 36 RTC Alarm wakeup configured lisse eh 36 Doc ID 18064 Rev 1 5 49 List of figures UM1011 Figure 49 Figure 50 Figure 51 Figure 52 Figure 53 Figure 54 Figure 55 Figure 56 Figure 57 Figure 58 Figure 59 Figure 60 Figure 61 Figure 62 Figure 63 Figure 64 Figure 65 Figure 66 6 49 Time and Date configuration prompt 0 0 00 eee 36 Infrared Decoding menu 6 eee 37 Infrared protocol submenu 1 6 tees 37 Thermometer submenu selected 0 00 tees 38 Temperature display 0 0c ete en 38 Warning temperature display lislelseeeeee eR III 39 Temperature sensor error lille nn 39 HDMI CEC submenu selected 0 000 tte ee 40 HDMI CEC configuration submenu 0 0000 ren 40 C
19. dby mode The software runs the specific instruction sequence required by the STMS2F100ZET6 to enter Standby mode Figure 45 Entering Standby mode Standby Mode Exit Wakeup Pin Exit RIC Alarm Return There are two ways to make the STM32F100ZET6 exit Standby mode e Inthe first case you can use the Wakeup push button Once the Standby mode submenu has been selected the red LEDs continue blinking until you press the SEL push button and the system enters Standby mode When the MCU is in Standby mode the message shown in Figure 46 is displayed on the LCD For the first case with WakeUp push button check whether the JP4 is in wakeup position Figure 46 MCU in Standby mode MCU in Standby Mode To exit press Wakeup The MCU remains in Standby mode until the Wakeup push button is pressed Once you press the Wakeup push button the MCU exits Standby mode and the system reset signal is generated If an RTC Alarm is generated while the MCU is in Standby mode and the message shown in Figure 46 is displayed which means that the Wakeup push button needs to be pressed to exit Standby mode the RTC Alarm wakes up the MCU from Standby mode and a system reset signal is generated e Inthe second case the RTC Alarm wakes up the MCU from Standby mode after the programmed time has elapsed When selecting this submenu you have to set the alarm to the time when the MCU is to exit Standby mode
20. ee Section 4 1 Programming the media files and displays only the WAV files having the following format e Audio format PCM an uncompressed wave data format in which each value represents the amplitude of the signal at the time of sampling e Sample rate may be 8000 11025 22050 or 44100 Hz e Bits per sample 8 bits audio sample data values are in the range 0 255 e Number of channels 1 mono or 2 stereo The Wave Player submenu is shown in Figure 33 Figure 33 Wave Player submenu Wave Player Wave Player Return When you select Wave Player the wave player interface is displayed as shown in Figure 34 Figure 34 Wave Player interface STM32 DAC Audio Demo Playing Wave files SEL Play DOWN Return LEFT Next Wave RIGHT Previous Wave TAMPER Speaker KEY Headphone USER XXXXXXXX Doc ID 18064 Rev 1 ky UM1011 Running the demonstration In Figure 34 the active push buttons and their functions are displayed For example at start up to play the file through the embedded speaker press SEL To exit the Wave Player submenu press DOWN The TAMPER push button is used to select the speaker and the KEY push button to select the headphone Once you select the play command the submenu shown in Figure 35 is displayed Figure 35 Wave Player Playing submenu Control Buttons SEL PAUSE LEFT BWR DOWN STOP RIGHT FWD TAMP v KEY V USER XXXXXXXxX WAV
21. er control liliis 8 1 2 Clocking i es Ex Red A RERREFRYRERPSZXGX ERR EX Soe RAPE E wee 8 1 3 Reset CONIO uuo EROR n S PUR le CR REC Dr c UI e eae 8 1 4 Debugging JTAG interface 0 eee 8 1 5 Serial wire debugger interface 0c cece eee 8 1 6 Embedded STLINK uus rmx nba eed ee ett RC E Rh ten 8 1 7 Display OBVICBS c vd RE RR PE rA OR dca kee e RR dos E ee Rc dos 8 1 7 1 LOD uie RS PER UR e Rd e ERE wea RR Re uda XR A e b 8 1 7 2 BEDS 3i eee tt heey ag ga EX RES dade d 8 1 8 Interfaces 1 2 RR 9 1 8 1 9292 5 0 Pee uie dark su RC de E E adie nae ef ch eh RE 9 1 9 Motor control 000 rr 9 mE rM 9 1 11 Miscellaneous peripherals 0 000 ee 9 LILI SOYSUCK oum rete Eme ore nc ha eee e x onc SO a edm 9 1 11 2 JPush buttons ice RR A E RRRRRU CERA cae RUN 9 1 11 8 12 bit analog to digital converter ADC 0000 2 eee eee 9 1 11 4 Audio amplifier lille 9 1 11 5 Storage memories llllillelleell ees 9 1 11 6 Temperature sensor 0 0 eren 10 2 Running the demonstration lllleeeeesss 11 2 1 Menu tree and navigation 00 0 cee selle 11 2 2 Demonstration startup dues deeper ERE eee bine id teed RC CR pee dees 12 2 3 Time and date configuration 20 0 ee 14 2 4 Menu navigation xxu kn REV GES HER HENGE See GRE ERS OA 14 2 4 1 Navigation procedure 0 0 cece nee 15 25 Glock SOHIGBS s xac h bbs PER
22. g edge EXTI line17 RTC alarm interrupt mode rising edge 2 6 4 Internal memory organization Figure 14 Internal Flash memory organization 0x0801 FFFF 0x0800 0000 STM32100E EVAL Demo 2 6 5 External memory organization The STM32100E EVAL demonstration is based on an embedded free FAT file system DosFs 9 The file System is needed to read all media information from the on board MicroSD memory card a The DosFs is a FAT compatible filesystem intended for fairly low end embedded applications It is not the leanest possible implementation the leanest FAT implementations operate in 512 bytes of RAM with heavy restrictions This code strikes a good balance between size and functionality with an emphasis on RAM footprint For more details refer to the following link http www larwe com zws products dosfs index html 20 49 Doc ID 18064 Rev 1 UM1011 Running the demonstration The SD Card memory is organized in two subdirectories e STFILES this folder contains all required demo media files icons wave and slides User files located in this folder cannot be handled by the demonstration only default files are managed The STFILES directory and its internal files are mandatory for demonstration startup e USER this is a user folder You can add here your 16 bit bitmap images 320x240 and waves This folder is used only by the Image Viewer and Wave Player submenus For more de
23. he stm32100e eval_fw_Usv1 0 0_offset_0x3000 bin file located under Project STM32100E EVAL Binary with IAP over USART For more details please refer to IAP application note AN2557 STM32F10x in application programming using the USART ky Doc ID 18064 Rev 1 47 49 Revision history UM1011 5 48 49 Revision history Table 4 Document revision history Date Revision Changes 14 Apr 2011 1 Initial release Doc ID 18064 Rev 1 UM1011 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 Purchasers are solely responsible for the choice selection and use of the ST products and services described herein and ST assumes no liability whatsoever relating to the choice selection or use of the ST products and services described herein No license express or implied by estoppel or otherwise to any intellectual property rights is granted under this document If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services or any intellectual property contained t
24. herein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE ST PRODUCTS ARE NOT RECOMMENDED AUTHORIZED OR WARRANTED FOR USE IN MILITARY AIR CRAFT SPACE LIFE SAVING OR LIFE SUSTAINING APPLICATIONS NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY DEATH OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE ST PRODUCTS WHICH ARE NOT SPECIFIED AS AUTOMOTIVE GRADE MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK Resale of ST products with provisions different from the statements and or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever any liability of ST ST and the ST logo are trademarks or registered trademarks of ST in various countries Information in this document supersedes and repl
25. is divided into two items that allow you to display or set the current alarm e Alarm Adjust the alarm time activation is set in the same way as in the Time Adjust submenu The following messages are successively displayed on the LCD when this submenu is selected Figure 29 Setting the alarm activation time e Alarm Show this item displays the current alarm time The default alarm activation time displayed after powering up is 00 00 00 The message shown in Figure 30 is displayed on the LCD when this submenu is selected Figure 30 Alarm Show submenu To exit the Alarm Show submenu press the SEL push button To exit the Alarm submenu select Return and press the SEL push button In the Alarm Adjust and Alarm Show menus if the time and date have not been previously configured the message shown in Figure 31 is displayed on the LCD screen Doc ID 18064 Rev 1 ky UM1011 Running the demonstration Figure 31 Time and date not configured Time not configured 2 7 3 Image Viewer submenu The Image Viewer submenu is used to demonstrate the LCD control performance using the embedded FSMC interface The application displays successively the images stored on the MicroSD Card This application reads all bitmap pictures from the USER directory see Section 4 1 Programming the media files and displays only the BMP files having the following format e Bit depth 16 bits RGB e Size
26. ks 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 q Doc ID 18064 Rev 1 UM1011 Running the demonstration Figure 3 SD Card check Please insert SD Card 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 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 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 Doc ID 18064 Rev 1 13 49 Running the demonstration UM1011 2 3 Note 2 4 14 49 1 After some seconds the following STM32 slide is displayed on the LCD screen Figure 6 STM32 presentation slide STM32 Releasing your creativity 2 2 m S74 Time and date configuration When the board is powered up for
27. luation board overview UM1011 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 7 1 1 7 2 8 49 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 Clocking Two clock sources are available on the STM32100E EVAL evaluation board e 32 kHz crystal for embedded RTC e 8 MHz crystal for the STM32F100ZET6 main clock system Reset control The reset can be generated by hardware or software e Reset button activates the RESET input when pressed e JTAG reset 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 Serial wire debugger interface The serial wire debug port SWD DP provides a 2 pin clock data interface to the AHP AP port Embedded ST LINK The ST LINK in circuit debugger programmer is embedded on the board It supports the STM32F100ZET6 MCU Display devices LCD A color LCD module is mounted on the STM32100E EVAL board It is interfaced through FSMC of STMS2F100ZET6 LEDs Four general purpose LEDs are available Doc ID 18064 Rev 1 ky UM1011 Evaluation board overview 1 8 1 8 1 1 9 1 11 1 1 11 2 1 11 3 1 11 4 1 11 5 Interfaces RS232 The STM32F100ZET6 evaluation board STM32100E EVAL provides two on b
28. m wakes up the MCU from Stop mode after the programmed time has elapsed When selecting this submenu you have to set the alarm to the time when the MCU is to exit Stop mode To set the wakeup time follow the procedure explained in section Time submenu Figure 41 Setting the wakeup time B MM 55S ky Doc ID 18064 Rev 1 33 49 Running the demonstration UM1011 Once the alarm has been configured the red LEDs stop blinking and the system enters Stop mode The message shown in Figure 42 is displayed on the LCD Figure 42 RTC Alarm wakeup configured MCU in Stop Mode Wait For RTC Alarm After the programmed time has elapsed the system exits Stop mode The system clock is then set to 24 MHz and the application resumes execution The message shown in Figure 43 is displayed on the LCD screen Figure 43 RTC Alarm wakeup Stop Mode Wakeup by RTC Alarm Press joystick to continue Note If the time and date have not been set the message shown in Figure 44 is displayed on the LCD screen Figure 44 Time and Date configuration prompt Time and Date are not configured please go to the Calendar menu and set time and Date Parameters Press Joystick to continue 34 49 Doc ID 18064 Rev 1 ky UM1011 Running the demonstration Note Note Standby mode menu This menu allows the user to put the STM32F100ZET6 in Stan
29. nit allowing the RTC to operate even when the main digital supply Vpp is turned off To be able to use the battery to back up the RTC the JP1 jumper must be in the position Battery VDD on the STM32100E EVAL board In any submenu if the time and date parameters have not yet been configured the message shown in Figure 22 is displayed on the LCD screen Doc ID 18064 Rev 1 ky UM1011 Running the demonstration Figure 22 Setting the time and date Time and Date Config You have the choice to set or not the time year month and day Press any key except for SEL to ignore the prompt and abort the configuration sequence Press on SEL and follow the setting sequence to set the time and date Time submenu This submenu is divided into two items that allow you to display or set the current time e Time Adjust after powering up the evaluation board you can use this submenu to change the default time 00 00 00 to the current time To adjust the time 1 Select Time Adjust The message shown in Figure 23 is displayed on the LCD To modify the first digit of the hour field use the UP and DOWN push buttons Press UP to display the current value plus one Press DOWN to display the previous digit value 2 After setting the digit value press SEL The cursor automatically jumps to the next digit When all the time digits have been set the Time submenu appears Some digit values are limited to a range of values
30. nter CEC menu The LCD screen is divided into two parts as shown in Figure 58 e asubscreen that shows the CEC receive information receive status sender address e asubscreen prompting you to select the follower address and the command to send Figure 58 CEC menu Send Status Select Follower ADDR T After selecting the follower address select the command to be sent to that address using the LEFT RIGHT and SEL push buttons After selecting the command the CEC device sends this command to the address and displays the status of transmission as shown in Figure 59 Doc ID 18064 Rev 1 ky UM1011 Running the demonstration Note 1 The feature CEC device also allows the user to command and control multiple audiovisual devices with one infrared remote control After selecting the address the user presses on the remote control and a command is sent by the CEC device The message is displayed in the receiver field To change the address selected press on the KEY button and the message in Figure 58 will be shown Only the protocol Philips RC5 was integrated in the HDMI CEC application Each RC5 command has a corresponding HDMI CEC User Control Code For more details refer to application note AN3174 Implementing an RC5 infrared remote control receiver with the STM32F10xx microcontrollers This application note provides a full description of IR decoding You can select again a new follower address
31. oard RS232 serial ports Both RS232 ports are accessed via DB9 connectors 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 IrDA The STM32100E EVAL evaluation board supports IrDA communication The interface is mounted on UART4 Miscellaneous peripherals Joystick The board features a four direction joystick with a selection key Push buttons The following push buttons are available e Key e Tamper e Wakeup used to wake up the processor from low power mode 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 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 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 1 C EEPROM memory connected to I2C2 Doc ID 18064 Rev 1 9 49 Evaluation board overview UM1011 1 11 6 Tempera
32. ons 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 APP Main Menu Name APP Sub Menu1 Name APP Sub Menu2 Name Return 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 e The UP DOWN RIGHT and LEFT push buttons are used to perform circular navigation in the main menu and the current menu items e TOUCH SCREEN is used also to perform navigation only in the main menu e The SEL push button selects the current item e 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 Doc ID 18064 Rev 1 15 49 Running the demonstration UM1011 2 5 2 5 1 16 49 Figure 10 Navigating in the demonstration menus a o ao ao gt 3 2 gt Right Right Right Right Left lt gt Item 2 lt gt lt gt Item 4 Left Left Left E c c z o 205 845 z e y gt y gt oy oy Right Right Right i i i i ans BP SE aE espe Left Left Left E c E a T is ats
33. or NO TSENSOR Present Exit push Joyvstrck 2 7 8 HDMI CEC submenu The STM32F100ZET6 microcontroller features an HDMI CEC peripheral This demonstration shows how to configure this peripheral and how to create a CEC network providing a high level communication between various devices using CEC protocol messages For more details refer to application note AN3127 CEC networking using STM32F100xx value line microcontrollers This application note provides a full description of the STM32F100xx value line embedded HDMI CEC Controller and a step by step firmware description of CEC peripheral configuration An advanced demonstration firmware communicating in a real multimedia and HDMI environment is also provided to help build the CEC applications When the HDMI CEC submenu is selected the message shown in Figure 56 is displayed on the LCD ky Doc ID 18064 Rev 1 39 49 Running the demonstration UM1011 40 49 Figure 56 HDMI CEC submenu selected HDMI CEC HDMI CREC Returri Once you select the HDMI CEC submenu if no CEC error is generated the device is configured as Tuner and the physical and logical addresses are displayed on the LCD as shown in Figure 57 To enter the CEC menu press the SEL push button Figure 57 HDMI CEC configuration submenu CEC device is confi gured as Tuner and initialized correctly Logical Addr Physical Addr Press SEL button to e
34. plays the previous value To confirm the selected year and continue to the month configuration press the SEL push button Figure 25 Setting the year 22 e9 a0 UP DOWN Set Year 2 Follow the same procedure to select the month and press the SEL push button to confirm 26 49 Doc ID 18064 Rev 1 ky UM1011 Running the demonstration Figure 26 Setting the month Year Day Nbr 22 29 31 UP DOWN Set Month 3 Toselect the day use the UP DOWN RIGHT and LEFT push buttons After configuring the day press the SEL push button to store the entered value and exit to the Date submenu The current date value is now displayed Figure 27 Setting the day of the month 22 29 All Key Set Day e Date Show this item displays the current date If the time and date have not been previously configured the message shown in Figure 28 is displayed You have the choice to set the time date or to exit to the upper submenu Figure 28 Date Show submenu Tu ky Doc ID 18064 Rev 1 27 49 Running the demonstration UM1011 Note 28 49 To exit this submenu press the SEL push button To exit the Date submenu select Return and press the SEL push button Alarm submenu You can use this submenu to configure the alarm activation time When the alarm time value is reached all the LEDs LED1 to LED4 start flashing simultaneously for 30 seconds This submenu
35. pport ST STM32F10x contains the STM32F10x CMSIS layers files e STMS32F10x StdPeriph Driver inc subfolder contains the Standard Peripheral library header files src subfolder contains the Standard Peripheral library source files 3 2 Project STM32100E EVAL e Binary contains the binary image of the demonstration that can be used to program the binary image to the internal Flash memory using IAP plus the Media files required to run the demonstration Binary Media e EWARM contains preconfigured projects for the EWARM toolchain e MDK ARM contains preconfigured projects for the MDK ARM toolchain e HiTOP contains preconfigured projects for the HiTOP toolchain e inc subfolder contains the demonstration header files e src subfolder contains the demonstration source files e RIDE contains preconfigured projects for the RIDE toolchain e TrueSTUDIO contains preconfigured projects for the TrueSTUDIO toolchain 3 3 Utilities STM32100E EVAL contains the LCD and other STM32100E EVAL board related drivers Doc ID 18064 Rev 1 45 49 STM32100E EVAL demonstration programming UM1011 4 4 1 4 2 46 49 STM32100E EVAL demonstration programming Programming the media files The STM32100E EVAL board comes with a MicroSD Card memory preprogrammed with the audio and image resources used by the demonstration However you can load your own image bmp and audio wav files in the USER directory providing that these file formats
36. stration lille 46 4 2 1 USING IAP ucro weaned eerie ae heehee ciao a Pe eiua me 47 5 REVISION history uoaacexces eG ee x RE ACACOR RC S eee E KR Rel eee ee 48 Ky Doc ID 18064 Rev 1 3 49 List of tables UM1011 List of tables Table 1 STM32F100ZET6 demonstration peripherals liliis eee 18 Table 2 STM32F100ZET6 demonstration interrupts liliis 19 Table 3 STM32F100ZET6 demonstration external interrupts 20 0c eee eee eee 20 Table 4 Document revision history 0 0 teens 48 4 49 Doc ID 18064 Rev 1 ky UM1011 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 Figure 27 Figure 28 Figure 29 Figure 30 Figure 31 Figure 32 Figure 33 Figure 34 Figure 35 Figure 36 Figure 37 Figure 38 Figure 39 Figure 40 Figure 41 Figure 42 Figure 43 Figure 44 Figure 45 Figure 46 Figure 47 Figure 48 ky Evaluation board overview 1 iilis rn 7 Structure of the demonstration menus 060 0c eee sees 12 SD Card check ooo zoe es erae auc add Nee RR RUP AE n RE RR a ted 13 Warning message 1 2 ee ee mnn 13 ST 1090 aod Eher tert dm aspe s qu lea dear dv Eee
37. tails on the different files properties please refer to Section 2 7 3 Image Viewer submenu and Section 2 7 4 Wave Player submenu Figure 15 MicroSD Card organization hee F 5 STFILES NETS N Help bmp X Icont bmp N Icon 0 bmp N Icon2 bmp N Icon3 bmp N Icon4 bmp Icon5 bmp Icon5 bmp Icon bmp Icon8 bmp J Icon9 bmp Slide1 bmp Slide10 bmp Slide11 bmp Slide12 bmp Slide13 bmp Slide14 bmp Slide2 bmp Slide3 bmp Slide4 bmp Slide5 bmp Slide6 bmp Slide bmp Slide8 bmp Slide3 bmp N STLogo bmp X Watch bmp Wave wav Arara r VVU VLA At the main menu and at any point of these applications Product Presentation Image Viewer and Wave Player if the SD is removed the demonstration stops and the message shown in Figure 16 is displayed on the LCD screen For the others applications the message shown in Figure 16 is displayed when the user exits the current application Doc ID 18064 Rev 1 21 49 Running the demonstration UM1011 2 7 2 7 1 22 49 Figure 16 Card removal Press Joystick UP to Restart the demo Demonstration applications The following section provides a detailed description of each part of the demonstration In the demonstration the core runs at HCLK 24 MHz Four LEDs LD1 LD2 LD3 and LD4 flash throughout the demonstration at a frequency depending on the core clock Product presentation This part of the demonstration presents all the STM32
38. the first time and no power supply is detected on Vgar 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 and D Pre 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 You can set the time parameters at any time by using the Calendar menu see Section 2 7 2 Calendar 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 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 Doc ID 18064 Rev 1 ky UM1011 Running the demonstration Figure 8 Application main menu APP Main Menu Name va 3i i Hom 7 amp 1 Note The ic
39. ture sensor The STM32100E EVAL evaluation board includes an I C temperature sensor connected to the I2C2 peripheral 10 49 Doc ID 18064 Rev 1 ky UM1011 Running the demonstration 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 ky Doc ID 18064 Rev 1 11 49 Running the demonstration UM1011 2 2 12 49 Figure 2 Structure of the demonstration menus Product presentation Return Calendar Alarm Image Viewer Image Return Viewer Return Wave Player Wave Player Ex EXT Exit RTC alarm Lew power Fu tandb Standby Exit wakeup pin Exit RTC alarm HDMI CEC HDMI CEC Return Help About About j Return MS18669V1 Demonstration startup The demonstration starts after a board reset The system chec
40. u select one protocol from the list the adequate submenu shown in Figure 51 is displayed Figure 51 Infrared protocol submenu Prorcoco TENIPS ERCIS Return This submenu is divided into two items e Show you can use this submenu to display on the LCD the IR frame sent from the remote control To exit the infrared protocol submenu press the SEL push button You then return to the Infrared protocol submenu shown in Figure 51 e Return use this item to return to the infrared decoding menu shown in Figure 50 For more details refer to application note AN3174 Implementing an RC5 infrared remote control receiver with the STM32F10xx microcontrollers This application note provides a full description of IR decoding Doc ID 18064 Rev 1 37 49 Running the demonstration UM1011 2 7 7 38 49 Thermometer The STM32F100ZET6 microcontroller has two embedded 1 C peripherals that can be connected to any device supporting the I C protocol including the System management bus SMBus mode An STLM75 or a compatible device IC temperature sensor is mounted on the STM32100E EVAL board and used to capture the external temperature 55 C to 125 C When the Thermometer submenu is selected the message shown in Figure 52 is displayed on the LCD Figure 52 Thermometer submenu selected Thermometer Temperature Return Once you select the Temperature submenu the temperature value is displa
41. uction sequence required to enter Stop mode Figure 37 Stop mode menu Stop Mode EXIGE EAT Exit RTC Alarm Return There are two ways to make the STM32F100ZET6 exit Stop mode e Inthe first case you can use the EXTI Key button Once the Stop mode submenu has been selected the red LEDs continue blinking until the SEL push button is pressed and the system enters Stop mode When the MCU is in Stop mode the message shown in Figure 38 is displayed on the LCD Figure 38 Stop mode entered MCU in STOP Mode To exit press Tamper push button The MCU remains in Stop mode until the TAMPER push button is pressed as shown in Figure 39 Once you press the TAMPER push button the MCU exits Stop mode The system clock is then set to 24 MHz and the application resumes execution Doc ID 18064 Rev 1 ky UM1011 Running the demonstration Figure 39 MCU in Stop mode STOP Mode Wakeup by Tamper Press Joystick to Continue ss Note If an RTC Alarm is generated while the MCU is in Stop mode and the message shown in Figure 39 is displayed which means that the TAMPER push button needs to be pressed to exit Stop mode the RTC Alarm wakes up the MCU from Stop mode The message shown in Figure 40 is then displayed Figure 40 RTC Alarm wakes up the MCU from Stop mode Stop Mode Wakeup by RTC Alarm Press Joystick to COME IDE e Inthe second case the RTC Alar
42. ugh the embedded speaker The properties of the product presentation speech wave file are the following Playing time 6 min 16s File size 3 014 752 bytes Format tag PCM Channels Mono Sample rate 8 kHz Bits per sample 8 bits Doc ID 18064 Rev 1 23 49 Running the demonstration UM1011 2 7 2 Note 24 49 If the wave file of the promotion presentation speech is not loaded in the dedicated memory the message shown in Figure 20 is displayed on the LCD screen Figure 20 No loaded wave file ERROR No Wave File Press joystick to exit To stop the product presentation slide show and speech push the SEL push button The message shown in Figure 21 is displayed Figure 21 End of slide show End of slide show Exit Push joystick At the end of the product presentation or if the presentation was stopped simply press any joystick key to exit and return to the Product Presentation submenu Calendar The STM32F100ZET6 features a real time clock RTC that provides a set of continuously running counters These can be used with suitable software to implement a clock calendar function The counter values can be written to set the current time of the system This submenu is used to configure the time date and alarm The date time and alarm settings are not lost when the board is powered off owing to the battery connected to the Vpar pin The Vgar pin supplies power to the RTC u
43. yed in Celsius and Fahrenheit as shown in Figure 53 Press any key to return to the Thermometer submenu Figure 53 Temperature display The temperature variations can be monitored easily using the STM32 I2C SMBus feature This is managed by the SMBus Alert which generates a dedicated interrupt to inform the system that the temperature is out of the selected range This can be very useful for systems where the increase of temperature needs an immediate intervention like in motor control medical systems etc If the temperature exceeds the over limit high value TEMPERATURE TOS Over Limit Temperature the SMBus Alert interrupt is generated and the following warning message is displayed on the LCD screen Doc ID 18064 Rev 1 ky UM1011 Running the demonstration Figure 54 Warning temperature display The message shown in Figure 54 is displayed on the LCD when the temperature goes under the over limit low value TEMPERATURE_THYS Hysteresis Temperature You can configure the TOS and THYS using dedicated define statements in the code By default they are set to see menu c file define TEMPERATURE_THYS 31 define TEMPERATURE_TOS 32 Press any key to return to the Thermometer submenu Note Any hardware trouble with the temperature sensor is detected by a test In such case the message shown in Figure 55 is displayed Figure 55 Temperature sensor err

Download Pdf Manuals

image

Related Search

Related Contents

Classement de la documentation de Validation  Nathalie Caccialupi  Bedienungsanleitung  PDF Installation Guide  

Copyright © All rights reserved.
Failed to retrieve file