Home

STR7 family STR73x demonstration software

image

Contents

1. 12 3 9 Tl Ie ster Co 13 3 342 2E sh tae coe GGG ves 14 3 31 23 iesu SMA ue MERE AMAT ek a beak ll oe Qa a aqa 14 3 9 2 Low power modes ieee ha leew 15 9 3 2 ts ook scat ien kine AC d a ee i s S E 16 9 9 2 2 HABT tei ae Rte mcus ie e oet rA 17 3 3 2 9 RUD sut ee ERR n Ee y ed ees e Cr e 18 3 9 2 Temperatur oer um pene RIDE oH eO E Yes 18 33 3 Gelsius Unit ir oats ene See uwa Canta araya IM 19 3 3 3 2 Fahrenheit Unit llle 19 33 4 Melodies is 202 5 sod v UEM SR Sa a VI ad Lee yg 19 3 3 4 1 Single Mode 2 32 04 1 test ive toy hurt M Cs ht tliat tes 20 3 3 4 2 Single Repeat Mode 21 3 3 5 Period Measure aes iom Gate Mead Lv ee buo fb d d iru asks 21 T xr INTRODUCTION 3 3 6 Boardtest 3 3 6 1 Start Test 3 3 6 2 Test Report 3 3 7 Screen Saver 3 4 SOFTWARE ARCHITECTURE 31 5 31 FUNCTIONAL DESCRIPTION 2 FUNCTIONAL DESCRIPTION The STR73x microcontroller evaluation board provides a development and demonstration platform for STR73x based applications It is designed to allow you to try out the major func tions of the STR73x microcontroller The following picture summarizes the main functional blocks of the evaluation board Figure 1 Evaluation board
2. Show this item displays the current date The default date displayed after power up and be fore using the Adjust item application is 01 01 2005 The following message is displayed on the LCD when this sub menu is selected Date Show MM DD YYYY 3 3 1 3 Alarm By means of this Sub menu the user can configure the time when an alarm can be activated When the alarm time value is reached the alarm sound is generated in addition of sequence of 14 31 r RUNNING THE DEMONSTRATIONS LED blinking The Alarm melody is loaded in the I2C EEPROM at the start of the demon startion then it is read and played when an alarm occurs The alarm volume can be adjusted using the potentiometer This sub menu is divided in two items to display or to adjust the cur rent Alarm Adjust the alarm adjust is reached by the same procedure as the Time Adjust Submenu Alarm Adjust HH MM SS 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 Alarm Show HH MM SS 3 3 2 Low power modes The STR730 microcontroller provides different operating modes in which the power consump tion is reduced The purpose of this menu is to show the behaviour of the microcontroller in dif ferent low power modes STOP and HALT mode are taken as examples 15
3. User Application Hardware Library boardtest c boardtest h buzzer c timesetting c timesetting h n n 73x lib h 30 31 RUNNING THE DEMONSTRATIONS THE SOFTWARE INCLUDED IN THIS MANUAL IS FOR GUIDANCE ONLY STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM USE OF THE SOFTWARE Information furnished is believed to be accurate and reliable However STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics Specifications mentioned in this publication are subject to change without notice This publication supersedes and replaces all information previously supplied STMicroelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners 2005 STMicroelectronics All rights reserved STMicroelectronics group of companies Australia Belgium Brazil Canada China Czech Republic Finl
4. Note When the board is powered up for the first time you have to set the date and time in the Time Settings menu 3 1 2 Navigation The demonstration menu is based on circular navigation sub menu item selection and back capability as follows 10 31 RUNNING THE DEMONSTRATIONS Figure 3 Navigating in the demonstration menus WELCOME SCREEN 1 LEVEL 2 LEVEL NEXT NEXT EN SEL o y SEL 1 item 1 1 NEXT PREV x PREV item 2 v item 1 2 N O NEXT NEXT yt PRE d P Y PREV item 1 pu item n 1 QV SEL item 2 1 ee aay N v item 2 2 g NEXT m y PREV t tepina The user navigates using the NEXT PREV SEL and BACK push buttons located on the evaluation board NEXT and PREV buttons perform circular navigation in the current menu items SEL button selects the current item BACK jumps to the higher level menu When the demonstration menu is activated the following message is displayed on the LCD previous level menu item 3 2 CLOCK SOURCES The STR730 internal clocks are derived from two sources mounted 8 MHz quartz and an on chip RC Oscillator 2 MHz or 32 kHz ISA 11 31 RUNNING THE DEMONSTRATIONS In this demo application the MCLK frequency is set to 32 MHz and the external clock fre quency EXTCLK is set to 31 25kHz in
5. STR7 FAMILY STR73x Demonstration Software USER MANUAL Rev 1 September 2005 USE IN LIFE SUPPORT DEVICES OR SYSTEMS MUST BE EXPRESSLY AUTHORIZED STMicroelectronics PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF STMi croelectronics As used herein 1 Life support devices or systems are those which a are intended for surgical implant into the body or b support or sustain life and whose failure to per form when properly used in accordance with in structions for use provided with the product can be reasonably expected to result in significant injury to the user 2 Acritical component is any component of a life support device or system whose failure to per form can reasonably be expected to cause the failure of the life support device or system or to affect its safety or effectiveness Ky STR73x Demonstration Software USER MANUAL 1 INTRODUCTION This document describes the demonstration software running on the STR73x EVAL evalua tion board which you can be used to evaluate the capabilities of the microcontroller and the on board peripherals The demonstration software contains a main application divided into various smaller applica tions It is already stored in the embedded flash memory of the microcontroller on the evalua tion board You can also download it from http www st com mcu and program it in the STR
6. 3 1 MENU Figure 2 Structure of the Demonstration Menus Welcome screen WELCOME TO THE STR730 DEMO Tine Stig Low PR modes I Exit by Pin Exitby WUT HALT RUN Temperature Celsius Unit Fahrenheit Unit Melodies Melody1 Melody2 Melody3 Melody2 Period Measure Melody3 p 3m Start Test Test Report Board Test 9 31 RUNNING THE DEMONSTRATIONS The above figure shows the menu system of the STR73x demonstration The column to the left displays the main menu NEXT and PREV push buttons allow you to navigate between the items in the menu To enter a sub menu press the SEL push button To exit a sub menu press the BACK push button 3 1 1 Welcome screen The following table summarizes which peripherals are used in this part of the software Table 1 Peripherals used by Welcome screen software STR730 peripheral used Purpose NEXT PREV SEL BACK button Pin configuration Driving the LCD EIC NEXT PREV SEL BACK buttons navigating through the menus GPIOs After a board RESET a scrolling message appears on the LCD WELCOME TO THE STR730 DEMO as shown in the figure below WELCOME TO THE OIRZJSU DEMO Then the application enters in the main menu and displays the first menu item Time Set tings
7. its corresponding buffer is automatically read from the BSPI EEPROM and then used to generate notes Switch SW10 has to be set in position 1 2 to connect the buzzer to the TIM1 Output Compare A OCMPA Table 3 Peripherals used by Melodies software STR730 peripheral used Purpose NEXT PREV SEL BACK button Pin configuration Driving the LCD GPIOs GPIOA blinking red LEDs P3 0 ADC channelO P1 7 TIM1 Output Compare A TIM2 GPIOA delay for blinking red LEDs PWMO 5 GPIO2 blinking bicolor LEDs PWM1 GPIO2 delay for blinking bicolor LEDs NEXT PREV SEL BACK buttons navigating through the menus GPIO2 bicolor LEDs blinking delay PWM1 Ele GPIO4 red LEDs blinking delay TIM2 End of TBO count TIM1 Generate the note frequency used in PWM mode TBO Count the note duration ADC Adjust sound volume using potentiometer DMA Transfer data from BSPI receive FIFO BSPI Read melody data from SPI EEPROM You can play a melody only once by selecting single mode or play it continuously by se lecting single repeat mode The volume can be adjusted using the potentiometer connected to ADC channel 3 3 4 1 Single Mode In this sub menu the selected melody is played only once The melody can be stopped when the BACK push button is pressed Melody 1 When selected it plays melody 1 Melody 2 When selected it plays melody 2 Melody 3 When selected it plays melod
8. Clock Configuration Unit PRCCU and a Clock Monitor Unit CMU which allows the user to configure the system clock Selecting this item shows how an application can be run at different clocking frequencies Blinking LEDs show the effect of changing the clock The following message is displayed on the LCD RUN Mode 32 MHZ The RUN menu contains five submenu items 32 MHz the application runs at 32 MHz 16 MHz the application runs at 16 MHz 8 MHz the application runs at 8 MHz 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 BACK button has to be pushed to exit from any selected mode and return to 32 MHz as default clock value 3 3 3 Temperature This menu allows you to display the ambiant temperature The STR730 microcontroller pro vides a 10 bit Analog to Digital Converter ADC with 2 LSB maximum error and an input range of 0 to 5V Reading the LM35 output voltage through the ADC channel1 the ambiant temperature can be measured in the range 0 C to 150 C 18 31 RUNNING THE DEMONSTRATIONS Figure 6 Peripherals used by Temperature software STR730 peripheral used Purpose NEXT PREV SEL BACK button Pin configuration Driving the LCD Helos GPIOA4 blinking red LEDs P3 1 ADC channel1 TIM2 GPIOA delay for blinking red LEDs PWMO 5 GPIO2 blinking bicolor LEDs PWM1
9. Driving the LCD GPIO4 blinking red LEDs P3 0 ADC channelO TIM2 GPIOA delay for blinking red LEDs PWMO 5 GPIO2 blinking bicolor LEDs PWM1 GPIO2 delay for blinking bicolor LEDs NEXT PREV SEL BACK buttons navigating through the menus EIC GPIO2 delay for blinking bicolor LEDs PWM1 GPIOA delay for blinking red LEDs TIM2 RTC Setting the time date and alarm TIM1 Generate the alarm notes frequencies TB2 Count the alarm notes duration ADC Adjust sound volume using potentiometer 12C Read Alarm melody data from I2C EEPROM 3 3 1 1 Time This sub menu is divided in two items allowing the user to display or to adjust the current 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 Adjust is selected the first digit of the hour field is ready to be changed Pressing the NEXT button will display the current value plus one Pressing the PREV button will display the previous digit value To change the digit value press NEXT or PREV After choosing the digit value press SEL the cursor jumps automatically to the next digit When all the time digits are set you need to press the BACK button to exit from the Time Adjust sub menu Some digit values are lim ited to a range of values depending on the field hour minute or seconds The following message with the default
10. The number of the red LEDs turned on corresponds to the potentiometer output volt age The following message is displayed on the LCD Var Resist Test Press Next Press NEXT to select whether the current test is passed or failed Press SEL when the test is passed else press BACK Buzzer test tests whether the buzzer works correctly on both positions of switch SW10 For the first test switch SW10 has to be in 1 2 position 24 31 RUNNING THE DEMONSTRATIONS The following message is displayed on the LCD Buzzer SW10 1 2 Press Next Press NEXT to display whether the current test is passed or failed Press SEL when the test is passed else press BACK Then change switch SW10 to posi tion 2 3 B zzer SWI0 2 5 Press Next Press NEXT to display whether the current test is passed or failed Press SEL when the test is passed else press BACK 2C test Testing Write Read operations EEPROM Once the test is finished a message is displayed indicating whether the I2C test is passed or failed Then the following message is displayed on the LCD I2C Test Press Next Press NEXT to start the next test BSPI test Testing Write Read operations on SPI EEPROM Once the test is finished a message is displayed indicating whether the BSPI test is passed or failed 25 31 31 RUNNING THE DEMONSTRATIONS Then the following message i
11. board tests After each test the user is asked to store the test result Press the SEL push button if the test is passed else press the BACK push button if test has failed These tests are PushButtons Test tests all the connected push buttons which are SEL BACK WAKE UP NEXT and PREV The following message is displayed on the LCD PushButtons Test Press XXXXx Red LEDs test Successively lights up the red LEDs connected to GPIO4 The following mes sage is displayed on the LCD Red Leds Test Press Next Press NEXT to select whether the current test is passed or failed Press SEL when the test is passed else press BACK 31 23 31 RUNNING THE DEMONSTRATIONS PWM LEDs test Successively lights up the bicolor LEDs connected to GPIO2 The following message is displayed on the LCD PWM Leds Test Press Next Press NEXT to select whether the current test is passed or failed Press SEL when the test is passed else press BACK LM35 test tests if the temperature sensor works correctly and displays the temperature val ue in Fahrenheit The following message is displayed on the LCD LM35 Test xx x F Next Press NEXT to select whether the current test is passed or failed Press SEL when the test is passed else press BACK Varistor test tests whether the potentiometer connected to of the ADC works cor rectly
12. normal running mode Some peripherals such as TBO TB1 TB2 WDG and RTC are clocked by the EXTCLK The MCLK clock can be changed only in the Run sub menu it can be 32 MHz 16 MHz 8 MHz or 4 MHz Figure 4 Clock Control EXTCLK 31 25kHz Crystal 8 MHz RTCP CK2_16 CSU_CKSEL Y Lib MCLK 32 MHz ui E 12 7 MODI MB A DX 2 0 MCLK 4 MHz RC Oscillator 2 MHz MX 1 0 3 3 APPLICATION The following section provides a detailed description of each part of the demonstration Notes n the demonstration the core runs at MCLK 32 MHz The external clock is set to EXTCLK 31 25 kHz Red LEDs connected to GPIO4 are always blinking with a frequency depending on the core clock Bicolor LEDs connected to the GPIO2 switch continuously from red to green with a frequency depending on the core clock 3 3 1 Time Settings The STR730 provides a Real Time Clock RTC which provide a set 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 12 31 RUNNING THE DEMONSTRATIONS This sub menu is used to configure some miscellaneous functions such as time date and alarm Table 2 Peripherals used by Time Settings software STR730 peripheral used Purpose NEXT PREV SEL BACK button Pin configuration
13. 31 RUNNING THE DEMONSTRATIONS Figure 5 Peripherals used by Low Power modes software STR730 peripheral used Purpose NEXT PREV SEL BACK button Pin configuration GPIOs Driving the LCD GPIOA blinking red LEDs TIM2 GPIOA delay for blinking red LEDs PWMO 5 GPIO2 blinking bicolor LEDs PWM1 GPIO2 delay for blinking bicolor LEDs NEXT PREV SEL BACK buttons navigating through menus GPIO2 bicolor LEDs blinking delay PWM1 EIE GPIOA red LEDs blinking delay TIM2 Interrupt when the WAKE UP push button is pressed WIU WIU Entering STOP mode Wake up the system from STOP mode external interrupt WUT Wake up the system from STOP mode end of timer count PRCCU Clock setting CMU Clock monitoring 3 3 2 1 STOP This menu allows you to put the STR730 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 RC Oscillator Main Oscillator turned off if RTC module is not running Minimum power consumption Automatic context saving In this application there are two ways to make the STR730 exit from STOP mode In the first one the WAKE UP push button connected to Wake up line16 is used to exit the MCU from STOP mode The following message is displayed on the LCD STOP Mode exit by pin The red LEDs continue blinking until the SEL push button is pre
14. 73x flash Rev 1 3 31 Table of Contents TINTRODUCTION 2 2 22 cote eee EG REI Ee xNG E 3 2 FUNCTIONAL DESCRIPTION 0 002 cece eee es 6 2 1 POWER CONTROL bi ix hawa eee Gace 7 2 2 CEOCKING 3 25 hofte rers I east Swi 7 2 3 RESET CONTROL ek pate OG hae we Pea Pese fub 7 2 4 DEBUG JTAG INTERFACE eer 7 2 5 45 ge eue Erud e es cessa 7 2 6 DISPLAY Sire So idea aie iB 7 204 EGD t osten t ee Net e RS E es De e eee 7 262 LED Eesti IEEE Eee sete ibis 7 2 7 INTEREAGES m a ohio oS usus Lex imd Qlegecqmde Lec Sener caus 8 2 Z2 9232 minui RP Rant PIU Pa taa PAI at fep 8 22 CAN dei putetis hee mure muet bre 8 2 8 SERIAL EEPROM ect env e dy ES 8 2 9 MISCELLANEOUS PERIPHERALS 8 2 9 1 10 bit Analog to digital converter 8 2 9 2 P sli b ttons sevo ro a PRs oaks eX tae em Cad Sane e 8 2 9 3 BUZZER 8 3 RUNNING THE DEMONSTRATIONS 9 MENU ertet er ot te aN a eee 9 3 11 Welcome screen os REI ERREUR E C Lubeke 10 31 2 INaVIgallOfl a 222463 ee wi Rie Perse kus Ree eee 10 3 2 CLOCK 3SOURGES pce eese ea ba eee ead 11 3 3 APPLICATION eum aha ad Pah nel PA Big ad 12 3 3 1 Time
15. GPIO2 delay for blinking bicolor LEDs NEXT PREV SEL BACK buttons navigating through the menus EIC GPIO2 bicolor LEDs blinking delay PWM1 GPIO4 red LEDs blinking delay TIM2 Read ADC converted result on channel1 ADC ADC Convert the LM35 output signal on channel1 The user is asked to choose the temperature unit C or F this sub menu contains two items 3 3 3 1 Celsius Unit When you select this sub menu the temperature is displayed in Celsius The temperature value changes at each end of conversion EOC of the ADC and is then updated on the LCD The following message is displayed on the LCD Temperature 6 3 3 3 2 Fahrenheit Unit When you select this sub menu the temperature is displayed in Fahrenheit The temperature value changes at each end of conversion EOC of the ADC and is then updated on the LCD The following message is displayed on the LCD Temperature CF 3 3 4 Melodies The STR730 microcontroller provides Timers and PWMs modules which can be used for timing purposes and generating the output signals In this case we use an standard Timer TIM and a Time Base timer TB to generate a PWM signal with a tunable frequency and S7 19 31 RUNNING THE DEMONSTRATIONS duty cycle which with an external piezo buzzer allow you to generate musical notes There are three melody buffers which are loaded in the BSP EEPROM when the demonstration starts When a melody is selected
16. and France Germany Hong Kong India Israel Italy Japan Malaysia Malta Morocco Singapore Spain Sweden Switzerland United Kingdom United States of America www st com 31 31
17. cy and duty cycle values periodically 300ms 7 77 21 31 RUNNING THE DEMONSTRATIONS If the input signal is in the specified range the following message is displayed on the LCD duty cycle XX freq xxxxx Hz If the signal is under the low limit of the range the following message is displayed on the LCD Out Qu range freg lt 488 Hz If the signal is over the high limit of the range the following message is displayed on the LCD Out of range fred gt 10 KHZ If there is no signal connected to the ICAPA4 P1 3 pin the following message is displayed on the LCD PEDO 3 3 6 Board test This test consists of checking the different components of the board and the STR730 periph erals Table 5 Peripherals are used by the Board test software STR730 peripheral used Purpose NEXT PREV SEL BACK button Pin configuration Driving the LCD GPIOs GPIOA blinking red LEDs GPIO2 blinking bicolor LEDs Generate sound using buzzer 22 31 RUNNING THE DEMONSTRATIONS STR730 peripheral used Purpose ADC GPIOA red LEDs lighting select using potentiometer Temperature measurement 2 Write Read EEPROM BSPI Write Read on BSPI EEPROM UARTO UART test board UART1 UART test board The board test is made of the following sub menus 3 3 6 1 Start Test You select this sub menu to start the various
18. er modes functions periodmeasure h Header for the periodmeasure c file 28 31 RUNNING THE DEMONSTRATIONS periodmeasure c This file provides functions for measuring the period and the duty cycle of an external signal temperature h Header for the temperature c file temperature c This file provides functions for displaying the temperature measured by the LM35 sensor buzzer h Header for the buzzer c file buzzer c This file provides functions for playing melodies leds h Header for the leds c file leds c This file provides functions for managing red LEDs connected to GPIO4 and bicolor LEDs connected GPIO2 cd h Header for the Icd c file cd c This file provides a set of functions needed to manage the LCD connected to 0 10 pins j2c ee h Header for the i2c_ee c file j2c ee c This file provides a set of functions needed to manage the I2C M24C08 EEPROM spi ee h Header for the spi ee c file spi ee c This file provides a set of functions needed to manage the SPI M95080 EEPROM boardtest h Header for the boardtest c file boardtest c This file provides functions for testing the STR73x 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 29 31 RUNNING THE DEMONSTRATIONS Figure 7 Software Architecture lowpower c lowpower h periodmeasure c temperature h n
19. hown in the figure below The time and date are continuously updated DD MM YY HH MM SS Using the WDG functions we are can enable or disable the screen saver for each demonstra tion sub menu It is disabled in five sub menus which are Time Adjust Date Adjust Alarm Ad just Period Measure and Board test 3 4 SOFTWARE ARCHITECTURE This section describe the software architecture it is divided into two layers Hardware library layer contains the software library source files These do not need to be modified by the user 73x_conf h the header file to configure which peripherals are used and miscellaneous de fines 73x type h contains the common data types and enumerations used in the other files 73x map h contains the peripheral memory mapping and register data structures 73x lib h main header file including all the others 73x it h contains the interrupt handler prototypes 73x it c the source file containing the interrupt handlers 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 timesetting h Header for the timesetting c file timesetting 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 pow
20. overview STR73x SPI SERIAL FLASH I2C EEPROM BUZZER BSPI 12C LM35 SENSOR VARISTOR ADC WAKE UP BUTTON WIU POWER CONTROL RESET CONTROL UART1 UART2 CAN GPIO JTAG RS232 RS232 CAN 16 2 LCD PUSH BUTTONS BOOT LEDs BICOLOR LED IN CIRCUIT EMULATOR 6 31 FUNCTIONAL DESCRIPTION 2 1 POWER CONTROL The STR73x microcontroller family is powered by an external supply 5V Vpp AVpp 4 5 to 5 5V All I Os are 5V capable The evaluation board is powered by an external 5V supply 2 2 CLOCKING The STR73x internal clocks are derived from two sources Clocking is provided by a mounted 8 MHz external quartz On chip RC Oscillator Backup oscillator 2 MHz or 32 KHz 2 3 RESET CONTROL The Reset can be generated by hardware or software sources Reset button activates the RESET input when pressed A JTAG reset A software reset 2 4 DEBUG JTAG INTERFACE Software debug is done via the standard ARM JTAG connection 20 pins IDC to connect to the standard ARM host interface 2 5 PROTOTYPE AREA A 2 54 2 54 mm gridded area of 1mm holes is available for prototyping using wire wrap or sim ilar prototyping techniques 2 6 DISPLAYS 2 6 1 LCD 16 characters 2 lines LCD display connected to GPIOs 2 6 2 LED Red LEDs Connected to 16 General Purpose Input Outpu
21. s displayed on the LCD BSPI Test Press Next Press NEXT to start the next test UART 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 con nectors on the evaluation board CN2 CN3 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 UART Test Press Next Press NEXT to exit the board test sub menu 3 3 6 2 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 twice on the LCD Board test not done yet 31 26 31 RUNNING THE DEMONSTRATIONS 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 Overalls test I l lxxxxxx Failed Passed 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 NEXT and PREV push buttons The following message is displayed on the LCD see ne
22. ssed then the system enters STOP mode and the following message is displayed on the LCD 16 31 x RUNNING THE DEMONSTRATIONS STOP Mode WAKE UP exit The MCU will remain in STOP mode unless the WAKE UP push button is pressed Once this button is pressed the MCU exits from STOP mode Then the system clock is set to 32 MHz and the application continues its execution n the second case the Wake Up Timer WUT will wake up the MCU from STOP mode after 10 seconds The following message is displayed on the LCD STOP Mode exit by WUT 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 Wakeup in 10s After 10 seconds have elapsed the system exits from the STOP mode Then the system clock is set to 32 MHz and the application continues its execution 3 3 2 2 HALT This menu allows you to put the STR730 in HALT mode The software performs the specific sequence of instructions needed to enter HALT mode HALT mode is characterized by RC Oscillator turned off Main Oscillator turned off if RTC module is not running Minimum power consumption Exit from HALT mode is possible only by means of an external or LVD reset r7 17181 RUNNING THE DEMONSTRATIONS The following message is displayed on the LCD HALT Mode RST exit 3 3 2 3 Run STR730 provides a Power Reset and
23. t pins Bicolor LED Connected to 6 General Purpose Input Output pins SMD LED Showing the status of the Power 5V 7 31 31 FUNCTIONAL DESCRIPTION 2 7 INTERFACES 2 7 1 RS232 The STR73x evaluation board STR73x EVAL provides two on board RS 232 serial ports that are driven directly by the Two embedded UART Both these RS232 ports are terminated by DB9 connectors 2 7 2 CAN The STR730 CAN manages a single DB9 connector with two switch selectable low speed L9669 or high speed L9615 or L9616 transceivers 2 8 SERIAL EEPROM EEPROM 8 Kbit connected to the 12 interface SPI EEPROM 8 Kbit connected to the buffered serial peripheral interface BSPI2 2 9 MISCELLANEOUS PERIPHERALS 2 9 1 10 bit Analog to digital converter Varistor ADC channelO connected to an on board variable resistor The variable resistor provides a voltage in the range of 0 to 5V LM35 sensor ADC channel1 is connected to the LM35 output voltage 2 9 2 Push buttons The following push buttons are provided NEXT programmable switch PREV programmable switch SEL programmable switch BACK programmable switch RST board reset WAKE UP push button to wake up the processor from low power modes 2 9 3 Buzzer Piezo buzzer OCPMAO or 1 can be connected to the on board piezo buzzer through switcher SW10 8 31 RUNNING THE DEMONSTRATIONS 3 RUNNING THE DEMONSTRATIONS
24. time or the current time is displayed on the LCD when this sub menu is selected Time Adjust HH MM SS 13 31 RUNNING THE DEMONSTRATIONS Show this item displays the current time or the default time The following message is dis played on the LCD when this sub menu is selected Time Show HH MM SS 3 3 1 2 Date This sub menu is divided in two items allowing the user to display or to adjust the current 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 date value 01 01 2005 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 NEXT or PREV Pressing NEXT button will display the current value plus one pressing PREV button will display the previous value After choosing the digit value press SEL the cursor jumps automati cally to the next digit When all the date digits are set press the BACK button to exit from the Date Adjust sub menu 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 0170172005
25. xt tests using NEXT and PREV Test number xx Test failed XXXX Test Test name To exit from the Test Report sub menu press the BACK push button 3 3 7 Screen Saver The STR730 Watchdog Timer module WDG can be used in Watchdog mode to reset the system or can be used in Timer mode to generate an interrupt after a selected time delay de pending on the system clock In this demonstration software the WDG module is enabled in Timer mode and generates an End of Count interrupt that sets a screen saver display when the WDG timer reaches a spec ified time delay If none of the push buttons are pressed during this delay which is 30 seconds the screen saver is displayed on the LCD As soon as a push button is pressed the last sub menu is re displayed on LCD The following table summarizes which peripherals are used in this software part STR730 peripheral used Purpose NEXT PREV SEL BACK button Pin configuration GPIOs Driving the LCD GPIO4 red LEDs blinking TIM2 GPIO4 red LEDs blinking delay PWMO 5 GPIO2 bicolor LEDs blinking PWM1 GPIO2 bicolor LEDs blinking delay GPIO2 bicolor LEDs blinking delay PWM1 EIC GPIO4 red LEDs blinking delay TIM2 End of WDG Timer count WDG Count the 30 seconds and if enabled set the screen saver mode Ay 27 31 RUNNING THE DEMONSTRATIONS When the demonstrations enter in screen save mode the date and time are displayed on the LCD as s
26. y 3 20 31 RUNNING THE DEMONSTRATIONS The following message is displayed on the LCD Single MelodyX 3 3 4 2 Single Repeat Mode In this sub menu the selected melody is played in a continuous mode till the BACK push button is pressed Melody 1 When selected it plays melody 1 Melody 2 When selected it plays melody 2 Melody 3 When selected it plays melody 3 The following message is displayed on the LCD Single Repeat MelodyX 3 3 5 Period Measure This menu allows you to measure the period of an input signal The STR730 TIM timers can be used in PWM input mode to measure the frequency and the duty cycle of an input signal in a range which depends on the TIMx clock in our case the range is from 488 Hz to 10 kHz You have to connect the signal to be measured to the ICAPA4 P1 3 pin Table 4 Peripherals used by the Period Measure software STR730 peripheral used Purpose NEXT PREV SEL BACK button Pin configuration Driving the LCD LL GPIO4 blinking red LEDs P1 3 TIMA input capture A TIM2 GPIOA delay for blinking red LEDs PWMO 5 GPIO2 blinking bicolor LEDs PWM1 GPIO2 delay for bicolor LEDs NEXT PREV SEL BACK buttons navigating through the menus EIC GPIO2 delay for blinking bicolor LEDs PWM1 GPIOA delay for blinking red LEDs TIM2 End of TB1 count TIM4 Measure the frequency and duty cycle of the input signal TB1 Display the frequen

Download Pdf Manuals

image

Related Search

Related Contents

F A X 連 絡 表  Harbor Freight Tools 2_in_1 Product manual  USER MANUAL VISSIM 3.70  説明書 - 双葉電子工業株式会社  DeltaGraph 5.6.1 for Windows Readme  Secado por infrarrojo / recomendaciones de curado  YML650 Rev2- SM5695 UG  LAF 1251 BR  

Copyright © All rights reserved.
Failed to retrieve file