ST STM32303C-EVAL Скачать руководство пользователя страница 1

November 2012

Doc ID 023892 Rev 1

1/65

UM1590

User manual

STM32303C-EVAL demonstration firmware

Introduction

This user manual describes the demonstration firmware running on the STM32303C-EVAL 
evaluation board, which can be used to evaluate the capabilities of the STM32F30x/31x 
microcontroller and on-board peripherals.

This demo contains many applications that can be easily reused, such as dual interface (I2C 
and RF) EEPROM application (ESL and DataLogger), infrared RC5 and SIRC receiver and 
transmitter, RTC calendar, file system FAT implementation on SD Card, wave player using 
STM32 I2S peripheral, temperature sensor interfacing and TFT LCD.

The STM32303C-EVAL demonstration firmware is provided with the demonstration 
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 STM32303C-EVAL board was not factory-programmed, or the demonstration 
application was erased, or the STM32303C-EVAL board configuration needs to be modified,

the Bootloader, IAP or STM32 STLink Utility can be used to program this file. For more 
details, refer to 

Section 3: STM32303C-EVAL demonstration package 

and 

Section 4: 

STM32303C-EVAL demonstration programming

.

Note:

Before you execute the demonstration, make sure that all EVAL board jumpers are well 
configured. For more details, refer to 

Chapter 1.9.12: STM32303C-EVAL board jumper 

configuration

.

This demonstration firmware and other firmware packages are available for download from 
the STMicroelectronics website: 

www.st.com

.

         

Table 1.

Applicable products and tools

Type

Applicable products and tools

Evaluation tools

STM32303C-EVAL

www.st.com

Содержание STM32303C-EVAL

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 26: ...Running the demonstration UM1590 26 65 Doc ID 023892 Rev 1 Figure 21 Setting the year Figure 22 Setting the month...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 59: ...UM1590 Running the demonstration Doc ID 023892 Rev 1 59 65 Figure 79 Jumper configuration menu 2 Figure 80 Jumper configuration menu 3...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: