Home

STR75x demonstration software

image

Contents

1. 7 34 Running the demonstrations STR75x demonstration software Note 8 34 The above figure shows the menu system of the STR75x demonstration The column to the left displays the main menu RIGHT and LEFT joystick direction allow you to navigate between the items in the menu or in the sub menu To enter a sub menu press the SEL push button To exit a sub menu press the UP DOWN joystick direction Welcome screen After a board RESET the ST Logo appears on the LCD as shown in the figure below and the Promotion speech wave is played Y Then after two seconds the Welcome message is displayed on the LCD screen as follow Welcome to the STR750 Demo After two seconds the following graphic is displayed on the LCD screen To Skip AYS push SEL a Then press SEL to enter in the main menu and displays the first menu item Help If no SEL pressed the main menu is shown automatically after 100 seconds at the end of the promotion speech wave end When the board is powered up for the first time you have to set the date and time in the Calendar menu STR75x demonstration software Running the demonstrations 2 1 2 Navigation The demonstration menu is based on circular navigation sub menu item selection and back capability as follows Figure 3 Navigating in the demonstration menus WELCOME SCREEN 1 LEVEL 21d LEVEL
2. Press SEL when the test is passed else press LEFT e MIC Speaker Test tests whether the microphone and the speaker work correctly The following message is displayed on the LCD MIC Speaker Test Press SEL STR75x demonstration software Running the demonstrations First the MCU will record data using a microphone It will store it in the SMI after erasing the corresponding region and displaying the following message on the LCD MIC Speaker Test Record Press KEY If a key is pressed the MCU records a short data wave 3s The following message is displayed on the LCD MIC Speaker Test Stop in 3s KEY Once recording is finished the MCU will play the recorded wave and the following message is displayed on the LCD MIC Speaker Test If the UP or DOWN push button is pressed the following message is displayed on the LCD MIC Speaker Test Skip test UP DOWN To stop the test wave press UP or DOWN or it will be stopped automatically at the end and you must enter the result of the test Press SEL when the test is passed else press LEFT e VaResistor Test tests whether the potentiometer connected to Channel3 of the ADC works correctly The number of the red LEDs turned on corresponds to the potentiometer output voltage The following message is displayed on the LCD VarFesistor est Press SEL If SEL pressed the following message is displayed on
3. 75x lib h 2 STR75x demonstration software Revision history 3 Revision history Table 4 Document revision history Date Revision Changes 20 Sep 2006 1 Initial release 33 34 STR75x demonstration software Please Read Carefully Information in this document is provided solely in connection with ST products STMicroelectronics NV and its subsidiaries ST reserve the right to make changes corrections modifications or improvements to this document and the products and services described herein at any time without notice All ST products are sold pursuant to ST s terms and conditions of sale Purchasers are solely responsible for the choice selection and use of the ST products and services described herein and ST assumes no liability whatsoever relating to the choice selection or use of the ST products and services described herein No license express or implied by estoppel or otherwise to any intellectual property rights is granted under this document If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services or any intellectual property contained 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
4. y UMO224 User manual STR75x Demonstration Software Introduction This document describes the demonstration software running on the STR75x EVAL evaluation board which you can use to evaluate the capabilities of the microcontroller and the on board peripherals The demonstration software contains a main application divided into various smaller applications The demonstration software is already stored in the embedded flash memory of the microcontroller and could be downloaded from http www st com mcu then programmed into the STR75x flash September 2006 Rev 1 1 34 www st com Contents STR75x demonstration software Contents 1 Functional description oooooooooorrron 4 1 1 Power CONWOL eva da a Aa 5 12 CIOCKING sxscrrtis ar A ERR dg 5 1 3 Heset Control ss eres e os aede CR I OR Oden s p Hoe 5 1 4 Debut JTAG interface iexaske irtok s Rer ENDENE Ra asd twee es 5 1 5 Displays and input devices 0000 eee ee 5 1 5 1 Ro CPI 5 1 5 2 LED Lien EEUU a FUA EE E e 5 1 5 3 Neve da PT 5 1 6 Interfaces 0 rrr 5 1 6 1 R92932 idu st AN 5 1 6 2 CAN sicarios A A A 6 1 7 Motor CONTO 6 1 8 Miscellaneous peripherals o oooooooccorcor tee 6 1 8 1 10 bit analog to digital converter 0 0 0c eee 6 1 8 2 Push b ttons outs OR a RA SCR ue RR UR RS XR 6 1 8 3 UD A a ae mar ae e 6 2 Running the demonstrations 0000 c eee 7 2 1 MEN sexe ta teh A a Te OER A ee at
5. LEFT LEFT RIGHT RIGHT SEL item 141 de Hem 1 x RIGHT A LEFT RIGHT LEFT OS item 1 2 x 5 item 2 N NZ RIGHT f LEFT RIGHT A LEFT lt Q 2 item n 2 item 1 n A v SEL item 2 1 gt RIGHT LEFT Z item 2 2 6 RIGHT LEFT a a S item 2 n The user navigates using the joystick push buttons RIGHT LEFT SEL UP and DOWN located on the evaluation board e RIGHT and LEFT push buttons perform circular navigation in the current menu items e SEL push button selects the current item e UP and DOWN jumps to the higher level menu When the demonstration menu is activated the following message is displayed on the LCD Help In this case when SEL pressed the following graphics are shown on LCD screen continuously one by one each two seconds 9 34 Running the demonstrations STR75x demonstration software xli Enter To Sub Menu P To Exit com d Sub Menu pa SOrold Rron Sub Menu To exit from this help menu press any joystick buttons 10 34 ky STR75x demonstration software Running the demonstrations 2 2 2 2 1 Clock sources Clock control The STR750 internal clocks are derived from one source mounted 4 MHz Crystal In this demo application the system clock is configured as follow System clock is set to 60 MHz HCLK frequency is set to 60 MHz Timer cloc
6. AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE ST PRODUCTS ARE NOT RECOMMENDED AUTHORIZED OR WARRANTED FOR USE IN MILITARY AIR CRAFT SPACE LIFE SAVING OR LIFE SUSTAINING APPLICATIONS NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY DEATH OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE ST PRODUCTS WHICH ARE NOT SPECIFIED AS AUTOMOTIVE GRADE MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK Resale of ST products with provisions different from the statements and or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever any liability of ST ST and the ST logo are trademarks or registered trademarks of ST in various countries Information in this document supersedes and replaces all information previously supplied The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners O 2006 STMicroelectronics All rights reser
7. or software sources e Reset button activates the RESET input when pressed e AJTAG reset Debug JTAG interface Software debug is done via the standard ARM JTAG connection 20 pins IDC to connect to the standard ARM host interface Displays and input devices LCD 122x32 graphic LCD display connected to GPIOs LED 4 general purpose LED s are available as display device Joystick 4 direction joystick with selection key Interfaces RS232 The STR75x evaluation board STR75x EVAL provides three on board RS 232 serial ports Two channels UART1 and UART2 use one RS 232 transceiver U12 For the UARTO with handshake signal support it uses another RS 232 transceiver 5 34 Functional description STR75x demonstration software 1 6 2 1 7 1 8 1 8 1 1 8 2 1 8 3 6 34 Both these RS232 ports are terminated by DB9 connectors CAN STR75x EVAL evaluation board supports CAN2 0A B complaint CAN bus communication based on 3 3V CAN transceiver Both High speed mode and slope control mode are available and can be selected by setting a dedicated jumper Motor control STR75x EVAL evaluation board supports inductor motor control via a 34 pins connector which provides all required control and feedback signals to and from motor power driving board Miscellaneous peripherals 10 bit analog to digital converter e Varistor ADC channel3 connected to an on board variable resistor The variable resistor pro
8. the USB connector type B CN2 and the PC The previous message will remain displayed on the LCD screen until the cable plugin Once the cable is connected the following message is displayed on the LCD screen Move the JoyStick To Stop Press SEL Move the joystick and the PC cursor will move corresponding to the joystick push button To exit from this sub menu press SEL 25 34 Running the demonstrations STR75x demonstration software 2 4 7 26 34 Board self test This test consists of checking the different components of the board and the STR750 peripherals The board test is made of the following sub menus Start test You select this sub menu to start the various board tests After some tests the user is asked to store the test result Press the SEL push button if the test is passed else press the LEFT push button if test is failed The board self tests are e PushButtons Test tests all the connected push buttons which are Wakeup and Key The following message is displayed on the LCD PushButtons Test Press xxxx e JoyStick Test tests all the connected joystick pins which are SEL RIGHT LEFT UP and DOWN Press xxxx e LEDs Test Successively lights up the four red LEDs connected to P0 16 P1 01 P2 18 and P2 19 The following message is displayed on the LCD Press SEL Press SEL to select whether the current test is passed or failed
9. you to try out the major functions of the STR75x microcontroller The following picture summarizes the main functional blocks of the evaluation board Figure 1 Evaluation board overview Power supply and Reset JTAG BOOT option UARTO DB9male jm connector RS232 Tranceiver connector UART1 DB9male connector RS232 Tranceiver UART2 DB9male Inductor Motor Control connector RTC 32KHz Crystal JTAG BOOT UARTO UART1 UART2 PWM RTC STR75x ADC TIM PWM SSP SMI CAN USB GPIO ao HA circuit C SPI 64Mbit Serial Flash 3 3V CAN DB9male Tranceiver connector USB ESD USB type B protection connector Graphic LCD module Joystick Extention connector for total 72 GPIO 2 STR75x demonstration software Functional description 1 1 1 2 1 3 1 4 1 5 1 5 1 1 5 2 1 5 3 1 6 1 6 1 Power Control The evaluation board is powered by an external 5V supply all other required voltage are provided by on board voltage regulators Clocking Three clock sources are available on STR75x EVAL evaluation board for STR750Fx USB and RTC e 32 kHz Crystal for embedded RTC e 4 MHz Crystal for STR750Fx e 48 MHz Oscillator for USB Reset control The Reset can be generated by hardware
10. 5x demonstration software Running the demonstrations There are three waves to play e Promotion speech e OSIRIS e Recorded wave Promotion Speech The following message is displayed on the LCD Wave Player Promotion Speech You can re play a wave only by returning to the precedent sub menu Wave Player The following message is displayed on the LCD Promotion Speech Play If SEL pressed The following message is displayed on the LCD Promotion Speech Stop To stop playing press SEL or wait until the end of the wave and the MCU will stop it automatically In this sub menu we can view the wave properties The following message is displayed on the LCD Promotion Speec Properties The Promotion Speech wave file properties are Playing time 1min 40 sec File size 2210758 Bytes Format Tag PCM Channels MONO Sample Rate 22050 Hz Bits per sample 8 Bits 21 34 Running the demonstrations STR75x demonstration software Note 22 34 If the Promotion speech wave is not loaded in the reserved SMI memory the following message is displayed on the LCD screen No Loaded Wave Press UP DOWN OSIRIS The following message is displayed on the LCD Wave Player OSIRIS You can re play a wave only by returning to the precedent sub menu Wave Player The following message is displayed on the LCD Play If SEL pressed The following message is displaye
11. WDG is used as timer with its End of Count interrupt that sets a screen saver display when the WDG timer reaches a specified time delay without resetting the system If any of the push buttons are pressed during this delay which is 30 seconds the screen saver is displayed on LCD Since one push button is pressed the last sub menu is re displayed on LCD When the demonstrations enter in screen save mode the date and time are displayed on the LCD as shown in the figure below The time and date are continuously updated f DD WA nH mm ss a Using the WDG functions we can enable or disable the screen saver for each demonstration sub menu About menu This menu shows the version of the STR75x Demo software When this sub menu is selected the following message is displayed on the LCD screen STR75x Demo yl Version 1 0 STR75x demonstration software Running the demonstrations 2 5 Software architecture This section describes the software architecture It is divided into two layers e Hardware library layer contains the software library source files These do not need to be modified by the user 75x_conf h is the header file for configuring which peripherals are used and miscellaneous defines 75x_type h contains the common data types and enumerations used in the other files 75x_map h contains the peripheral memory mapping and register data structures 75x lib h is the main header file inclu
12. at different clocking frequencies Blinking LEDs show the effect of changing the clock The following message is displayed on the LCD RUN Mode 60 MHz The RUN menu contains five submenu items e 60 MHz the application runs at 60 MHz e 56 MHz the application runs at 56 MHz e 48 MHz the application runs at 48 MHz e 4 MHz the application runs at 4 MHz The user has to press the SEL push button to select one of the listed run modes UP DOWN button have to be pushed to exit from any selected mode and return to 60 MHz as default clock value STOP This menu allows you to put the STR750 in STOP mode The software performs the specific sequence of instructions needed to enter STOP mode STOP mode is characterized by Possibility to turn off the Main Oscillator and PLL Possibility to turn off the Flash Possibility to turn off the Main Voltage Regulator Minimum power consumption Automatic context saving All Registers and SRAM contents are preserved 17 34 Running the demonstrations STR75x demonstration software Note Note 18 34 In this application there are two ways to make the STR750 exit from STOP mode e Inthe first one the EXTIT Key button is used to exit the MCU from STOP mode The following message is displayed on the LCD STOP Mode Exit BXTIT NCKD The red LEDs continue blinking until the SEL push button is pressed then the system enters STOP mode and the followi
13. d on the LCD Stop To stop playing press SEL or wait until the end of the wave and the MCU will stop it automatically In this sub menu we can view the wave properties The following message is displayed on the LCD Properties The OSIRIS wave file properties are Playing time 1min 04 sec File size 1426686 Bytes Format Tag PCM Channels MONO Sample Rate 22050 Hz Bits per sample 8 Bits STR75x demonstration software Running the demonstrations Note Note If the OSIRIS wave is not loaded in the reserved SMI memory the following message is displayed on the LCD screen No Loaded Wave Press UP DOWN Recorded Wave The following message is displayed on the LCD Wave Player Recorded Wave You can re play a wave only by returning to the precedent sub menu Wave Player The following message is displayed on the LCD Recorded Wave Play If SEL pressed The following message is displayed on the LCD Recorded Wave STOP To stop playing press SEL or wait until the end of the wave and the MCU will stop it automatically If there is no recorded wave or if the SMI memory reserved for recorded wave is erased the following message is displayed on the LCD screen No Recorded Wave Press UP DOWN 23 34 Running the demonstrations STR75x demonstration software 2 4 5 24 34 Period measurement This menu allows you to measure th
14. ding all the others 75x it c is the source file containing the interrupt handlers USB lib h is the USB library include file e Demonstration architecture contains the architecture of the demonstration software that may be modified by the user menu h Header for the menu c file menu c This file provides a set of functions needed to manage the demonstration menu calendar h Header for the calendar c file calendar c This file provides functions for managing time date and alarm events lowpower h Header for the lowpower c file lowpower c This file provides low power modes functions periodmeasure h Header for the periodmeasure c file periodmeasure c This file provides functions for measuring the period and the duty cycle of an external signal Icd h Header for the Icd c file Icd c This file provides a set of functions needed to manage the LCD screen voicerecorder h Header for the voicerecorder c file voicerecorder c This file provides a set of functions needed to record voice waveplayer h Header for the waveplayer c file waveplayer c This file provides a set of functions needed to play waves smiflash h Header for the smiflash c file smiflash c This file provides a set of functions needed to manage SMI Flash joystickHID h Header for the joystickHID c file joystickHID c This file provides a set of functions needed to manage the USB Mouse Demo usb conf h USB device configuration file usb desc h Header for
15. e period of an external input signal The STR750 timers can be used in PWMI PWM input mode to measure the frequency and the duty cycle of an input signal in a range which depends on the TIM1 clock in our case the range is from 458 Hz to 10 kHz You have to connect the signal to be measured to the TIM1 TI2 PO 31 pin If the input signal is in the specified range the following message is displayed on the LCD Duty Cycles Freq XXXXX HZ XXV If the signal is under the low limit of the range the following message is displayed on the LCD Out of range Freq lt 458 Hz If the signal is over the high limit of the range the following message is displayed on the LCD Out of range Freq gt 10 kHz If there is no signal connected to the TIM1 TI2 PO 31 pin the following message is displayed on the LCD lino signal Press UP DOWN STR75x demonstration software Running the demonstrations 2 4 6 USB mouse demo The STR750 microcontroller provides an USB Universal Serial Bus which provide an interface between a full speed USB bus and the APB bus This sub menu is used to configure the USB cell to communicate with the PC and run the mouse demo using the joystick push buttons USB Mouse Demo Start If SEL pressed the following message is displayed on the LCD screen Plug the USB Cable For this sub menu you have to connect an USB cable between
16. e the time when an alarm can be activated When the alarm time value is reached the alarm wave is played The Alarm wave is loaded in the SMI Flash This sub menu is divided in two items to display or to adjust the current Alarm e Alarm Adjust the alarm adjust is reached by the same procedure as the Time Adjust Submenu Alarm Adjust HH MM SS e Alarm Show this item displays the current alarm time The default Alarm displayed after power up and before using the Adjust item application is 00 00 00 The following message is displayed on the LCD when this sub menu is selected HH MM SS To exit from this sub menu press UP DOWN push buttons When an alarm occurrs the Alarm wave is played and can be stopped only by pushing the Key button ky STR75x demonstration software Running the demonstrations Note 2 4 2 The Alarm wave is played only if this wave is loaded in the SMI flash otherwise the alarm event is used only to wake up the system from low power modes Low power modes The STR750 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 STOP and STANDBY mode are taken as examples RUN STR750 provides a Power Reset and Clock Configuration Unit MRCC which allows the user to configure the system clock Selecting this item shows how an application can be run
17. ent date e Date Adjust This item has to be selected after each power up in order to set the current date The user is asked to fill the current date to be stored in the application memory The date is displayed on 8 digits MM DD YYYY The default date value 15 34 Running the demonstrations STR75x demonstration software Note 16 34 01 01 2006 is displayed when you enter this menu for the first time after power up The first digit of the month field is ready to be changed To change the digit value it is needed to press UP or DOWN Pressing UP button will display the current value plus one pressing DOWN button will display the previous value After choosing the digit value press SEL the cursor jumps automatically to the next digit When all the date digits are set the Calendar menu is shown Some digits values are limited depending on the field month day or year In case of a re adjust of the date the current date value is shown The following message is displayed on the LCD when this sub menu is selected Date Adjust 01 01 2006 e Date Show this item displays the current date The default date displayed after power up and before using the Adjust item application is 01 01 2006 The following message is displayed on the LCD when this sub menu is selected Date Show SUN JAN 01 2006 To exit from this sub menu press UP DOWN push buttons Alarm By means of this Sub menu the user can configur
18. er consumption e Allregisters and SRAM contents are lost In this application there are two ways to make the STR750 exit from STANDBY mode e Inthe first one the Wake up push button is used to wake up the MCU from STANDBY mode The following message is displayed on the LCD STANDBY Mode Exit WAKEUP Pin The red LEDs continue blinking until the SEL push button is pressed then the system enters STANDBY mode and the following message is displayed on the LCD STANDBY Mode Press WAKEUP Key The MCU will remain in STANDBY mode unless the Wakeup push button is pressed Once this button is pressed the MCU exits from STANDBY mode and system reset signal is generated e Inthe second case the RTC Alarm will wake up the MCU from STANDBY mode after the programmed timing The following message is displayed on the LCD STANDBY Mode Exit RTC Alarm The red LEDs continue blinking until the SEL push button is pressed then the system enters STANDBY mode and the following message is displayed on the LCD STANDBY Mode Wait for Alarm After the programmed timing have elapsed the system exits from the STANDBY mode and system reset signal is generated 19 34 Running the demonstrations STR75x demonstration software 2 4 3 Note 2 4 4 20 34 Voice recorder The STR750 microcontroller provides timers and an ADC module which can be used for timing and signal acquisition respectively In thi
19. ftware Running the demonstrations The following message is displayed on the LCD UART1 UART2 Test Press SEL Press SEL to exit from board self test Test report This sub menu offers the possibility of showing the result of all tests done in the Start Test sub menu If you select this sub menu before starting the test the following message is displayed on the LCD Board test not done yet After selecting this sub menu the result of all the board tests is displayed it is failed if at least one test was not correct else passed if all tests are done successfully The following message is displayed on the LCD Overall test l I XXXXXX 1 lt p s Failed If some tests were failed a second message is displayed which contains in the first line the number of the failed test and in the second line the name of those tests which you can display one by one using the RIGHT and LEFT push buttons The following message is displayed on the LCD I 1l TVailed lo die xx lest To exit from the Test Report sub menu press the UP DOWN push button ky 29 34 Running the demonstrations STR75x demonstration software 2 4 8 2 4 9 30 34 Screen saver The STR750 Watchdog Timer module WDG can be used to reset the system or used as a timer base to generate an interrupt after a selected time delay depending on the system clock In this demonstration software the
20. k CK TIM is set to 60 MHz PCLK is set to 30 MHz USB clock CK USB is set to 48 MHz internal clock Only the RTC is clocked by a 32 kHz external oscillator The HCLK clock can be changed only in the Run sub menu it can be 60 MHz 56 MHz 48 MHz or 4 MHz Figure 4 Clock Control AHB amp APB um iis CLOCK DIVIDERS ck Tim __ up to 6Q MHz DETECTOR CK_USB 48 MHz gt j 128 gt oo woscaek k 3 RTC po 7077 e LPOSC 245 kHz USB_CK XT1LI XT b OSC4M 1 10 MH Up to i FREEOSC Hum Bit Hi 48 MH p to 60 M u Hz 11 34 Running the demonstrations STR75x demonstration software 2 2 2 Note Note 12 34 Clock failure At any demo level if no clock is present on OSC4M broken or disconnected Crystal the following message is displayed on the LCD screen No Clock Detected STANDBY in 30s Ifthe 4 MHz Crystal is not reconnected in 30s the MCU enters STANDBY mode and the demo will never restart as long as the clock is not present If the 4 MHz Crystal is reconnected within thirty seconds the MCU continues execution Connecting the OSC4M after reset may not restart the demo correctly So you must connect the crystal before starting the demo The Clock Detector CKD feeds the MCU with the FREEOSC used as emerge
21. ncy clock if no clock is detected STR75x demonstration software Running the demonstrations 2 3 2 3 1 2 3 2 STR750 resources Peripherals All used peripherals are described on the following table Table 1 STR750 Demo Peripherals Used Peripherals Application ADC Voice Recorder EIC Main EXTIT Main GPIO All applications MRCC All applications RTC Calendar SMI Wave player voice recorder alarm wave and board self test TB System timer TIM Wave player and voice recorder UART Board self test USB USB mouse demo WDG Screen saver Interrupts The following table show all the enabled interrupts Table2 STR750 Demo Interrupts Interrupts Priority Used for EXTIT LineO FIQ channel Fast interrupt JoyStick SEL push button WATCHDOG Fast int t FIQ channel ast interrup Screen Saver RTC IRQ channel Calendar MRCC IRQ channel EXTIT IRQ channel Detect the clock failure JoyStick and Key push button TIMO IRQ channel Voice recorder and wave player USB LP IRQ channel USB synchro TB IRQ channel System timer 13 34 Running the demonstrations STR75x demonstration software 2 3 3 2 3 4 14 34 External interrupts Table 3 STR750 Demo External Interrupts External Interrupts Used for EXTIT Line 0 JoyStick SEL push button menu navigation EXTIT Line 3 JoyStick UP push button men
22. ng message is displayed on the LCD STOP Mode Exit Press Key The MCU will remain in STOP mode unless the Key push button is pressed Once this button is pressed the MCU exits from STOP mode Then the system clock is set to 60 MHz and the application resumes executing If an alarm occurs when the system is in STOP mode the following message is displayed on the LCD screen when the MCU resumes from STOP mode One missed Alarm Exit Press SEL e Inthe second case the RTC Alarm will wake up the MCU from STOP mode after the programmed timing The following message is displayed on the LCD STOP Mode Ex1t Alarm NCKD The red LEDs continue blinking until the SEL push button is pressed then the system enters STOP mode and the following message is displayed on the LCD STOP Mode Wait for Alarm After the programmed timing has elapsed the system exits from STOP mode Then the system clock is set to 60 MHZ and the application resumes executing In both cases the NCKD flag will wake up the MCU from STOP mode ky STR75x demonstration software Running the demonstrations STANDBY This menu allows you to put the STR750 in STANDBY mode The software performs the specific sequence of instructions needed to enter STANDBY mode STANDBY mode is characterized by e The main voltage regulator is disabled e Only the backup circuitry remains powered by the low power voltage regulator e Minimum pow
23. s 7 2 1 1 Welcome screen 0 00 ee 8 2 1 2 Navigation 2 aana ia ea a aa a ee nn 9 2 2 Ele e AA on 11 2 2 1 Clock gontrol vivia ein ER Ra eR Ka acra ka abe ee hes 11 2 2 2 Clock fail r 1 2 n rex RR ERR E Re e m bd ak ewe 12 2 3 STR750 MOSOURCES ceres cower tance AAA AA 13 2 3 1 Peripherals amp sias caia RR ru XE ra ds EE 13 2 3 2 Intetr pts socorro a Ce acne e beds 13 2 9 8 External interrupts ooooocoooocornoo EEEN ERR 14 2 3 4 SMI Flash memory organization 0 00 cece eee eens 14 2 4 Demo applications 22 css0ciesaeeees Rx bebe eeereens 15 2 4 1 Calendar diia di hat ae Rand eae 15 2 4 2 Low power modes o occoccc e rn 17 2 34 ky STR75x demonstration software Contents 2 4 3 Voice recorder co 20 2 4 4 Wave player ice evee aes eee ee rr 4G Dee bna 20 2 4 5 Period measurement oooccccc esee 24 2 4 6 USB mouse demo 1 en 25 2 4 7 Board self test oooooocccccoco ees 26 2 4 8 Screen saver osse kac aed ad alias a ex Rare ud ao uod da dos 30 2 4 9 About MENU x tes RERO a CURL ase ee 30 2 5 Software architecture llle 31 Revision history sceece cs eet cen eden ieee ceded RUN RO RA CR RR RO ER 33 3 34 Functional description STR75x demonstration software 4 34 Functional description The STR75x microcontroller evaluation board provides a development and demonstration platform for STR75x based applications It is designed to allow
24. s case we use one Timer TIMO to generate an Update interrupt every 45 35 us 22 05 KHz which corresponds to the sampling frequency of the ADC To fine tune the voice recording quality you can use the on board potentiometer RV3 to control the micro preamplifier gain The following message is displayed on the LCD Voice Recorder Start REC Voice This LCD message remains until the SEL push button is pressed then the MCU will erase the SMI memory area that is used to store the voice data and the following message is displayed on the LCD WiouLece eso cial Record Press KEY When KEY is pressed the MCU starts recording voice and the following message is displayed on the LCD Wee Racon oar Stop in 30s KEY To stop recording you may press the KEY button Otherwise the MCU will stop it automatically afer 30s Wave player The STR750 microcontroller has several embedded Timers which can be used for timing purposes and generating the output signals In this case we use 2 Timers TIM the first Timer TIM2 is configured to generate a PWM signal with a tunable duty cycle The second Timer TIMO is used to generate an Update interrupt each time the wave file is sampled which corresponds to the TIM2 Duty cycle update The wave file has the following characteristics e wav file Audio Format PCM Sample rate 8000 Hz 11025 Hz 22050 Hz 44100 Hz Bits Per Sample 8 bits Number Of Channels Mono STR7
25. t of continuously running counters that can be used with suitable software to implement a clock calendar function The counters values can be written to set the current time of the system This sub menu is used to configure some miscellaneous functions such as time date and alarm Time This sub menu is divided in two items allowing the user to display or to adjust the current time e Time Adjust After the evaluation board is powered up the user has to select this sub menu to change the default time 00 00 00 to the current time Once Time Adjust is selected the first digit of the hour field is ready to be changed Pressing the UP button will display the current value plus one Pressing the DOWN button will display the previous digit value After choosing the digit value press SEL the cursor jumps automatically to the next digit When all the time digits are set the Calendar menu is shown Some digit values are limited to a range of values depending on the field hour minute or seconds The following message with the default time or the current time is displayed on the LCD when this sub menu is selected e Time Show this item displays the current time or the default time The following message is displayed on the LCD when this sub menu is selected HH MM SS To exit from this sub menu press UP DOWN push buttons Date This sub menu is divided in two items allowing the user to display or to adjust the curr
26. the LCD urn the potentio meter Press SEL Press SEL to select whether the current test is passed or failed 27 34 Running the demonstrations STR75x demonstration software 28 34 Press SEL when the test is passed else press LEFT e OSC32K Test Test if Oscillator 32K is ready or not Press SEL Press SEL to display whether the current test is passed or failed e OSC4M Test Test if Oscillator 4M is ready or not Press SEL Press SEL to display whether the current test is passed or failed e SMIFlash Test Test Access to SMI flash Press SEL Press SEL to display whether the current test is passed or failed e UARTO UART1 Test Testing a transmission and reception between UARTO and UART1 For this test you have to connect a null modem female female RS232 cable between the two DB9 connectors on the evaluation board CN4 CN8 Once the test is finished a message is displayed indicating whether the UART test is passed or failed The following message is displayed on the LCD UARTO UART1 Test Press SEL e UART1 UART2 Test Testing a transmission and reception between UART1 and UART 2 For this test you have to connect a null modem female female RS232 cable between the two DB9 connectors on the evaluation board CN8 CN10 Once the test is finished a message is displayed indicating whether the UART test is passed or failed STR75x demonstration so
27. the usb desc c file usb desc c Descriptor for USB Joystick Mouse usb prop h Header for the usb prop c file usb prop c All processing related to the Joystick Mouse device usb pwr h Header for the usb pwr c file usb pwr c Connection disconnection amp power management usb endp c Non control endpoints interrupt service routine 31 34 Running the demonstrations STR75x demonstration software 32 34 usb istr c ISTR events interrupt service routines boardselftest h Header for the boardselftest c file boardselftest c This file provides functions for testing the STR75x EVAL board main h Header for the main c file main c This file provides a set of functions needed to manage the demonstration menu Figure 6 Software architecture periodmeasure c n periodmeasure h usb propc usb pwr c 4 usb_prop h usb_pwr h smiflash c voicerecorder c joystickHID c _ USB lib h boardselftest c calendar h boardselftest h smiflash h voicerecorder h joystickHID h Ey usb conf h lowpower c ayer c CMenuc dedic gt main c ayer h Menu h Icd h main h User Application A 75x it c E A C 75x conf h Hardware Library
28. u navigation EXTIT Line 8 JoyStick DOWN push button menu navigation EXTIT Line 12 JoyStick LEFT push button menu navigation EXTIT Line 13 JoyStick RIGHT push button menu navigation ie eae ce aoe recorder application EXTIT Line 15 RTC Alarm Wake up from low power modes All External interrupts except the Key EXTIT Line 7 are disabled in SEL function execution The Key push button EXTIT Line 7 is only enabled in voice recorder To start and to stop recording application or if an alarm is occurred To stop the alarm wave SMI Flash memory organization The SMI Flash is used to store the Promotion speech the OSIRIS wave the recorded wave the wave test in board self test and the alarm wave Below the SMI memory organization Figure 5 SMI Flash memory organization 0x807FFFFF RECORDED WAVE 0x80700000 TEST WAVE 0x80620000 ALARM WAVE 0x80600000 OSIRIS 0x80400000 PROMOTION SPEECH 0x80100000 FOR FUTURE USE 0x80000000 STR75x demonstration software Running the demonstrations 2 4 2 4 1 Demo applications The following section provides a detailed description of each part of the demonstration Notes e Inthe demonstration the core runs at HCLK 60 MHz e Red LEDs LD2 LD3 LD4 and LD5 are always blinking with a frequency depending on the core clock except in the board self test menu Calendar The STR750 provides a Real Time Clock RTC which provide a se
29. ved STMicroelectronics group of companies Australia Belgium Brazil Canada China Czech Republic Finland France Germany Hong Kong India Israel Italy Japan Malaysia Malta Morocco Singapore Spain Sweden Switzerland United Kingdom United States of America www st com Y 34 34
30. vides a voltage in the range of 0 to 3 3V Push buttons The following push buttons are provided e KEY user push button e Wakeup push button to wake up the processor from low power modes Audio STR75x EVAL evaluation board supports both audio wav format recording and playback STR75x demonstration software Running the demonstrations 2 2 1 Y Running the demonstrations Structure of the demonstration Menus ST Logo Promotion Speech wave Main Menu Help rL Time Time Adjust Time Show Calendar Date Date Adjust Date Show Alarm Alarm Adjust Alarm Show RUN 60 MHz Low Power Mode 56 MHz 48 MHz 4 MHz STOP Exit EXTIT NCKD Exit Alarm NCKD Standb Exit RTC Alarm Exit WAKEUP Pin Voice recorder Voice REC Start Wave Player Promotion Speech HT Play Stop _ Properties _ OSIRIS HA Play Stop L Properties Recorded Wave Play L Stop Period Measure Start Acquire Bord Self Test USB Mouse Dema Start Start Test About Test Report

Download Pdf Manuals

image

Related Search

Related Contents

stow ms-93 - Multiquip Inc.    取扱説明書 ご使用前に必ずご確認ください  資料3 製品表示等の情報提供の方法について(PDF形式  Supermicro MBD-H8QMI-2-O    Guia Rápido do TruVision NVR 20  Cisco 7200 Compact Flash Disk  Xantrex™ GT30 E 30 kW Solarwechselrichter  GE864 Hardware User Guide  

Copyright © All rights reserved.
DMCA: DMCA_mwitty#outlook.com.