Home

STM32072B-EVAL demonstration firmware

image

Contents

1. RS232 Motor Control transceiver connector beca usanT2 H Voltage RS485 Joystick translator transceiver GPIO IrDA FEDS ip transceiver Tamper amp Key button Embedded USB TypeB ST LINK V2 connector Photo R Comparator sw H USB USB FS L SWD connector connector MicroSD CAN driver CAN card amp connector STM32F072VBT6 SPI1 ies Dot Matri L ot Matrix IR LED amp IRTIM translator pen IR receiver PWM MEMS Potentiometer Comparator pressure i sensor DAC Audio Amplifier HDMI 1202 sink Header Jack Microphone CEG ADG Amplifier 1 65V to 3 6V HDMI adjustable Source regulator TS _ Touch Sensing RF EEPROM 1201 controller buttons Two 3 3V connector regulators USART1 Smartcard Temperature Extension sensor connector for GPIOs MS33905V1 1 1 Power control The evaluation board can be powered from an external 5 V supply or from the USB connector or ST LINK V2 connector All other required voltages are provided by on board voltage regulators 2 8 58 DoclD025466 Rev 1 UM1687 1 2 1 3 1 4 1 5 1 6 1 7 1 7 1 1 7 2 1 7 3 2 Functional de
2. The Progress bar is updated every 1 of the audio file duration Low power modes The STM32F072VBT6 microcontroller provides different operating modes in which the power consumption is reduced The purpose of this menu is to show the behavior of the microcontroller in different low power modes The Stop and Standby modes are taken as examples Stop mode menu This menu allows the user to put the STM32F072VBT6 in the Stop mode The software performs the specific instruction sequence needed to enter the Stop mode In this application the STM32F072VBT6 can exit the Stop mode in two ways as shown in Figure 36 Figure 36 Exiting the Stop mode STOP Mode eS an Exit RTC Alarm Return MSv33941V1 e Inthe first case The EXTI Key button is used to make the MCU exit the Stop mode Once the Stop mode submenu has been selected the red LEDs keep blinking until the SEL push button is pressed and the system enters the Stop mode When the MCU is in the Stop mode the message shown in Figure 37 is displayed on the LCD Figure 37 Stop mode entered exit EXTI MCU in Stop Mode To exit press Key push button MSv33942V1 DoclD025466 Rev 1 31 58 Running the demonstration UM1687 The MCU remains in the Stop mode until the Tamper push button is pressed and the message shown in Figure 38 is displayed on the LCD screen Once the Tamper push button has been pressed the MCU exits the Stop mo
3. Figure 20 Setting the year 10 17 aL ad 24 20 as 34 UP DOWN Set Year Figure 21 Setting the month el de ed 23 did UP DOWN Set Month DoclD025466 Rev 1 23 58 Running the demonstration UM1687 24 58 Figure 22 Setting the day of the month T 10 14 Ly el 8 24 20 3 30 34 All Key Set Day e Date Show this item displays the current date If the time and date have not been configured before a message is displayed prompting the user to set the time and date or to exit to the upper submenu The message shown in Figure 23 is displayed on the LCD when the submenu is selected with the date already configured Figure 23 Exiting the Date Show submenu To Exit Press SEL To exit this submenu press the SEL push button To exit the Date submenu select the Return line and press the SEL push button Alarm submenu Using this submenu the user can configure the alarm activation time When the alarm time value is reached all the LEDs LED1 to LED4 start flashing together and so for 30 seconds This submenu is divided into two items that allow the user to display or set the current alarm e Alarm Adjust the alarm time activation is set in the same way as the time is set in the Time Adjust submenu The following messages are successively displayed on the LCD when this submenu is selected DoclD025466 Rev 1 Ly UM1687 Running the demonstration Figure 24
4. RTC Alarm wakeup 0 2 000 cece eee 33 Time and Date configuration prompt llli 33 Entering the Standby mode 0 00 cect 34 MCU in Standby mode iossau ccna deeded whens edna deka eee tbe ee eda Qa a 34 RTC Alarm causes the MCU to exit the Standby mode 000 ee ee eee 35 Setting the wakeup time 0 0 liliis RR a a 35 RTC Alarm wakeup configured 0 0 00 e eee 35 DoclD025466 Rev 1 5 58 List of figures UM1687 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 Figure 67 Figure 68 Figure 69 Figure 70 Figure 71 Figure 72 Figure 73 Figure 74 Figure 75 Figure 76 Figure 77 Figure 78 Figure 79 Figure 80 Figure 81 Figure 82 Figure 83 Figure 84 Figure 85 6 58 Time and Date configuration prompt llli 36 Thermometer submenu selected 00 000 e ee eee eet eee ee 36 Temperature display 002 0000 cc eee 36 Warning temperature display illie Ih 37 Temperature sensor error s snaa aaaea 37 HDMI CEC submenu selected 0 0000 cee eens 38 HDMI CEC configuration submenu 0 eee 38 CEC melli ence etd eaters ack eee ELEM ees wake LT M ee 38 Select CEC command 0 cece ete eee 39 Receive subscreen information oooocooooooo eee 39 ANT7 M2
5. Send Status Select Follower ADDR DY MSv33958V1 38 58 DoclD025466 Rev 1 Ly UM1687 Running the demonstration Note 2 1 After selecting the follower address select the command to be sent to the selected follower address using the LEFT RIGHT and SEL buttons After selecting the command the CEC device sends this command to the selected follower address and displays the status of transmission as shown in Figure 57 You can also send the command from the remote control by the CEC device After selecting the address the user presses the remote control and the message is displayed in the receiver field Phillips RC5 protocol was integrated in the HDMI CEC application Each RC5 command has a corresponding HDMI CEC User Control Code For more details refer to Section 2 4 9 InfraRed Figure 57 Select CEC command Send Status Select CEC Command Get CEC VERSION MSv33959V1 When receiving a new message the following information can be displayed on the LCD e Receive status e Sender address e Number of bytes including the sender address e Opcode message e Data operands Figure 58 shows that the device has correctly received the frame from the sender with the address 0x5 the number of bytes received 0x3 header opcode data the message opcode 0x44 and data 0x41 Figure 58 Receive subscreen information Receive Succeeded Sender Address 05 Number of byte
6. ooocooooooo ee 19 Table 3 STM32F072VBT6 demo external interrupts 2 00000 c eee eee eee 19 Table 4 M24LR64 memory organization ESL application llle 43 Table 5 Document revision history 0 0 0 0 0c hh 57 4 58 DoclD025466 Rev 1 Ly UM1687 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 Ly STM32072B EVAL evaluation board 0 0 sasaaa ec es 1 Evaluation board overview 0 eee eae 8 Demonstration overview llis 12 SD card check e a aotem e are ge ca qe add Ro e e deni o al ho pex x e EUR gt 13 Warning message ese laci pedem Undo Quse Shaw eet s meon ar P E RO d 13 SOO GO PPP T 13 Time and date configurati0N oooooocccroc n 14 Mamen E 14 Corresponding submenus issesseeee lr rs 15 Navigating in the demonstration menus 0 00 eee eee 15 Clock tree diagram esee nein eee e Ug oe oe Een a Ip mox eee 16 No HSE clock detecte
7. 1 RF mode 2 DoclD025466 Rev 1 UM1687 Running the demonstration Figure 60 M24LR64 R block diagram Row decoder ACO SCL SDA AC1 reves jou femme I enses E v MS33932V1 Note For more details on the M24LR64 EEPROM please refer to the datasheet Select the Dual Interface RF I C EEPROM menu by pressing SEL from the main menu Two applications can be selected as shown in Figure 61 Figure 61 Dual Interface EEPROM applications menu RF EEPROM BSL DataLogger Return ESL application The Electronic Shelf Labeling ESL consists of reading using I2C interface the content of the dual interface EEPROM and displaying the information on the LCD screen as shown in Figure 62 DoclD025466 Rev 1 41 58 2 Running the demonstration UM1687 Figure 62 ESL application Product price Logo French E Price trend arrow Note two images Note two images stored inuSD card stored inuSD card All this information product name price logo price trend is programed in the M24LR64 dual interface EEPROM in RF mode and can be updated any time using the CR95HF RFID reader writer connected to the USB port of a PC host with the associated M24LRxx Application Software PC software Figure 63 ESL setting menu DUAL INTERFACE EEPROM ESL demo Configuration tool French English Logo Orientation arrow Price 120 Ascii Text Line 1 Product A Ascii Text Line 2 Re ABIZ5
8. 13 Standby mode entered No HSE Ciloets Detected Standby mode in a few seconds MCU in Standby Mode To exit press Wakeup MSv33914V1 Note The demo does not restart as long as the 8 MHz crystal is not present Connecting the 8 MHz crystal after reset may not restart the demo correctly The crystal must be connected before starting the demo 2 DoclD025466 Rev 1 17 58 Running the demonstration 2 3 2 3 1 18 58 STM32F072VBT6 resources The figure below shows the hardware requirements Figure 14 Hardware requirements mes 2 Y p MS33913V1 Peripherals All used peripherals are described in Table 7 Table 1 STM32F072VBT6 demo peripherals UM1687 Used peripherals 1201 EXTI GPIO All applications LEDs NVIC All applications using interrupts PWR Low power modes RCC All applications Demo kernel RTC Calendar Applications StopWatch and Timer SysTick Generate 10 ms time base TIM15 LED toggling TIM3 and TIM4 Voice recording Voice player TIM2 Tim16 and TIM17 Infra Led Transmitter and Receiver CEC Demo ADC1 Voice recording IDD measure CEC CEC Demo DoclD025466 Rev 1 2 UM1687 Running the demonstration Table 1 STM32F072VBT6 demo peripherals continued Used peripherals Application DAC LDR define the comparator level Wave Player SPI1 MicroSD Color LCD COMP LDR Brightness level Touch sense controller 2 3 2 Interr
9. Figure 3 The UP DOWN RIGHT and LEFT joystick directions allow the user to navigate between items in the main menu and the submenus 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 Figure 3 Demonstration overview Create CEC Audio Player ding a high LAA munication N t i Q Y S 2 d 1 i a a RFEEPROM O Calendar lt r ir p Audio lt gt d e Recorder L4 A b USB Device 4 Low Power 12 58 Demo startup After a board reset at demo startup the system checks if an SD card memory is already present in connector CNO If no card is detected the demo does not start and the message 2 DoclD025466 Rev 1 UM1687 Running the demonstration shown in Figure 4 is displayed on the LCD screen Figure 4 SD card check Please insert SDCard MSv33908V1 The demo continues only if an SD card is inserted Then the demo graphic icons and bitmap files are checked in the MicroSD card see Section 2 3 5 External memory organization All the icons have to be correctly programmed in the MicroSD card for the demo to start so if an icon is missing the demo does not start and the message shown in Figure 5 is displayed on the LCD screen Figure 5
10. MHz and the application resumes execution The message shown in Figure 42 is displayed on the LCD screen Figure 42 RTC Alarm wakeup Stop Mode Wakeup by RTC Alarm Press joystick to continue MSv33946V1 Note if the Time and Date have not been set the message shown in Figure 43 is displayed on the LCD screen Figure 43 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 MSv33947V1 2 DoclD025466 Rev 1 33 58 Running the demonstration UM1687 Note 34 58 Standby mode menu This menu allows the user to put the STM32F072VBT6 in the Standby mode The software runs the specific instruction sequence needed by the STM32F072VBT6 to enter the Standby mode In this application the STM32F072VBT6 can exit the Standby mode in two ways as shown in Figure 44 Figure 44 Entering the Standby mode Standby Mode Exit Wakeup Pin Exit RTC Alarm Return MSv33948V1 e Inthe first case the Wakeup push button is used to wake up the MCU from the Standby mode Once the Standby mode submenu has been selected the red LEDs keep blinking until the SEL push button is pressed and the system enters the Standby mode When the MCU is in Standby mode the message shown in Figure 45 is displayed on the LCD Figure 45 MCU in Standby mode MCU in Standby Mod
11. The STM32F072B evaluation board STM32072B EVAL provides on board RS 232 and RS 485 serial ports The RS 232 port USART2 is accessed via CN10 connector IrDA communication The STM32072B EVAL evaluation board supports IrDA communication The interface is mounted on USART 2 U1 interface Miscellaneous peripherals Joystick There is a 4 way joystick with a selection key Push buttons The following push buttons are available e Tamper e Joystick e Wakeup Joystick Sel used to wake up the processor from low power mode 12 bit analog to digital converter ADC Varistor ADC channel ADC1_IN11 connected to an on board variable resistor The variable resistor provides a voltage in the range of 0 V to 3 3 V Audio The STM32072B EVAL evaluation board implements a dedicated audio amplifier to be interfaced with the STM32 DAC peripheral For the audio output an audio jack is available on the board and connected to the DAC MicroSD card The STM32072B EVAL evaluation board has a MicroSD card connector connected to the SPI1 peripheral Serial EEPROM The STM32072B EVAL evaluation board includes a serial EEPROM connected to the SPI1 peripheral RF EEPROM The RF EEPROM daughter board implemented on the module is the M24LR64 R The daughter board can be connected on CN2 to STM32F072VB via the I C bus The IC DoclD025466 Rev 1 Ly UM1687 1 9 8 1 9 9 1 9 10 1 9 11 1 9 12 2 Functional description a
12. Warning message Warning No loaded Bitmap Files Demo can t be executed Please be sure that all files are correctly programmed ln Ems Micros Eana then restart Demo MSv33907V1 However if the icons are correctly loaded into the SD Card memory the welcome screen is displayed and the ST logo appears on the LCD see Figure 6 Figure 6 ST logo Ly life augmented When the board is powered up for the first time the user is prompted to set the time year month and day The user may choose to ignore it by pressing any key except for the SEL Ly DoclD025466 Rev 1 13 58 Running the demonstration UM1687 Note Note 14 58 push button to abort the configuration sequence To set the time and date the user must press SEL and follow the setting sequence The message shown in Figure 7 appears on the LCD screen Figure 7 Time and date configuration Time and Date Config Select Press SEL Abort Press any Key MSv33909V1 1 If the user chooses to configure the time and date the Time Adjust and Date Adjust menus are displayed Otherwise the main menu is displayed and the user can set the time parameters in the Calendar menu To set the time date use the UP DOWN joystick and SEL push button 2 If the time configuration has already been done then the number of elapsed days higher than 1 day from the last time the demo board was powered up appears on the LCD screen It
13. 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 configured before a message is displayed prompting the user to set the time and date or to exit to the upper submenu The user is requested to set the current date to be stored in the application memory 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 the user has to set the date at least once Once the submenu has been selected the user starts by setting the Year then the Month and the day of the selected month The Month and the Year are selected using the UP or DOWN push button For the day the UP DOWN RIGHT and LEFT push DoclD025466 Rev 1 Ly UM1687 2 Running the demonstration buttons can be used Press the UP push button to display the current value plus one press the DOWN push button to display the previous value To confirm the selected month press the SEL push button The display then jumps to the year configuration The same procedure is applicable for the year configuration 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 then shown and you can change the setting if required The messages shown in Figure 20 Figure 21 and Figure 22 are successively displayed on the LCD when this submenu is selected
14. keys keep pressing on the touch keys causes the selected wave file to be played through the embedded speaker Once the command is prompted the submenu shown in Figure 31 is displayed Figure 31 Wave Player Playing submenu Wave Player 2 DoclD025466 Rev 1 UM1687 Note 2 Running the demonstration The Progress bar is displayed at the bottom of the view The Progress bar is updated every 1 of the audio file duration At this application level pressing the SEL push button pauses the audio stream the LEFT push button or Touch Key 0 decrements the audio stream and the RIGHT push button or Touch Key 1 increments the audio stream the DOWN push button exits the Wave Player submenu When the audio stream is paused the menu in Figure 32 is displayed Figure 32 Pause submenu Wave Player To resume playing press the SEL push button and the menu shown in Figure 31 is displayed When the audio stream is stopped the stream position is reset and the menu shown in Figure 30 is displayed The audio files provided within this package are based on a free music download from www DanoSongs com website Wave Record The STM32F072VBT6 microcontroller has an embedded ADC and an embedded DAC which can be used to record a voice signal coming from the U22 microphone In this demo the recorded wave buffers can be transferred from the internal SRAM by block 512 bytes and stored
15. on the LCD it correspond to Hours minutes seconds milliseconds The user can manipulate the chronometer features using the joystick LEFT RIGHT and DOWN push buttons e press the joystick LEFT button to start counter e press the joystick RIGHT button to save trials in the backup registers max 5 actions e Press the joystick DOWN button to exit e press and hold the Tamper button for 1 sec to reset all the backup registers LDR application The STM32F072VBT6 microcontroller has an embedded comparator which can be used in combination with the DAC peripheral for more applications such as the measuring of light intensity using the LDR sensor When the LDR submenu is selected the message shown in Figure 69 is displayed Figure 69 Light Intensity Level According to the light intensity level the icons are changed and also the progress bar InfraRed The infrared technology offers important advantages as a form of wireless communication Nowadays almost all audio and video equipment can be controlled using an infrared remote control DoclD025466 Rev 1 Ly UM1687 Note 2 Running the demonstration There are many popular infrared protocols used to transmit data via infrared light such as RC5 SIRC The purpose of this demo is to provide a generic solution for implementing an IR transmitter and receiver in software using an STM32F072VBT6 microcontroller An example of a software implementatio
16. 4LR A dual interface EEPROM daughter board 2000 eau 40 M24LR64 R block diagram 1 eee 41 Dual Interface EEPROM applications menu llle 41 ESLapplicatiOn ze sudes arr ba ee kata Nass etra Renee ta eames emt RE 42 ESL Setting meri pra teas erue pem end ad ugue dad Died eed atit 42 DataLogger block diagram 0 0 ete 44 DataLogger dialog DOX oooocoocccoo rn 44 DataLogger CUIVG iss Lei AE Rede gu ek d Rd Ron ne RR o DR TR qa pe 45 Applications Menu 45 StopWatch SUBMENU 46 Light Intensity Level corra eee fal wt Deas See AS Pn Rx 46 InfraRed menu 000 tees 47 IR Transmitter menu iius setae e eee Rem ee S CI RU eee NN aa ERE Sew Eden d 47 IR transmitter command menu 00 000 ce eee 48 IR receiver menu seac cise simane san iea aa eens 48 IR receiver application menu 0 ea eee 49 IR receiver command menu 2 000 cece eee 49 IR receiver menu 0 0000 eee eee 50 Help meriu 22 4 cate e Wh ua ad eoe duce De IAA OEE we AN Gee eee A eee 51 Navigation menu 1 ooo 51 Navigation mieril 2 uoo tee a tac ied ERE nd pc 51 Jumpers config menu 1 2 6 eh hh 52 Jumpers config menu 2 2 eh hr 52 Jumpers config menu 3 2 eh hr 52 About submendu dep eR daw p qu EIE VER DE A bee ct aor 53 STM32072B EVAL demo package directory tree llle eese 54 SD Card directory organization llis 56 2 DoclD025466 Rev 1 UM1687 2 Functional
17. Peripherals ec da RR ae RR RR a EE as 18 2 3 2 Interr ptS 22220108 ege bitin Meads P e VR rd ee ns 19 2 3 3 External interrupts 00000 cee ees 19 2 3 4 Internal memory size ooo 20 2 3 5 External memory organization 000 00 cee oo 20 2 4 Demo applications 00 000 cc tees 21 2 4 1 GAIAM M PME 21 2 4 2 Image Viewer submenu 1 re 26 2 4 3 PAU GIO ura ra pud DNUS ce Den irat reed a a 27 2 44 Low power modes 31 2 4 5 Thermometer o 36 2 4 6 HDMI CEC submenu ooo 37 2 4 7 Dual interface EEPROM RF PC 0 000 cee nee 40 2 4 8 Applications ard ap Dex ee pcd HR eg rele a ie 45 2 4 9 InfraRed ace re Rt n se REIR TR RT tem ee ARRAS 46 2 4 10 Mouse Application l l 50 24 11 Helps aO oe de oe x desde Re bd pdohw ded ds 51 2 4 12 About submenu selle 53 STM32072B EVAL demonstration package 54 STM32072B EVAL demonstration programming 56 4 1 Programming the media files 0 0 0000 cece ee 56 4 2 Programming the demo 00 cee ee ee 56 4 2 1 Using Bootloader 0 0 eae 56 4 2 2 Using preconfigured projects 0 0 0c ee 56 REVISION history ao RE XOsesEAEETETETEEREREROsEZsECXEARURU EN V ees 57 DoclD025466 Rev 1 3 58 List of tables UM1687 List of tables Table 1 STM32F072VBT6 demo peripherals 0 00000 cece eee 18 Table 2 STM32F072VBT6 demo interruptS
18. R frame will be decoded using the IR receiver If the protocol is compliant with the selected IR protocol the device and the command will be displayed on the LCD screen Figure 75 Figure 75 IR receiver command menu To exit press UP MS33973V1 Note For more details on the infrared receiver implementation refer to AN3174 application note implementing infrared remote protocols receiver with the STM32F10xx microcontrollers This application note provides a full description of the IR decoding 3 DoclD025466 Rev 1 49 58 Running the demonstration UM1687 2 4 10 50 58 Mouse Application A USB mouse human interface device HID class is a simple example of a complete USB application The joystick mouse uses only one interrupt endpoint endpoint 1 in the IN direction After normal enumeration the host requests the HID report descriptor of the mouse To get the mouse pointer position the host requests four bytes of data with the format shown in Figure below The purpose of the mouse demo is to set the X and Y values according to the user actions with a joystick button The JoyState function gets the user actions and returns the direction of the mouse pointer When the Mouse Application submenu is selected the message shown in figure below is displayed Figure 76 IR receiver menu Mouse Applicaiton SE SUE Return MSv33975V1 Plug in the USB cable and use the joystick
19. Setting the alarm activation time HH MM 98 e Alarm Show this item displays the current alarm time The default Alarm activation time displayed after power up and before setting in the Alarm Adjust submenu is 00 00 00 If the time and date have not been configured before a message shown in Figure 26 is displayed Pressing SEL takes you back to the Alarm submenu The message shown in Figure 25 is displayed on the LCD when this submenu is selected Figure 25 Alarm Show submenu HH MM To exit the Alarm Show submenu press the SEL push button To exit the Alarm submenu select the Return line and press the SEL push button Note In the Alarm Adjust and Alarm Show menus if the time and date have not yet been configured the message shown in Figure 26 is displayed on the LCD screen 2 DoclD025466 Rev 1 25 58 Running the demonstration UM1687 2 4 2 26 58 Figure 26 Message displayed if time and date need setting Time not configur SEL Image Viewer submenu The Image Viewer submenu is used to demonstrate the LCD control performance using the embedded SPI interface The application is a successive display of stored images 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 Size 240x320 Select Image Viewer to display the submenu s
20. Utilities STM32F072B EVAL contains STM32072B EVAL board drivers DoclD025466 Rev 1 55 58 STM32072B EVAL demonstration programming UM1687 4 4 1 4 2 4 2 1 4 2 2 56 58 STM32072B EVAL demonstration programming Programming the media files The STM32072B EVAL board comes with a MicroSD card memory preprogrammed with Audio and Image resources used by the demonstration However you can load your own image bmp and audio wav files in the USER directory respectively provided that these file formats are supported by the demonstration For more details please refer to Section 2 4 2 Image Viewer submenu and Section 2 4 3 Audio Figure 85 SD Card directory organization ge STM32F072 F C3 STFILES e Demo mandatory files C3 USER gt USER files C REC Recording wave file The default content of the media files STFILES and USER directories can be retrieved from the Binary Media folder If the user wants to reprogram the MicroSD card he she can copy the content of the Binary Media folder to his her own SD memory Programming the demo You can program the demonstration using two methods Using Bootloader To program the demonstration s binary image into the internal Flash memory you have to use the stm32072B eval_fw_vx y z_configx hex file located under Project STM32072B EVAL Binary with embedded Bootloader For more details please refer to Bootloader application note AN2606 STM32 mi
21. bakebated be id Cab Ghee eee UG d ERR o RUE 9 1 7 1 A pAn ENE e EEA E A EEEE ENANTA 9 1 7 2 LEDS 000 aa qu E vat eae s 9 1 7 3 LDR Light Dependent Resistor naaa 9 1 8 Interfaces 0 0 ete eee 10 1 8 1 RS 232 and RS 485 serial ports 000000 cece eee 10 1 8 2 IrDA communication 000000 e eee lees 10 1 9 Miscellaneous peripherals llle 10 1 9 1 Ayr dI 10 1 9 2 Push buttons ooo 10 1 9 3 12 bit analog to digital converter ADC 2000 eau 10 1 9 4 ANU MM ECC 10 1 9 5 MicroSD card ooo 10 1 9 6 Serial EEPROM saiia ai eaa aaea a es 10 1 9 7 RE EEPROM ss EIE RR E ede hehe A 10 1 9 8 IR LED and IR receiver o oocccococcoccoo ee 11 1 9 9 HDMI CEC icu r c ed een eta ide eda YU Red da A Ed 11 1 9 10 Temperature sensor 0000 sees 11 1 911 TOUCH Keys 2 uos donee see net ete dee ewe Rene Rn 11 1 9 12 STM32072B EVAL board jumper configuration 11 2 Running the demonstration ssssesseesn 12 2 1 MEINEnhuUMePIT bak Obes a4 el pee bate b abate teats 12 2 1 1 D mo stantup isse LEER ERI PER3G a Wb ce eee dad aun 12 2 1 2 Navigation i obra bee wide rbd dd dd as 15 2 2 Clock sources ooo 16 2 58 DoclD025466 Rev 1 Ly UM1687 2 Contents 2 2 1 Clock conttol suse nce eda ee DR eR RC a AR ee a oe 16 2 2 2 Clock failure ien ale ek aw ae ER deb wal Shas aR OARS 17 2 3 STM32F072VBT6 resources 0002 cece 18 2 3 1
22. bit 31 24 bit 7 0 Contains XYYYYYYYh X number of digits max 7 in price oN YYYYY price value including decimal separator coded in hexadecimal For instance 512A99FFh means 5 digits and the price is 12 99 0002h 0003h Contains the ASCII codes of the string chain called ASCII TEXT LINE 1 in 0004h M24LR64 ESL demo software The maximum size of this text line is 20 0005h characters ind Contains the ASCII codes of the string chain called ASCII TEXT LINE 2 in 0009h M24LR64 ESL demo software The maximum size of this text line is 20 000Ah characters XXXX XX is the checksum of bytes from address 0000h to 000Bh 000Ch YY reserved ZZ reserved DataLogger application This dual interface EEPROM RF PC application presents a practical application for the M24LR64 It is able to record and store a 64 Kbit temperature data using the M24LR64 R dual interface EEPROM The DataLogger microcontroller is an STM32F072VBT6 which communicates with the M24LR64 R using its I C serial interface and controls an STLM75 digital temperature sensor DoclD025466 Rev 1 43 58 Running the demonstration UM1687 44 58 Figure 64 DataLogger block diagram STM32 microcontroller Temperature acquisition parameters temperature acquisition Start Stop temperature acquisition period are stored into the M24LR64 dual interface EEPROM Changing these values and controlling the te
23. buttons Plug USB cable and use Joystick Buttons Exit Push SEL 2 DoclD025466 Rev 1 UM1687 2 4 11 2 Running the demonstration Help This submenu can help the user to configure the jumpers on the STM32F072B EVAL evaluation board and to navigate between the menus and submenus available in the firmware demo Select the Help menu by pressing SEL from the main menu The message shown in Figure 77 is then displayed on the LCD screen Figure 77 Help menu Help Menu Navigation Jumpers Config Return MSv33977V1 e Ifthe Menu Navigation submenu is selected the message shown in Figure 78 is displayed Figure 78 Navigation menu 1 JoyStick Buttons LEFT RIGHT DOWN When any joystick button is pressed the second navigation interface is displayed as shown in Figure 79 Figure 79 Navigation menu 2 UP DOWN RIGHT and LEFT push buttons perform circular navigation in the main menu current menu items SEL push button selects the current item UP and DOWN perform vertical navigation MSv33979V1 DoclD025466 Rev 1 51 58 Running the demonstration UM1687 Once the joystick push button has been pressed again the MCU exits the navigation submenu and the message shown in Figure 77 is displayed on the LCD screen e Ifthe Jumpers config submenu is selected the message shown in Figure 80 is displayed Figure 80 Jumpers config m
24. crocontroller system memory boot mode Using preconfigured projects e Select the folder corresponding to your preferred toolchain MDK ARM EWARM RIDE or TrueSTUDIO e Open the STM32F072B EVAL Demo project and rebuild all sources e Load the project image through your debugger e Restart the evaluation board press B1 reset button 2 DoclD025466 Rev 1 UM1687 Revision history 5 Revision history Table 5 Document revision history Date Revision Changes 10 Jan 2014 1 Initial release 2 DoclD025466 Rev 1 57 58 UM1687 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 fo
25. d ee ee la hh hh hh ds 17 Standby mode entered o 17 Hardware requirements ooo 18 Internal Flash memory organization 0 000 eae 20 SD card removal 225 2245 6455 eh eae be eae ew q ee ee ae 20 Setting the time and date 6 ee ee oh hd 21 Time Adjust submenu 2 eee 22 Time Show SUBMENU 2 2462 5 4 eee ee dee eee ee 22 Settirig the yea sso ew Sacks ee ex aed aaa Eesti tra al ate de a de 23 Setting the Month 222i dme rgo descen emn al e b Roh ox P eR EO d 23 Setting the day of the month 0 0 ce eh 24 Exiting the Date Show submenu 00 0 cee eee 24 Setting the alarm activation time 0 llli 25 Alarm Show SUBMENU 25 Message displayed if time and date need setting 0 00 eee eee 26 Image Viewer submenu ooo 26 STM32 Image Viewer 2 0 eee 27 Wave Player submenu 1 nee 28 Wave Player interface 0 0 m e 28 Wave Player Playing submenu 1 0 2 0 00 ae 28 Pause SUDMCNU ETT 29 Voice Recording submenu selected 00 eee 30 Record SUBMENU esisi a luce ee ee ee E RA RR Eh RR ma 30 Starting wave Tecos 30 Exiting the Stop mode 2 2 eke eee eee eR Ron ee RR A RD 31 Stop mode entered exit EXT 20000 31 MCU in the Stop mode Exit EXT 0 00000 cee 32 RTC Alarm causes the MCU to exit the Stop mode 002020 0 eee 32 Setting the Wakeup time 0 0 0 tenes 32 RTC Alarm wakeup configured 1 2 0 0 0 0 eee 33
26. ddress of the RF EEPROM is 0b1010E2E1E0 EO E2 values are determined by the RF EEPROM daughterboard IR LED and IR receiver The IR receiver TSOP34836 is connected to PC6 of STM32F072VBT6 and a current around 100mA on IR LED is driven by PB9 through transistors T3 and T4 on the board HDMI CEC Two HDMI connectors CN3 and CNB are available on the STM32072B EVAL board Temperature sensor The STM32072B EVAL evaluation board includes an 12C temperature sensor connected to the 12C1 peripheral Touch keys Touch slider is supported on the STM32072B EVAL evaluation board and connected to 3 capacitive sensing channels PD 12 14 in group 8 with active shield being connected to 2 capacitive sensing channels PE4 and PE5 in group 7 STM32072B EVAL board jumper configuration To be able to run the STM32072B EVAL demo correctly configure the following STM32072B EVAL board jumpers as follows e VDD Adjust JP13 fitted pos VDD e VDD Voltage JP12 fitted pos 3 3 V e VDD Analog JP9 fitted e VDD VBat JP11 fitted pos VDD e VDD MCU JP7 fitted e Audio Output JP18 fitted e LDR demo jumper JP6 fitted DoclD025466 Rev 1 11 58 Running the demonstration UM1687 2 2 1 Running the demonstration Main menu The purpose of the demonstration is to bring out the capabilities of microcontroller and the on chip pheripherals It runs only on the STM32072B EVAL board The demonstration contains the following applications refer to
27. de The system clock is then set to 48 MHz and the application resumes execution Figure 38 MCU in the Stop mode Exit EXTI Stop Mode Wakeup by key Button Press SEC tO continue MSv33943V1 Note if an RTC Alarm is generated while the MCU is in the Stop mode and the message shown in Figure 38 is displayed which means that the Key push button needs to be pressed to exit the Stop mode the RTC Alarm causes the MCU to exit the Stop mode The message shown in Figure 39 is then displayed Figure 39 RTC Alarm causes the MCU to exit the Stop mode Stop Mode Wakeup by RTC Alarm Press joystick to continue MSv33944V1 e n the second case the RTC Alarm wakes up the MCU from the Stop mode after the programmed time has elapsed When selecting this submenu the user has to set the alarm to the time when the MCU is to exit the Stop mode Figure 40 shows how to set the wakeup time Figure 40 Setting the Wakeup time HH MM SsS Once the alarm has been configured the red LEDs stop blinking and the system enters the Stop mode The message shown in Figure 41 is displayed on the LCD MSv33951V1 32 58 DoclD025466 Rev 1 Ly UM1687 Running the demonstration Figure 41 RTC Alarm wakeup configured MCU in Stop Mode Wait for RTC Alarm MSv33945V1 After the programmed time has elapsed the system exits the Stop mode The system clock is then set to 48
28. description Functional description The STM32F072VBT6 microcontroller evaluation board provides a development and demonstration platform for STM32F072B based applications It has been designed to let the user try out the major functions of the STM32F072VBT6 microcontroller Due to the code size constraint the STM32072B EVAL demonstration firmware is provided with 2 configurations and the STM32072B EVAL board is delivered with the demonstration config1 programmed in the internal Flash memory and all the files needed by the demonstration are programmed in the MicroSD card The demonstration is executed at each reset board power up external reset etc In case the STM32072B EVAL board was not factory programmed or the demonstration application was erased or you need to change the STM32072B EVAL board configuration the Bootloader IAP or STM32 STLink utility can be used to program this file For more details refer to Section 3 STM32072B EVAL demonstration package and Section 4 STM32072B EVAL demonstration programming Before you execute the demonstration make sure that all EVAL board jumpers are correctly configured For more details refer to Section 1 9 12 STM32072B EVAL board jumper configuration Figure 2 summarizes the main functional blocks of the evaluation board DoclD025466 Rev 1 7 58 Functional description UM1687 Figure 2 Evaluation board overview
29. e To exit press Wakeup The MCU remains in Standby mode until the Wakeup push button is pressed Once the Wakeup push button has been pressed the MCU exits the Standby mode and the system reset signal is generated MSv33949V1 if an RTC Alarm is generated while the MCU is in Standby mode and the message shown in Figure 45 is displayed which means that the Wakeup push button needs to be pressed to exit the Standby mode the RTC Alarm causes the MCU to exit the Standby mode and a system reset signal is generated 2 DoclD025466 Rev 1 UM1687 Running the demonstration Figure 46 RTC Alarm causes the MCU to exit the Standby mode Stop Mode Wakeup by RTC Alarm Press joystick to continue MSv33944V1 e n the second case the RTC Alarm wakes up the MCU from the Standby mode after the programmed time has elapsed When selecting this submenu the user has to set the alarm to the time when the MCU is to exit the Standby mode Figure 47 shows how to set the wakeup time Figure 47 Setting the wakeup time HH MM SS Once the alarm has been configured The LEDs stop blinking and the system enters the Standby mode The message shown in Figure 48 is then displayed on the LCD MSv33951V1 Figure 48 RTC Alarm wakeup configured MCU in Standby Mode Wait for RTC Alarm MSv33950V1 After the programmed timing has elapsed the system exits the Standby m
30. e 72 is displayed Figure 72 IR transmitter command menu MS33971V1 The user can manipulate the InfraRed transmitter features using the joystick LEFT RIGHT DOWN UP and SEL buttons e press the joystick DOWN button to switch between device type and command e press the joystick LEFT button to go to the previously defined device command e press the joystick RIGHT button to go to the next defined device command e press the joystick SEL button to send the selected device command code When the joystick UP button is pressed the infrared transmitter demo is exited and the menu shown in Figure 71 is displayed Infrared receiver TSOP34836 IR receiver is connected to PB3 of STM32F072VBT6 on the STM32F072B EVAL board At the receiving end a receiver detects the light pulses which are processed to retrieve decode the information they contain When the IR Receiver submenu is selected the message shown in Figure 73 is displayed Figure 73 IR receiver menu IR Receiver SIRC RCS Return MSv33970V1 DoclD025466 Rev 1 Ly UM1687 Running the demonstration When a protocol has been selected from the list the adequate submenu shown in Figure 74 is displayed Figure 74 IR receiver application menu To exit press UP MS33972V1 When an IR frame is sent using a remote control or using the IR transmitter application running on another STM32F072B EVAL board this I
31. e extraction of the zip file generates one folder STM32072B EVAL_FW_VX Y Z which contains the subfolders shown in Figure 84 and described below Figure 84 STM32072B EVAL demo package directory tree cy STM32072B EVAL FW VXY Z _htmresc Libraries CMSIS STM32FOx_StdPeriph_Driver 10 Project STM32072B EVAL 9 Binary E Media E STFILES USER E readme bd s stm32072 B eval fw vx y z hex EWARM C inc MDK ARM 5 src TrueSTUDIO El readme bd Utilities STM32_EVAL Common STM32072B_EVAL Third Party MCD ST Liberty SW License Agreement V2 pdf Release Notes html SD stm32072Beval fw chm 1 Libraries contains the Hardware Abstraction Layer HAL for STM32FOxx devices 2 ProjectiSTM32072B EVAL Binary contains the binary image hex of the demonstration that can be used with any in system programming tool or the embedded Bootloader to reprogram 2 54 58 DoclD025466 Rev 1 UM1687 2 STM32072B EVAL demonstration package the demonstration It contains also the media files bmp and wav required to run the demonstration under Media subfolder EWARM contains preconfigured projects for the EWARM toolchain MDK ARM contains preconfigured projects for the MDK ARM toolchain TrueSTUDIO contains preconfigured projects for the Atollic toolchain inc contains the demonstration header files src contains the demonstration source files
32. ead all media information from the on board MicroSD card memory The SD card memory is organized in three subdirectories e STFILES this directory contains all the required demo media files icons waves and slides User files located in this folder cannot be handled by demo only default files are managed e USER this is a user folder The user can add his her own files here to be played inside the demo menus pictures and waves This folder is used only by the Image Viewer and Wave Player submenus For more details on the various files properties please refer to Section 2 4 2 Image Viewer submenu and Section 2 4 3 Audio e REC this directory contains the voice recorded wave file Rec wave wav This Folder will be created when the Voice Recording application is run The MicroSD card memory provided within STM32072B EVAL board is already programmed with the media files required to run the demonstration These files are also available within the demonstration firmware package under Project STM32072B EVAL Binary Media folder The STFILES directory and its internal files are mandatory for demo startup FatFs is a generic FAT file system module for small embedded systems The FatFs is written in compliance with ANSI C and completely separated from the disk I O layer For more details refer to the following link http elm chan org fsw ff 00index_e html At any demo level if the SD card is removed the demo stops and the message shown i
33. enu 1 Use RIGHT and LEFT LO GO rO Cie next previous slide and UP to exit MSv33980V1 Press RIGHT and LEFT to go to the next previous slide and UP to exit The following messages shown in Figure 81 Figure 82 and Figure 82 are displayed sequentially on the LCD screen Figure 81 Jumpers config menu 2 VDD Voltage diia ete joos SoS Y VDD Analog JP9 fitted DID Voets deL statceecl jos VIDD VIDD MEUS GEIL and GIG fitted MSv33982V1 Figure 82 Jumpers config menu 3 Audio Output JP20 fitted SJET fitted HOS mueio OUL Ib foz MODO Audio OUT R for Stereo Waves LDR Demo JP6 fitted pos LDR MSv33981V1 Once the SEL joystick push button has been pressed the MCU exits the Jumpers config submenu and the message shown in Figure 77 is displayed on the LCD screen 2 52 58 DoclD025466 Rev 1 UM1687 Running the demonstration 2 4 12 About submenu This submenu shows the version of the STM32F072VBT6 demo firmware When the About submenu is selected the message shown in Figure 83 is displayed on the LCD screen Figure 83 About submenu Return MSv33983V1 Pressing SEL then displays a message showing the STM32F072B EVAL demo version on the LCD screen 2 DoclD025466 Rev 1 53 58 STM32072B EVAL demonstration package UM1687 3 STM32072B EVAL demonstration package The STM32072B EVAL demonstration is supplied in one single zip file Th
34. gure 11 Clock tree diagram HSI prescaler lt HSIRC E N v 1244 32 KHz CEC HCLK 48 MHz to AHB bus core memory and DMA 48 MHz 48 MHz e N X 2 PLL PCLK to APB uw AHB En I gt multiplicator SYSCLK peripherals 8MHzX6 Prescaler 3 48 MH APB z 1 X6 gt prescaler jH p TIM1 15 16 17 8 MHz 1 X6 X1 multiplier 32 KHz ig 14 MHz oa ADC x 14 MHz ui s 32 KHz 9 RTC o o DoclD025466 Rev 1 MSv33917V1 2 UM1687 Running the demonstration 2 2 2 Clock failure At any demo level 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 No HSE Clock Detected Standby mode in a few seconds TE Sa CLOGK recovers before the timeout a system reset is generated MSv33912V1 If the 8 MHz crystal is not reconnected in the next few seconds the MCU enters the Standby mode If the 8 MHz crystal is reconnected within a few seconds a system reset is generated Note The clock security system CSS feeds the MCU with the MSI OSC used as an emergency clock if no clock is detected When a timeout occurs the MCU enters the Standby mode and the message shown in Figure 13 is displayed on the LCD screen Figure
35. hown in Figure 27 Figure 27 Image Viewer submenu Image Viewer Image Viewer Return MSv33937V1 When Image Viewer is selected a list box of images is displayed as shown in Figure 28 Using the UP DOWN and SEL push buttons the user can select and view any image from the list box The user can also select and view any image from the list box using the slider mounted on the evaluation board DoclD025466 Rev 1 2 UM1687 Running the demonstration Figure 28 STM32 Image Viewer When Image Viewer is selected the corresponding image is displayed and then the user can use the RIGHT and LEFT push buttons to go to the next previous image stored in the USER folder on the MicroSD card If the DOWN push button is pressed the Image Viewer is stopped and the submenu shown in Figure 28 is displayed The supported image size is 240x320 The defined maximum number of images that can be read from the MicroSD card is 4 images selected in alphabetic order 2 4 3 Audio Wave Player submenu The STM32F072VBT6 microcontroller has an embedded DAC which can be used to generate output signals In this demo any wave file stored under the USER folder in the MicroSD card can be opened using the file system FATFS and transferred to the internal SRAM by block 512 bytes using 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 aud
36. io amplifier is connected to the DAC interface to play the stored wave files This application reads all wave files from USER directory See 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 16 bit Audio sample data values are in the range 0 1023 e Number of Channels 2 Stereo The maximum wave files number that can be read from the MicroSD card is 4 files selected in alphabetic order By selecting Wave Player the submenu shown in Figure 29 is displayed 2 DoclD025466 Rev 1 27 58 Running the demonstration 28 58 UM1687 Figure 29 Wave Player submenu Wave Player Wave Player Return Wave Recorder MSv33938V1 When Wave Player is selected again the wave player file names are displayed as a list box as shown in Figure 30 Figure 30 Wave Player interface DMA gm STM32 In Figure 30 the active push buttons and their functions are displayed as below For example at start up pressing the SEL JoyStick push button causes the file to be played through the embedded speaker whereas pressing the DOWN push button causes to exit the Wave Player submenu The user can also select the desired wave file using the Touch
37. is soon followed by the current date 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 on the same screen You can navigate using the UP DOWN RIGHT and LEFT joystick directions to select the required submenu To enter a submenu press the SEL joystick push button and the new submenu corresponding to the selected icon is displayed Figure 8 Main menu APP Main Menu Name Ns e v a GO e Dr a g 3 MS33910V1 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 2 DoclD025466 Rev 1 UM1687 2 Running the demonstration Figure 9 Corresponding submenus APP Main Menu Name APP Sub Menu1 Name APP Sub Menu2 Name I I I Return MSv33911V1 Navigation The demonstration menu is based on circular navigation submenu selection item selection and back navigation as described in Figure 10 Figure 10 Navigating in the demonstration menus 2 E a Right Right Right E Item 1 Item 2 Item 3 I
38. mperature acquisition is done in RF mode using the CR95HF RFID reader writer demo board During the temperature acquisition data from the STLM75 digital temperature sensor is written into the M24LR64 by the STM32F072VB microcontroller in 12 mode and displayed on the STM32072B EVAL eval board LCD screen Temperature data can be read in the same time in RF mode using the CR95HF RFID reader writer demo board and be displayed in the PC DataLogger software application For more details about this application please refer to the application note AN3109 Developing your M24LR64 R datalogger application for temperature acquisition How to run the application 1 From the STM32072B evaluation board select the DataLogger submenu and then press the SEL push button Figure 65 DataLogger dialog box DUAL INTERFACE EEPROM e seem al tre rr 51 g Press START button from user interface 2 From the application software side choose DataLogger application and then follow the steps described on the user manual UM0925 When the application starts the data has been stored in the dual interface EEPROM and this temperature data has been displayed as a real time curve on the TFT LCD mounted on the evaluation board and also on the PC software interface 2 DoclD025466 Rev 1 UM1687 Running the demonstration Figure 66 DataLogger curve BELCI Mole e 38 Reference documents a M24LR64 R datasheet M24LR64 R
39. n Figure 16 is displayed on the LCD screen Figure 16 SD card removal Press JoyStick UP to Restart the demo MSv33916V1 2 DoclD025466 Rev 1 UM1687 2 4 Note 2 4 1 2 Running the demonstration Demo applications The following section provides a detailed description of each part of the demonstration In the demonstration the core runs at HCLK 48 MHz Four LEDs LD1 LD2 LD3 and LD4 flash throughout the demonstration at a frequency depending on the core clock Calendar The STM32F072VB features a real time clock RTC which is an independent BCD timer counter The RTC provides a time of day clock calendar two programmable alarm interrupts and a periodic programmable wakeup flag with interrupt capability This submenu is used to configure the time date and alarm In any submenu if the time and date parameters have not yet been configured the message shown in Figure 17 is displayed on the LCD screen Figure 17 Setting the time and date Time and Date Config Select Press SEL Abort Press any Key MSv33936V1 The user can choose 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 SEL and follow the setting sequence to set the time and date Time submenu This submenu is divided into two items that allow the user to display or set the current time e Time Adjust after the evaluati
40. n is provided for the free RC5 and SIRC protocol specification Other protocols can be supported upon request for further information contact your local STMicroelectronics sales office For more details refer to application note AN4099 Implementing transmitters and receivers for infrared remote control protocols using STM32FOxx microcontrollers The infrared protocol implementation is based on free RC5 and SIRC specifications download from http www sbprojects com knowledge ir rc5 php http www sbprojects com knowledge ir sirc php The STM32F072VBT6 microcontroller has embedded Timers which can be used as follows e One 32 bit and one 16 bit timer with up to 4 IC OC usable for IR control decoding e Two 16 bit timers each with IC OC and OCN dead time generation emergency stop and modulator gate for IR encoder Select InfraRed to display the submenu shown in Figure 70 Figure 70 InfraRed menu InfraRed IR Transmitter IR Receiver Return MSv33968V1 Infrared transmitter On the STM32F072B EVAL board the IR LED is driven by PB9 directly with 20mA current When the IR Transmitter submenu is selected the message shown in Figure 71 is displayed Figure 71 IR Transmitter menu II an Si IEEE SERE RES Return MSv33969V1 DoclD025466 Rev 1 47 58 Running the demonstration UM1687 48 58 When a protocol has been selected from the list the adequate submenu shown in Figur
41. ode 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 2 DoclD025466 Rev 1 35 58 Running the demonstration UM1687 2 4 5 36 58 Figure 49 Time and Date configuration prompt Time and Date are not configured please go to the Calendar menu and set Time and Date parameters Press Joys Erek Ie Continuer MSv33947V1 Thermometer The STM32F072VBT6 microcontroller has two embedded I 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 I C temperature sensor is mounted on the STM32072B 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 50 is displayed on the LCD Figure 50 Thermometer submenu selected Thermometer Temperature Return MSv33952V1 Once the Temperature submenu has been selected by pressing the SEL push button the temperature value is displayed in Celsius and Fahrenheit as shown in Figure 51 Press any key to return to the Thermometer submenu Figure 51 Temperature display TE MS33953V1 DoclD025466 Rev 1 Ly UM1687 Note 2 4 6 2 Running the demonstration The temperature variations can be monitored easily using the STM32 I2C SMB
42. on board is powered up select this submenu to change the default time 00 00 00 to the current time Once Time Adjust has been selected the first digit of the hour field can be changed Press the UP button to display the current value plus one Press the DOWN button to display the previous digit value After setting the digit value press SEL and 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 depending on the field hour minutes or seconds The following message with the default time or the current time is displayed on the LCD when this submenu is selected DoclD025466 Rev 1 21 58 Running the demonstration UM1687 22 58 Figure 18 Time Adjust submenu TIME HH MM SS e Time Show this item displays the current time If time and date have not been configured before 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 19 appears on the LCD In the example the time has not been set yet Figure 19 Time Show submenu HH MM 8 To exit the Time Show submenu press the SEL push button To exit the Time submenu select the Return line 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
43. 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 replaces all information previously supplied The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners 2014 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 58 58 DoclD025466 Rev 1 Ly
44. r the use of such third party products or services or any intellectual property contained therein 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 ST PRODUCTS ARE NOT DESIGNED OR AUTHORIZED FOR USE IN A SAFETY CRITICAL APPLICATIONS SUCH AS LIFE SUPPORTING ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH PRODUCT FUNCTIONAL SAFETY REQUIREMENTS B AERONAUTIC APPLICATIONS C AUTOMOTIVE APPLICATIONS OR ENVIRONMENTS AND OR D AEROSPACE APPLICATIONS OR ENVIRONMENTS WHERE ST PRODUCTS ARE NOT DESIGNED FOR SUCH USE THE PURCHASER SHALL USE PRODUCTS AT PURCHASER S SOLE RISK EVEN IF ST HAS BEEN INFORMED IN WRITING OF SUCH USAGE UNLESS A PRODUCT IS EXPRESSLY DESIGNATED BY ST AS BEING INTENDED FOR AUTOMOTIVE AUTOMOTIVE SAFETY OR MEDICAL INDUSTRY DOMAINS ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS PRODUCTS FORMALLY ESCC QML OR JAN QUALIFIED ARE DEEMED SUITABLE FOR USE IN AEROSPACE BY THE CORRESPONDING GOVERNMENTAL AGENCY Resale of ST products with
45. read ESL configuration transfer data to your ESL Using this PC software application several parameters can be set to configure the ESL device and update the LCD display mounted on the STM32072B EVAL French English Logo Check the French PROMO or English DISCOUNT to indicate that a special price is proposed Check the blank logo if no special price is applied Orientation arrow Check the up or down arrow to indicate if the price has been increased or decreased or the blank arrow if no indication is required Price Display the product price DoclD025466 Rev 1 Ly 42 58 UM1687 Note 2 Running the demonstration Ascii Text line 1 and Line 2 Display the name and a brief description of the product The transfer data to your ESL button of the PC ESL demo software allows to program ESL parameters in RF mode using the CR95HF RFID reader writer demo board ESL data can be read from the M24LR64 dual interface EEPROM using the read ESL configuration button of the PC ESL demo software application When done ESL data written into the M24LR64 is displayed in the ESL panel of the PC ESL demo application For more details about this PC Software please refer to user manual UM0853 ESL parameters mapping into the M24LR64 dual interface EEPROM are shown in Table 4 M24LR64 memory organization ESL application Table 4 M24LR64 memory organization ESL application RF block address
46. s 03 Message Opcode 44 Data 41 Send Status Select Follower ADDR Ju MSv33960V1 Normally for the Standby command the device is in stop mode and can wake up only when it receives a new command If you press the Tamper button the HDMI CEC demo stops and the menu shown in Figure 54 is displayed DoclD025466 Rev 1 39 58 Running the demonstration UM1687 Note 2 4 7 Note 40 58 The STM32F072VBT6 CEC device responds only to the following commands For other commands it sends feature abort e Standby e Get CEC version e Give physical address e Give OSD name Dual interface EEPROM RF I C The STM32F072VBT6 microcontroller has two embedded 12C peripherals that can be connected to any device supporting the I2C protocol An ANT7 M24LR A dual interface RF EEPROM daughter board can be connected on CN2 to STM32072B EVAL via the 12C interface For more details about the Dual Interface EEPROM daughter board please refer to the ANT7 M24LR A databrief Figure 59 ANT7 M24LR A dual interface EEPROM daughter board The M24LR64 R device is a dual interface electrically erasable programmable memory EEPROM It features an I2C interface and can be operated from a VCC power supply It is also a contactless memory powered by the received carrier electromagnetic wave at 13 56 MHZ The M24LR64 R is organized as 8192 x 8 bits in the I2C mode and as 2048 x 32 bits in the ISO 15693 and ISO 18000 3 mode
47. scription Clocking Two clock sources are available on the STM32072B EVAL evaluation board for STM32F072VBT6 and embedded RTC X1 32KHz Crystal for embedded RTC X2 8 MHz Crystal with socket for STM32F072VBT6 Microcontroller it can be removed from socket when internal RC clock is used Reset control The reset can be generated by hardware or software e Reset button activates the RESET input when pressed e JTAG reset Debug JTAG interface Software debug is done via the standard ARM JTAG connection 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 V2 An embedded ST LINK V2 is integrated on the board as an embedded in circuit debugger and programmer for the STM32F072VBT6 MCU Display devices LCD A color LCD module is mounted on the STM32072B EVAL board It is interfaced through the embedded SPI peripheral LEDs Four general purpose LEDs are available They are used as a display LDR Light Dependent Resistor The VppA is divided by the resistor bridge of LDR VT9ON1 amp 8 2K resistor and connected to PA1 DoclD025466 Rev 1 9 58 Functional description UM1687 1 8 1 8 1 1 8 2 1 9 1 9 1 1 9 2 1 9 3 1 9 4 1 9 5 1 9 6 1 9 7 10 58 Interfaces RS 232 and RS 485 serial ports
48. tem 4 ies Left Left Left s s s Left Right Right Right 5 Item 5 Item 6 Item 7 Item 8 Left Left Left is s 3 Left Right Right Right Item 9 Item 10 Item 11 Item 12 Left Left Left Right Down Down Down Item 3 1 Selecy rd of Item 3 1 1 Item 3 2 Item 3 Item 3 1 2 Mied a gt o Item 3 n Tem 3 1 0 Return Return MS33935V1 The user navigates using the joystick push buttons located on the evaluation board RIGHT LEFT SEL UP and DOWN 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 The SEL push button selects the current item e The UP and DOWN push buttons are used for vertical navigation in the submenus e Toreturn to the upper menu go to the Return line and press SEL DoclD025466 Rev 1 15 58 Running the demonstration 2 2 2 2 1 16 58 Clock sources Clock control UM1687 The STM32F072VBT6 internal clocks are derived from the HSE clocked by the external 8 MHz crystal In this demo application the various system clocks are configured as follows System clock is set to 48 MHz the PLL is used as the system clock source HCLK frequency is set to 48 MHz Timer clock TIMCLK is set to 48 MHz ADC clock is set to 14 MHz CEC clock is set to 32 KHz PCLK is set to 48 MHz Only the RTC is clocked by a 32 kHz external oscillator Figure 11 illustrates the clock tree organization for this demo Fi
49. tool driver install guide user manual UM0863 Using the M24LR64 R datalogger reference design user manual UM0925 How to manage M24LR64 R data transfers from the I C bus or an RF channel Application note AN3057 f Application note AN3109 g ANT7 M24LR A data brief For more information about dual interface EEPROM memories and associated demo boards and documentation visit the dual interface EEPPROM page on www st com Oo O amp O oO For more information about the CR95HF multi protocol RFID transceiver technical documentation and associated resources visit the CR95HF web page on www st com 2 4 8 Applications The STM32F072VBT6 microcontroller has a new embedded RTC Version 2 which can be used for many applications like Stopwatch and Timer Select Applications to display the submenu shown in Figure 67 Figure 67 Applications menu Applications StopWatch LDR Return MSv33965V1 Stopwatch application This application simulates a precise chronometer with 5 record time possibilities For this application an interactive human interface is developed using STM32072B EVAL LCD and push buttons to allow the user to use StopWatch with real time display DoclD025466 Rev 1 45 58 2 Running the demonstration UM1687 2 4 9 46 58 Figure 68 StopWatch submenu 00 00 1 820 00 00 0 820 OOOO PE 00 After startup a default 00 00 00 000 chronometer counter is displayed
50. under the REC folder in the MicroSD card using the FatFs file system and based on DMA and SPI1 Timer3 TIM3 triggers the ADC to generate the sampling frequency When the Wave Record submenu is selected the message shown in Figure 33 is displayed on the LCD DoclD025466 Rev 1 29 58 Running the demonstration UM1687 Figure 33 Voice Recording submenu selected Wave Record Record Return MSv33940V1 If the Record submenu has been selected by pressing the SEL push button the Voice Recording interface is displayed as shown in Figure 34 Figure 34 Record submenu Wave Recording K START REC EXIT MS33951V1 Once the record command is activated by pressing on SEL push button the submenu shown in Figure 35 is displayed Figure 35 Starting wave record Wave Recording REC_WAVE 16000 Hz 16Bits Stereo Record on Going START REC EXIT MS33952V1 30 58 DoclD025466 Rev 1 Ly UM1687 2 4 4 2 Running the demonstration The recorded wave file proprieties at the right side of the Wave Record submenu When the DOWN push button is pressed the menu in Figure 33 is displayed If the Wave Player submenu has been selected by pressing the SEL push button the wave player interface is displayed as shown in Figure 30 Once the record command is activated by pressing the SEL push button the submenu shown in Figure 31 is displayed
51. unication between different devices using CEC protocol messages DoclD025466 Rev 1 37 58 Running the demonstration UM1687 For more details refer to application note AN4066 Developing an HDMI CEC network using an STM32F0xx microcontroller This application note provides a full description of the STM32F072VBT6 embedded HDMI CEC Controller and a step by step firmware description of the CEC peripheral configuration An advanced demonstration firmware communicating in a real multimedia and HDMI environment is also provided to build easily the CEC applications When the HDMI CEC submenu is selected the message shown in Figure 54 is displayed on the LCD Figure 54 HDMI CEC submenu selected HDMI CEC HDMI CEC Return MSv33956V1 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 55 To enter the CEC menu press the SEL push button Figure 55 HDMI CEC configuration submenu CEC device is confi gured as Tuner and initialized Correctly Logical Addr Physical Addr Press SEL button to Enter CEC menu MSv33957V1 The LCD screen is divided into two parts as shown in Figure 56 e asubscreen that shows the CEC receive information receive status sender address e asubscreen that allows to select the follower address and the command to send Figure 56 CEC menu
52. upts Table 2 shows all the enabled interrupts Image Viewer Wave Player Table 2 STM32F072VBT6 demo interrupts SysTick SubPriority 0 NMI Priority 2 EXTIO_1 Priority 0 EXTI4_15 Priority 1 Menu navigation TIM6_DAC Priority 0 Wave Player I2C1 Error Priority 0 SMBus Alert interrupt TIM3_UP Priority 0 Infra Led Receiver interrupt TIM2_UP Priority 2 TIM14 CC Priority 1 TIM15 UP Priority 1 LED toggling TIM16 UP Priority 0 Infra Led Transmitter interrupt we iod eI ad CEC Priority 0 2 3 3 External interrupts Table 3 shows all the external interrupts used by the demonstration Table 3 STM32F072VBT6 demo external interrupts 2 DoclD025466 Rev 1 External interrupts Used for EXTI line 0 Joystick SEL interrupt mode falling edge EXTI line 9 Joystick UP interrupt mode falling edge EXTI line 10 Joystick DOWN interrupt mode falling edge EXTI line 13 Tamper interrupt mode falling edge EXTI line 15 SD Card detect interrupt mode rising and falling edge EXTI line 17 RTC Alarm interrupt mode rising edge 19 58 Running the demonstration UM1687 2 3 4 2 3 5 Note 20 58 Internal memory size Figure 15 Internal Flash memory organization 0x0801 FFFF STM32F072V8T6 MSv33915V1 External memory organization The STM32072B EVAL demo is based on an embedded free FAT file system FatFs The file system is needed to r
53. us feature This is managed by the SMBus Alert which generates a dedicated interrupt informing the system that the temperature is out of the selected ranges This can be very useful when a higher temperature needs an emergency action as is the case in critical systems motor control medical If the temperature exceeds the over limit high TEMPERATURE_TOS Over Limit Temperature the SMBus alert interrupt is generated and the warning message shown in Figure 52 is displayed on the LCD screen Figure 52 Warning temperature display MS33954V1 The messages shown in Figure 57 are displayed on the LCD screen when the temperature goes under the over limit low TEMPERATURE_THYS Hysteresis Temperature The user can configure the TOS and THYS using dedicated define values in the code By default the STM32072B EVAL demo sets them to see menu c file define TEMPERATURE THYS 31 define TEMPERATURE TOS 32 Press any key to return to the Thermometer submenu Any hardware trouble with the temperature sensor is detected by a test In such a case the message shown in Figure 53 is displayed Figure 53 Temperature sensor error No TSENSOR Present peices PUSA oy sites MSv33955V1 HDMI CEC submenu The STM32F072VBT6 microcontroller features an HDMI CEC peripheral The demonstration shows how to configure this peripheral and how to create a CEC network providing a high level comm
54. wa UM1687 yJ life augmented User manual STM32072B EVAL demonstration firmware Introduction This user manual describes the STSW STM32137 demonstration firmware running on the STM32072B EVAL evaluation board which can be used to evaluate the capabilities of the STM32F072V8T6 microcontroller and on board peripherals This demo contains many applications that can easily be reused such as dual interface 120 and RF EEPROM application ESL and DataLogger HDMI CEC infrared RC5 and SIRC receiver and transmitter RTC calendar file system FAT implementation on SDCard wave player using STM32 DAC peripheral voice recording touch sense controller TSC low power modes temperature sensor interfacing and TFT LCD The STSW STM32137 demonstration firmware and other firmware packages are available for download from the STMicroelectronics website www st com Figure 1 STM32072B EVAL evaluation board 25 go 3 es o 8 So 5 3 January 2014 DoclD025466 Rev 1 1 58 www st com Contents UM1687 Contents 1 Functional description 02 6 csck skews ce tee eee eee ewe ee ae eee 7 1 1 Power control 0 000 cece nee 8 1 2 Clocking scsi RUE E eR RE RR e RO AR Rn ER eae DR HACER 9 1 3 Reset control e eor tecta dob a t RR NT ues 9 1 4 Debug JTAG interface 0 0 0 9 15 Serial wire debugger interface lt oooocooocorrrnannos 9 1 6 Embedded ST LINK V2 00 ccc eee 9 1 7 Display deviGBSs xa ou

Download Pdf Manuals

image

Related Search

Related Contents

Haier Dishwasher HDP18PA Owners Manual  User Manual  Gauntlet for IRIX Administrator`s Guide  

Copyright © All rights reserved.
Failed to retrieve file