Home

STR91x demonstration software

image

Contents

1. Interface X1_RTC to RTC X2_RTC Special interrupt L pto WDG software mode control selectable in WDG register J CPUCLK gt y to CPU N BRCLK r 12 HH Baud rate clock to UARTs 16 bit prescaler Py SE TIMO1CL EXTCLK_TOT1 LA Gating to TIMO 8 TIM1 16 bit prescalerL SE TIM23CLK EXTCLK_T2T3 Li Gating to TIM2 8 TIM3 l 1 2 Peripheral Clock 48 MHz e g i Gating to USB bloc USB_CLK48M 12 20 a STR91x demonstration software Running the demonstrations 2 3 2 3 1 2 3 2 STR91x resources Peripherals All used peripherals are described on the following table Table 1 STR91x demo peripherals Used peripherals Application FMI Main VIC Main WIU Main GPIO All applications SCU All applications RTC Calendar TIM Wave player LEDs show and System timer CAN Loop Back communication USB USB mouse demo ENET DMA MAC Controller Ethernet webserver demo Interrupts The following table shows all the enabled interrupts Table 2 STR91x demo interrupts Interrupts EXTIT3 IRQ channel Used for JoyStick and KEY push button RTC IRQ channel Calendar Alarm TIMO IRQ channel Wave player TIM2 IRQ channel System timer USB_LP IRQ channel USB mouse demo 13 20 Running the demonstrations S
2. STR91x demonstration software Running the demonstrations Welcome to the STR91x Demo vX X After two seconds the following graphic is displayed on the LCD screen Ce TO EE Sf A Push SEL 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 seven seconds Note When the board is powered up for the first time you have to set the date and time in the Calendar menu 9 20 Running the demonstrations STR91x demonstration software 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 2nd LEVEL LEFT LEFT RIGHT RIGHT EL SEL item MO ege tem E RIGHT YP LEFT RIGHTPLEFT ON item 1 2 x 5 item 2 NZ RIGHT LEFT aD 3 RIGHT LEF sE S AA 4 item n gt item 1 n A DS SEL item 2 1 sen RIGHT A LEFT S item 2 2 Ve RIGHT LEFT KS D S es item 2 n A The user navigates using the joystick push buttons RIGHT LEFT SEL UP and DOWN located on the evaluation board J 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
3. Ger UMO238 y User manual STR91x demonstration software October 2006 Introduction This document describes the demonstration software running on the STR910 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 can also be downloaded from http www st com mcu then programmed into the STR91x internal flash Important note For users with old STR9 eval boards having STR9 MCU with marking showing ES_D or a value less than 618 Revision 1 2 of the STR9 demonstration software is configured to run at 96 MHz for CPU and FMI clock This implies that pressing the Reset button will not restart the MCU please refer to the STR9 errata sheet v2 0 In order to correct this problem you should uncomment the following line of code in the main c file SCU_FMICLKDivisorConfig SCU_FMICLK_Div2 Rev 2 1 20 www st com Contents STR91x demonstration software Contents 1 Functional description ooooooooonrrron 3 1 1 Power control Lo 4 12 CIMOCKING 2 csecske shee oe ea EE 4 1 3 Resetcontrol erse P ois wee RENE ES ies aa was 4 1 4 Development and debugging 4 1 5 Displays and input devices 4 1 5 1 LCD ori States hed Gc
4. Pl g the USB Cable For this sub menu you have to connect an USB cable between the USB connector type B CN3 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 Webserver demo The STR91x microcontroller provides a DMA MAC controller for Ethernet communication This demo shows a webserver application based on the ulP v0 9 TCP IP stack The following sub menu is used to start the Ethernet webserver demo Messeilvelr Demo Start If SEL is pressed the following message is displayed on the LCD screen Webserver Started Press UP to exit 17 20 Running the demonstrations STR91x demonstration software 18 20 In order to test the webserver demo you need to 1 Connect the STR9 EVAL board to your PC Ethernet port using either a crossover Ethernet cable or through an Ethernet switch or hub 2 Change your PC IP address to 192 168 0 x where x is a value other than 8 3 Connect to the STR9 webpage by typing htip 192 168 0 8 in a browser The following page should appear Figure 5 STR9 webpage D O 10 Pawn dra Sue O S SS 3 El tto 1192 168 0 8 Ayy 3 PRODUCTS
5. TL Home Microcontrollers STRY STR9 ARM 32 bit Microcontroller STMovelactronica brings the power of an ARMIE processor core to the purpose Flash enicacontre 1 Opening endless opportunities to embedded system designers by making netvorking and other demanding applications eary and affordable The 5TRILOF fardy of MCUs delivers up to Se MIPS peak f ce while executing cod nigle cycle DSP instruc pres reading IdA Kbytes and A vast 910F an iden ringle chip ralutian to transform embedded control applications into low cost nodes on a local network of on the Internet Cocuments ates Filas fur STARS Fur 2 Key features STR91x demonstration software Revision history 3 Revision history Table 3 Document revision history Date Revision Changes 15 May 2006 1 Initial release Addition of new section 2 4 4 Webserver demo 10 Oct 2006 S Important note on page 1 added for old STRY eval boards 19 20 STR91x 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
6. power with 500mA limitation via the USB type B connector marked CN3 or USB on the silk screen e DV DC power from the daughter board extension connectors marked CN5 and CN6 DTB for Daughter Board on the silk screen For more details please refer to the power supply section on the STR910 EVAL Evaluation Board user manual Clocking Four clock sources are available on STR910 EVAL evaluation board for the microcontroller USB RTC and Ethernet PHY transceiver e X1 25 MHz crystal for the STR91xF microcontroller e X2 32 kHz crystal for the embedded RTC e X8 25 MHz crystal for Ethernet PHY transceiver U15 e U12 48 MHz oscillator for USB Reset control The reset signal of STR910 EVAL evaluation board is low active The reset sources include Oo Power On Reset from STM1001 U7 e Reset button PB2 e Debugging tools via the CN9 or CN7 connector o Daughter board via the CN6 connector Development and debugging The STR910 EVAL evaluation board supports connection to both In Circuit Emulators ICE via a 20 pin standard JTAG interface CN9 and Trace tools via a 38 pin Embedded Trace Macrocell ETM interface CN7 Displays and input devices LCD 32x122 graphic LCD display connected to GPIOs 5 20 Functional description STR91x demonstration software 1 5 2 1 5 3 1 6 1 6 1 1 6 2 1 6 3 1 6 4 6 20 LEDs 4 general purpose LEDs are available as display devices Joystick 4 direction jo
7. push buttons are provided e KEY user push button e TAMPER push button used to simulate a tamper event on the RTC Audio The STR910 EVAL evaluation board supports both audio wav format recording and playback 7 20 Running the demonstrations STR91x demonstration software 2 2 1 8 20 Running the demonstrations Menu Figure 2 Demonstration menus structure ST Logo OSIRIS wave Help Time Time Adjust Time Show Calendar Date Date Adjust Date Show Alarm Alarm Adjust Alarm Show Wave Player _ OSIRIS Play Replay E Stop Main Menu CAN Loop Back Kc Start USB Mouse Demo H Start Webserver Demo Start The above figure shows the menu system of the STR91x 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 OSIRIS wave is played Then after two seconds the Welcome message is displayed on the LCD screen as follows ky
8. 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 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 PRODU
9. CTS 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 reserved 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 a 20 20
10. TR91x demonstration software 2 4 2 4 1 14 20 Demo applications The following section provides a detailed description of each part of the demonstration Notes e Inthe demonstration the core runs at HCLK 96 MHz e Red LEDs LD2 LD3 LD4 and LD5 are always blinking Calendar The STR91x has an embedded Real Time Clock RTC which provides a set of continuously running counters that can be used with suitable software to implement a clock calendar function The counter 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 for the first time 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 t
11. da Vee e eter an 4 1 5 2 EEDS esis oe eee cette ias Ee Ee 5 1 5 3 JOYSTICK i iv en id A dee ewe wee A heal a 5 1 6 InterfaceS 20 0 eee eee 5 1 6 1 CAN EE 5 1 6 2 Ethernet ER SE EE RAS e aE E CH 5 1 6 3 SE EE 5 1 6 4 Infrared data access IrDA 0 cece eee 5 1 7 Motor control 2 AN ad new i eee o Ao 6 1 8 Miscellaneous peripherals 6 1 8 1 10 bit analog to digital converter 6 1 8 2 PUuUSh bDUttONS A iteru aaa tee dpa AE EE KEW a SE AIR AN 6 1 8 3 AUGIO o daa 6 2 Running the demonstrations 7 2 1 Men viaria cha A UE AN dd di o AE A 7 2 1 1 Welcome screen occcccc teens 7 2 1 2 Navigation corrio tebe ew eo onto dened de IN EE AER EA 9 2 2 Clock sources soon Se EE EA RRA 11 2 2 1 Clock control STE deeiw a BO apes apace ee CN 11 2 3 SLAG IMRSSOUNCOS sae ec ean are ee ae ee ici 12 2 3 1 Peripherals 1 naw awe eva eee NEE eae eae 12 2 3 2 Interrupts Ad eae ks Re eee ea Bibs We ea ES 12 2 4 Demo applications 2 ic cue KIEREN ened ave eed EE AE headend 13 2 4 1 Calendar mamparas ti aN Gees 13 2 4 2 Wave player cris tereca ca EE 15 2 4 3 USB mouse demo 15 2 20 ky STR91x demonstration software Contents 2 4 4 Webserver demo 16 3 REVISION history 05 00 0 e eh eA eee Ee eee EN 18 ky 3 20 Functional description STR91x demonstration software 4 20 Functional description The STR91x microcontroller evaluation board provides a development and demonstration platform for STR91
12. ime is displayed on the LCD when this sub menu is selected HH MM SS 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 the UP DOWN push buttons Date This sub menu is divided in two items allowing the user to display or to adjust the current 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 Dayname MM DD YYYY The default date ky STR91x demonstration software Running the demonstrations value SUN JAN 01 2006 is displayed when you enter this menu for the first time after power up The month field is ready to be changed To change the month press UP or DOWN Pressing the UP button will display the following month pressing the DOWN button will display the previous month After choosing the month press SEL the cursor jumps automatically to the next field When all the date fields are set the Calendar menu is shown Some digit values are limited depending on the field month day or year When re adjusting the date the current date value is shown The following message is displayed on the LCD when this sub menu is selected Date Adjust SUN JAN 01 2006 Date Show this item displa
13. 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 every two seconds 10 20 ky STR91x demonstration software Running the demonstrations Bnater To Qu SEL gt y Sub Menu T TO Exit som A Sub Menu PE SEO RIGHT Sub Menu To exit from this help menu press any joystick push buttons ky 11 20 Running the demonstrations STR91x demonstration software 2 2 Clock sources 2 2 1 Clock control The STR91x internal clocks are derived from an on board 25 MHz crystal source In this demo application the system clock is configured as follow e HCLK frequency is set to 96 MHz e FMICLK frequency is set to 96 MHz e PCLK is set to 48 MHz e USB clock CK_USB is set to 48 MHz internal clock Only the RTC is clocked by a 32 kHz external oscillator Figure 4 Clock control X1_CPU MAIN 4 to 25 MHz AHBDIV Peripheral HCLK 1 2 4 HEM Clock Lan gt x2_CPU in Gating RCLKDIV RCLK peripherals n M 1 2 4 8 16 1024 MII_PHYCLK APBDIV pcK Peripherallpc x MCLKSEL NH 248 SC fo APB 9 peripherals H Peripheral MIA A ER ew EMICLK 1 2 1 Gating to Flash Memory
14. the Alarm wave is played Wave player The STR91x 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 TIM3 is configured to generate a PWM signal with a tunable duty cycle The second Timer TIMO is used to generate an Update interrupt every 45 35 us 22 05 KHz which correspond to the TIM3 Duty cycle update The wave file has the following characteristics wav file Audio Format PCM Sample rate 22050 Hz Bits Per Sample 8 bits Number Of Channels Mono There is one wave to play e OSIRIS The following message is displayed on the LCD Wave Player OS TRES You can re play a wave only by selecting Play Replay The following message is displayed on the LCD Play Replay If SEL pressed The following message is displayed on the LCD SE To stop playing press SEL or wait until the end of the wave and the MCU will stop it automatically USB mouse demo The STR91x microcontroller provides an USB Universal Serial Bus which provide an interface between a full speed USB bus and the AHB bus STR91x demonstration software Running the demonstrations 2 4 4 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
15. x based applications It is designed to allow you to try out the major functions of the STR91x microcontroller The following picture summarizes the main functional blocks of the evaluation board Figure 1 Evaluation board overview Power supply and Reset ETM ETM ADC Audio Fl TIM PWI j Circuit JTAG h JTAG SPI 64Mbit SSPO Serial Flash 3 3V CAN DB9male CAN iver connector RS232 Transceive UARTO i i connector Transceiver with UARTO DB9male full modem control support STR91x MII PHY RJ45 UART1 UART1 connector DB9male connector IrDA Transceiver USB USB ESD USB type B RS232 protection connector Transceiver UART2 l UART2 DB9male Graphic LCD connector module Induction Motor GPIO Joystick Control connector MC Extention connector for RTC 32KHz RTC total 80 GPIOs Crystal Tamper a STR91x demonstration software Functional description 1 1 1 2 1 3 1 4 1 5 1 5 1 Power control STR910 EVAL evaluation board is designed to be powered by a 5V DC power supply You can configure the evaluation board to use any of the following three power sources e 5V DC power adapter connected to the power supply jack marked CN2 or PSU for Power Supply Unit on the silk screen e 5V DC
16. ys the current date The default date displayed after power up and before using the Adjust item application is SUN JAN 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 configure 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 internal Flash This sub menu is divided in two items to display or to adjust the current Alarm Alarm Adjust the alarm adjust is reached by the same procedure as the Time and Date Adjust Submenu The first digit of the day field is ready to be changed Pressing the UP button will display the current day value plus one Pressing the DOWN button will display the previous day value After choosing the needed day press SEL the cursor jumps automatically to the next field Alarm Adjust DD HH MM Ss Alarm Show this item displays the current alarm time The default Alarm displayed after power up and before using the Adjust item application is 01 00 00 00 The following message is displayed on the LCD when this sub menu is selected 01 00 00 00 To exit from this sub menu press UP DOWN push buttons 15 20 Running the demonstrations STR91x demonstration software Note 2 4 2 2 4 3 16 20 When an alarm is occurred
17. ystick with selection key Interfaces CAN The STR910 EVAL evaluation board supports CAN2 0A B compliant CAN bus communication based on a 3 3V CAN transceiver Both High speed mode and slope control mode are available and can be selected by setting a dedicated jumper Ethernet The STR910 EVAL supports IEEE 802 3 2002 compliant Ethernet communication via the MIl interface PHY transceiver STE100P with PHY address 10101b and an integrated RJ45 connector with embedded transformer RS232 The STR91x evaluation board STR910 EVAL provides three on board RS232 serial ports Two channels UART1 and UART2 use one RS232 transceiver U14 UARTO uses the RS232 transceiver U13 with full modem control support All these RS232 ports are terminated by three male DB9 connectors Infrared data access IrDA An on board IrDA transceiver is available on U9 and the UART1 channel can be configured to support IrDA communications STR91x demonstration software Functional description 1 7 1 8 1 8 1 1 8 2 1 8 3 Motor control STR910 EVAL evaluation board supports inductor motor control via a 34 pin 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 channel6 connected to an on board variable resistor The variable resistor provides a voltage in the range 0 to 3 3V Push buttons The following

Download Pdf Manuals

image

Related Search

Related Contents

ECONCEPT TECH 25 C - 35 C  PDF User`s Manual  

Copyright © All rights reserved.
Failed to retrieve file