ST STM32303C-EVAL User Manual Download Page 33

UM1590

Running the demonstration

Doc ID 023892 Rev 1

33/65

Figure 32.

Wave player submenu

When Wave Player is selected, the wave player file names are displayed in a list box as 
shown in 

Figure 33

Figure 33.

Wave player interface

Using the UP, DOWN and SEL push-buttons, you can select the wave file to be played.

Once the play command is prompted (SEL push-button), the submenu shown in 

Figure 34.

 

is displayed.

Summary of Contents for STM32303C-EVAL

Page 1: ...d 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 STM32303C EVAL board was not fa...

Page 2: ...8 1 8 Interfaces 9 1 8 1 RS232 RS485 and IrDA 9 1 9 Miscellaneous peripherals 9 1 9 1 Joystick 9 1 9 2 Push buttons 9 1 9 3 Potentiometer 9 1 9 4 Audio 9 1 9 5 MicroSD card 9 1 9 6 RF EEPROM 9 1 9 7...

Page 3: ...nu 31 2 4 3 Audio features 32 2 4 4 Connectivity submenu 35 2 4 5 Thermometer 38 2 4 6 Low power modes 41 2 4 7 RF EEPROM 48 2 4 8 High brightness LED and LDR application 54 2 4 9 Humidity measurement...

Page 4: ...ble products and tools 1 Table 2 STM32F30x 31x demonstration peripherals 19 Table 3 STM32F30x 31x demonstration interrupts 20 Table 4 STM32F30x 31x demonstration external interrupts 21 Table 5 M24LR64...

Page 5: ...re 22 Setting the month 26 Figure 23 Setting the day of the month 27 Figure 24 Exiting the Date Show submenu 27 Figure 25 StopWatch submenu 28 Figure 26 Lap timer submenu 29 Figure 27 Setting the alar...

Page 6: ...F EEPROM daughter board 48 Figure 63 M24LR64 R block diagram 49 Figure 64 RF EEPROM menu 49 Figure 65 ESL application 50 Figure 66 ESL setting menu 51 Figure 67 Communication block diagram 52 Figure 6...

Page 7: ...quired voltages are provided by on board voltage regulators MS31374V1 Comparator Potentiometer IR LED IR receiver IRTIM PWM CAN CAN driver connector USB connector USB FS Humidity Sensor High current L...

Page 8: ...placement connector for connection to the standard ARM host interface 1 5 Serial wire debugger interface The Serial Wire Debug Port SWD DP provides a 2 pin clock data interface to the AHP AP port 1 6...

Page 9: ...to an on board variable resistor The variable resistor provides a voltage in the range of 0 V to 3 3 V 1 9 4 Audio The STM32303C EVAL evaluation board supports stereo audio play using an audio DAC CS4...

Page 10: ...perature sensor The STM32303C EVAL evaluation board includes a temperature sensor connected to the I2C2 peripheral 1 9 11 Touchsensing buttons The STM32303C EVAL evaluation board supports two touchsen...

Page 11: ...ft hand side 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 action of pressi...

Page 12: ...n Thermometer Return STOP STANDBY Return ESL Data Logger T Return Brightness Humidity Measure Return Menu Navigation Jumpers Config About Return Adjust Show Return Adjust Show Return Adjust Show Retur...

Page 13: ...3 is displayed on the LCD screen Figure 3 MicroSD card check The demonstration continues only if a MicroSD card is inserted Then the demonstration graphic icons and bitmap files are checked in the ic...

Page 14: ...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 push button to abort the configuration...

Page 15: ...e 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 using the UP DOWN RIGHT and LEFT joystick directions to selec...

Page 16: ...the main menu and the current menu items The SEL push button selects the current item The UP and DOWN push buttons are used for vertical navigation in the submenus To return to the upper menu go to t...

Page 17: ...to 72 MHz the PLL is used as the system clock source 72 MHz HCLK frequency is set to 72 MHz Timer clock TIMCLK is set to 72 MHz PCLK1 is set to 36 MHz PCLK2 is set to 72 MHz Only the RTC is clocked by...

Page 18: ...l is reconnected within a few seconds a system reset is generated Note The clock security system CSS feeds the MCU with the HSI OSC used as an emergency clock if no clock is detected When a timeout oc...

Page 19: ...igation joystick push button low power mode wave player applications GPIO All applications LEDs I2C2 Temperature sensor STTS751 dual interface EEPROM I2S Wave player NVIC All applications using interr...

Page 20: ...0 Menu navigation I2C2 Error Priority 0 Subpriority 0 SMBus Alert interrupt NMI Priority 2 CSS interrupt RTC Priority 1 Subpriority 1 Calendar date update and Alarm generation SysTick Priority 3 Subp...

Page 21: ...ious files properties please refer to Section 2 4 2 Image Viewer submenu and Section 2 4 3 Audio features Caution The STFILES directory and its internal files are mandatory for demonstration startup F...

Page 22: ...e user can add his her 16 bit bitmap images 320x240 and wave files in the USER folder At any demonstration level if the MicroSD card is removed the demonstration stops and the message shown in Figure...

Page 23: ...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 in...

Page 24: ...e 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 a...

Page 25: ...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 t...

Page 26: ...Running the demonstration UM1590 26 65 Doc ID 023892 Rev 1 Figure 21 Setting the year Figure 22 Setting the month...

Page 27: ...n the LCD when the submenu is selected with the date already configured Figure 24 Exiting the Date Show submenu To exit this submenu press the SEL push button To exit the Date submenu select the Retur...

Page 28: ...3 Press the KEY button to exit 4 Press and hold the SEL button for 1 sec to reset all the backup registers Lap timer This application simulates a precise Hourglass it measure the passage of a short pe...

Page 29: ...joystick RIGHT button to reset the timer 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 flashin...

Page 30: ...sing SEL takes you back to the Alarm submenu The message shown in Figure 28 is displayed on the LCD when this submenu is selected Figure 28 Alarm Show submenu To exit the Alarm Show submenu press the...

Page 31: ...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 Bit depth 16 b...

Page 32: ...stored under the USER folder in the MicroSD card is opened using the FATFS file system and transferred to the internal SRAM block by block 512 bytes using the SPI interface The voice sampling period...

Page 33: ...ayer is selected the wave player file names are displayed in a list box as shown in Figure 33 Figure 33 Wave player interface Using the UP DOWN and SEL push buttons you can select the wave file to be...

Page 34: ...KEY button exits the wave player submenu When the audio stream is paused the menu in Figure 35 is displayed Figure 35 Pause submenu To resume playing press the SEL push button The menu shown in Figure...

Page 35: ...nd T5 When the IR Transmitter submenu is selected the message shown in Figure 36 is displayed Figure 36 IR transmitter menu When you select a protocol from the list the corresponding submenu such as t...

Page 36: ...en the Key is pressed the IR transmitter demonstration is exited and the menu shown in Figure 36 is displayed IR receiver The IR receiver TSOP34836 is connected to PA9 of STM32F30x 31x on the STM32303...

Page 37: ...en Figure 40 Figure 40 IR receiver command menu 1 For more details on the IR receiver implementation refer to application note AN3174 implementing IR remote protocols receiver with the STM32F10xx micr...

Page 38: ...2 USB mass storage menu 2 2 4 5 Thermometer The STM32F30x 31x microcontroller has two embedded I2 C peripherals that can be connected to any device supporting the I2 C protocol including system manage...

Page 39: ...iations can be monitored easily using the STM32 I2C SMBus feature This is managed by the SMBus Alert which generates a dedicated interrupt informing the system that the temperature is out of the selec...

Page 40: ...LCD screen Figure 46 Warning temperature display 2 The user can configure the HIGH and LOW using dedicated define values in the code By default the STM32303C EVAL demonstration sets them to the value...

Page 41: ...de menu This menu allows the user to put the STM32F30x 31x in Stop mode The firmware performs the specific instruction sequence needed to enter Stop mode In this application the STM32F30x 31x can exit...

Page 42: ...utton has been pressed the MCU exits the Stop mode The system clock is then set to 72 MHz and the application resumes execution Figure 50 MCU in the Stop mode Exit EXTI Note If an RTC Alarm is generat...

Page 43: ...ode 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 Stop mode Figure 52 shows how to set the wakeup time Figure 52 S...

Page 44: ...time has elapsed the system exits Stop mode The system clock is then set to 72 MHz and the application resumes execution The message shown in Figure 54 is displayed on the LCD screen Figure 54 RTC Al...

Page 45: ...e to exit Standby mode in two ways as shown in Figure 56 Figure 56 Entering Standby mode In the first case the Wakeup push button is used to wake up the MCU from Standby mode Once the Standby mode sub...

Page 46: ...e which means that the SELpush button needs to be pressed to exit Standby mode the RTC Alarm causes the MCU to exit Standby mode and a system reset signal is generated The message shown in Figure 58 i...

Page 47: ...g and the system enters Standby mode The message shown in Figure 60 is then displayed on the LCD Figure 60 RTC Alarm wakeup configured After the programmed timing has elapsed the system exits Standby...

Page 48: ...er board can be connected to STM32303C EVAL via the I2C interface Figure 62 RF EEPROM daughter board The M24LR64 R device is a dual interface electrically erasable programmable memory EEPROM It featur...

Page 49: ...F EEPROM applications can be selected as shown in Figure 64 Figure 64 RF EEPROM menu ESL application The Electronic Shelf Labeling ESL application consists of reading the content of the RF EEPROM usin...

Page 50: ...M24LR64 dual interface EEPROM via the RF interface and can be updated any time using the CR95HF demonstration board with the associated PC software M24LRxx_Application_Software ESL RF EERPOM MS31112V...

Page 51: ...roposed Check the blank logo if no special price is applied Price trend 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...

Page 52: ...0x0001 Contains 0xXYYYYYYY X number of digits in price max 7 YYYYYYY price value including decimal separator coded in hexadecimal For instance 0x512A99FF means 5 digits and price is 12 99 0x0002 Cont...

Page 53: ...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...

Page 54: ...AN3057 How to manage M24LR64 R data transfers from the I C bus or an RF channel Application note AN3109 Communication peripheral FIFO emulation with DMA and DMA timeout in STM32F10x microcontrollers...

Page 55: ...installed in 2 3 REF position The message shown in Figure 72 is displayed The user must press SEL and follow the next step Figure 72 Humidity calibration 1 2 In the second step the humidity measuremen...

Page 56: ...LCD The figure below shows an example of the message displayed by humdity measure subdemonstration on the TFT LCD Figure 74 Humidity measurement 1 To run the calibration phase again power off the eval...

Page 57: ...enus available in the demonstration firmware Select the Help menu by pressing SEL from the main menu The message shown in Figure 75 is then displayed on the LCD screen Figure 75 Help menu If the Menu...

Page 58: ...e message shown in Figure 75 is displayed on the LCD screen If the Jumpers config submenu is selected the message shown in Figure 78 is displayed Figure 78 Jumper configuration menu 1 Press RIGHT and...

Page 59: ...UM1590 Running the demonstration Doc ID 023892 Rev 1 59 65 Figure 79 Jumper configuration menu 2 Figure 80 Jumper configuration menu 3...

Page 60: ...been pressed the MCU exits the Jumper configuration submenu and the message shown in Figure 75 is displayed on the LCD screen 2 4 11 About submenu This submenu shows the version of the STM32F30x 31x...

Page 61: ...on is supplied in a single zip file The extraction of the zip file generates a single folder STM32303C EVAL_FW_VX Y Z which contains the subfolders shown in Figure 83 and described below Figure 83 STM...

Page 62: ...303C EVAL 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 demonstrati...

Page 63: ...m the demonstration using three methods 4 2 1 Using Bootloader To program the demonstration binary image in the internal Flash memory you have to use the stm32303C EVAL_FW_1 0 0 bin file located under...

Page 64: ...Revision history UM1590 64 65 Doc ID 023892 Rev 1 5 Revision history Table 6 Document revision history Date Revision Changes 27 Nov 2012 1 Initial release...

Page 65: ...RRANTIES 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 UNLES...

Reviews: