Home

UM0313 User manual

image

Contents

1. oooooooooooooommnmnmnn 11 3 1 Connecting to the Virtual COM port 0 000 e eee eee 12 22 Options tab ose ke ace renwer SES G4 SES RE EN Ree SES eee E ER Ex 12 3 3 Register Setup tab xus Ced REN nes ie 13 3 4 Bars tab soe a e Apo ie d et ce de de a tre e DUC D RR N 15 ma RIO AD os exe teehee Coe de UE E qnd uS QE S weet ACIER Pee 16 3 6 Data ta pP 17 3 7 Inclinomete tab 2 18 3 8 Map Browsing tab 5144 5 9 3 302090 1e rie tic dro S ee Et Ronde 19 3 9 guum P a A a E a EOI O A EAEE 19 om MC Dorso one ss on cen oe E E e ae 21 2d SEI SB estrias dete aba a SA 22 4 Data acquisition quick start 2 2 0 0 cece ee 22 5 45 qunm 23 6 MEMS pointer cocinar rr RE GS E CET SEG 24 6 1 GUI description wx rr arre e one ee REX ERES 24 6 1 1 Right side main controls 0 0 cee eee 25 6 1 2 Left side pointer application controls 00 eee eee 25 7 Supported commands essere 26 7 1 Getting SIGUE suse eo Pare PAD b Eb ou ques paces fr pi iO d ex 26 7 2 Supported commands apro cedere ARI as 27 7 2 1 Start command 4 s s ew sue ciscus hA RERERTIPEAEG GA T EO GUN Ree i 27 2 33 ky UMO313 Contents 7 2 2 Debug command s sosiaa uea Cur ivaa tenes 27 7 2 3 Stop command sus s pe EY Eee ese a eed E yee ed e ad 28 7 2 4 Register read 1 0 0 ee ees 28 7 2 5 Register Wide csc deere Delpb ru etica Ee A 28 7 2 6 Single bit write 2
2. amp Right click on My Computer Right click on ST MEMS UNIT and choose Update driver ca Computer Management Open Fie Action View window Help Browse with Paint Shop Pro 8 ama 2 Explore amp Computer Management Local El crove87 Search ih System Tools E Computer A j Event viewer Y Data Acquisition Devices Manage kg Shared Folders de Dek dries 44 Performance Logs and Alerts Display adapters Map Network Drive y nager 4 DVD CD ROM drives i ij Storage Floppy disk controllers Disconnect Network Drive amp E Removable Storage J Floppy disk drives Disk Defragmenter 2 IDE ATAJATAPI cont Send To Disk Management Ge Keyboards Bp Services and Applications Mice and oth ing devices Cut a Monitors 0 Multi port s Copy BB Network a 4 other devites Create Shortcut 42 ST MEMS UNIT 4 Ports COM amp LPT Delete Processors Rename 9 Sound video and game controllers 2 System devices Properties amp Universal Serial Bus controllers 8 33 UMO313 EK302DL GUI installation Y Figure 7 USB driver installation using the Hardware Update Wizard Hardware Update Wizard Hardware Update Wizard Welcome to the Hardware Update Please choose your search and installation options Wizard This wizard helps you install software for e gucci E ST MEMS UNIT Use the check boxes below to limit or expand the default searc
3. Ti UMO313 J User manual EK302DL Evaluation Kit June 2007 Introduction The EK302DL is an evaluation kit designed to provide the user with a complete ready to use platform for evaluation of the LIS302DL The LIS302DL is a low power 3 axis linear accelerometer with digital output The device includes a sensing element and an IC interface capable of translating information from the sensing element into a measured signal that can be used for external applications In addition to the MEMS sensor the evaluation board utilizes an ST7 USB microcontroller which functions as a bridge between the sensor and the PC on which it is possible to use the Graphical User Interface included with the kit or dedicated software routines for customized applications This user manual describes the hardware included with the evaluation kit and provides the information required to install and run the evaluation kit user interface For details regarding the features of the LIS302DL sensor please refer to the datasheet for this device and application note AN2335 Rev 2 1 33 www st com Contents UMO313 Contents 1 Evaluation kit description ooooooooonronnmmmmmmmooo 5 2 EK302DL GUI installation llllllees sess 7 2 1 PC system requirements 0 0000 cee eee lere 7 2 2 Software installation 0 0 0 0 eee eee 7 2 3 Hardware installation 0 000000 7 3 Graphical User Interface
4. 2 tee 28 7 2 7 Zorn ANG Zofi othe bed oer ele a ped E ek bee ad Se eo at doe 28 7 2 8 Device NAME acia cbse a S DEUS RAS a iW 28 7 2 9 Firmware versioni e866 isaac EGRE re EGRE Ge a ve 29 7 3 QUICKSTART sra e Rath wales c eo eal ats ATS 29 8 Schematic diagram 22 6606 sesacesevead ceded ease nee e ewe ea 30 9 Bill Of Materials uua desea ON CRCRCA AAA 31 10 REVISION history iii od 8 p ec a n nana AA ER 32 ky 3 33 List of figures UM0313 List of figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9 Figure 10 Figure 11 Figure 12 Figure 13 Figure 14 Figure 15 Figure 16 Figure 17 Figure 18 Figure 19 Figure 20 Figure 21 Figure 22 Figure 23 Figure 24 4 33 Evaluation board block diagram 2 0 2 cee tenes 5 Top silk screen of the EK302DL kit 0 2 0 ee eee 6 Board photograph Rmacm ke o hmm CR rr Rr ea ves a are ea hae arn a ate 6 Software installation liess n 7 Notify COM e ici ad e UR Reps E Pe epa dra a pied eaten 8 Driver installation using the device manager 00 cece eee 8 USB driver installation using the Hardware Update Wizard o oooooocooocooo 9 Virtual COM driver port assignment 0 2 0 0 000s 10 Graphical User Interface main window 000 cece seh 11 SA A i E A a a aaa E E a A 13 Register Setup tab seci adei i iaa e Ea E E a Ea a a a a ai a a E AEE Ea G 14 Basta
5. The source code can be found in the directory Home STM EK302DL EK302DL_lite where Home is the directory in which the software that came with the evaluation kit was installed C Program Files by default The purpose of the lite version is to provide the user a base for the development of a customized application The lite version of the evaluation kit is started by launching the EK302DL Lite executable file located in the EK302DL Executables folder An example of the GUI of the EK lite application is shown in Figure 21 Figure 21 EK302DL Lite GUI Bl STmMicroelectronics EK302DL Lite r Main Control Select COM z Lee MEMS Evaluation Kit EK302DI HI Save Insert file name ierault dal i a MBU Application Lab Ea E 3 www st com mems Follow these instructions to use the software 1 connect the EK302DL to the USB port 2 start the EK302DL Lite GUI 3 select the Virtual COM port and click on the Connect button Figure 9 ref 1 4 select the destination file to which the acceleration data must be saved by clicking Browse Figure 9 ref 2 in Save section optional use the Tab Menu to display the desired function optional 6 click on the Start button to activate the sensor data collection and screen plotting functions a 23 33 MEMS pointer UM0313 6 1 24 33 7 click on the Start saving button to activate the sensor data saving to file
6. 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 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 AN
7. Stop buttons e Save box ref 2 Allows the user to save the data to a specified file e Tab Menu ref 3 Used to toggle between the different functions of the evaluation kit Figure 9 Graphical User Interface main window ref 3 Home Options Register Setup Bars Plot Data Inclinometer Map Browsing Interrupt Click Click FFT Bf STMicroelectronics EK302DL Main Control 7 Home Options Register Setup Bars Plot Data Inclinometer Map Browsing Interrupt Click Click FFT Not Comet i MEMS Evaluation Kit wor LS Li MPD Application Lab Insert file name Start saving Stop savini Device Firmware Software Main Control Not Connected Save Insert file name Select COM z Ea default dat Disconnect Start saving Stop saving ref 2 ref 1 11 33 Graphical User Interface UMO313 3 1 3 2 12 33 Connecting to the Virtual COM port Before using the functions of the evaluation kit software it is necessary to open the connection with the EK302DL board This is achieved through the following procedure 1 2 connect the EK302DL to the desired USB port in the Select COM drop down menu Figure 9 ref 1 choose the Virtual COM number to which the board has been mapped For additional information on how to obtain this number see section 2 3 open
8. UMO313 Graphical User Interface 3 3 Figure 10 Options tab Full Scale FS ref 1 Select the Full Scale of the Device 2G 8G E Data Rate DR Select the data rate at which acceleration samples are produced mm 100Hz 400 Hz ref 2 Tri State TS Activate Deactivate the Tri State on the ST7 LISB SPI Lines Deactivate Deactivate Activate ref 3 This flag is used to configure hinh nass Filter cut off frequency with Data Rate 100 Hz ref 4 Interrupt on Pad Inti C Gnd C FF WU 1 C FF WU 2 C FF WU 1orFF WU 2 DataReady C TapTap ref 5 Interrupt on Pad Int2 Gnd C FF wu 1 C FF wU 2 C FF WU 10rFF WU 2 C DataReady C TapTap Register Setup tab The Register Setup tab shown in Figure 11 allows read write access to the content of the registers embedded in the LIS302DL MEMS sensor mounted on the evaluation kit The tab is divided into five sections e General ref 1 Provides access to the registers which control the main settings of the device This section contains the control registers CTRL REG1 CTRL_REG2 and CTRL_REG3 and the registers that control the generation of inertial interrupt signals It is possible to read and write the contents of each register To restore the default value for a given register press the Default button e All Registers ref 2 Permits the user to read write and recall the default content for all the registers shown in ref 1 with a sin
9. bit is a specific interrupt The last byte s returns information about the switches mounted on the board Specifically bit 1 and bit 0 of the service data correspond to the status of SW3 and SW on the evaluation kit board and they are set to 1 when the corresponding switch is pressed 7 2 2 Debug command The debug command starts the continuous data acquisition in debug mode When this command is sent to the board it returns the acceleration data measured by the LIS302DL device in readable text format The values shown on the screen correspond to the content of the output data registers and are shown as a hexadecimal number A TAB is employed as a separator between the different fields ky 27 33 Supported commands UMO313 7 2 3 7 2 4 7 2 5 7 2 6 7 2 7 7 2 8 28 33 Stop command The stop command interrupts any acquisition session that has been started with either the start or debug commands Register read The rAA command allows the contents of the LIS302DL device registers in the evaluation kit board to be read AA expressed as hexadecimal value and written in upper case represents the address of the register to be read Once the read command is issued the board will return RAAhDDh where AA is the address sent by the user and DD is the data present in the register For example to read the CTRL REG the user would issue the command r20 which returns R20hC7h Register write The wAADD comma
10. data represents the acceleration espressed in mg 5 is 1019 ma Angle E o This value represents the angle between the board and 0 e earth surface ref 1 a ref 2 ref 3 4 17 33 Graphical User Interface UMO313 3 7 Inclinometer tab The Inclinometer tab Figure 15 represents the acceleration data measured by the sensor in the form of an artificial horizon Figure 15 Inclinometer tab Angle X Angle Y 26 Angle Z Figure 16 Axis Inclination 18 33 ky UM0313 Graphical User Interface 3 8 3 9 Map Browsing tab The Map Browsing tab Figure 17 demonstrates the possibility of using the acceleration data obtained from the sensor to scroll a map or another type of document on the screen Figure 17 Map Browsing tab Interrupt tab The Interrupt tab Figure 18 provides a tool for evaluating the interrupt generation features of the LISS02DL MEMS sensor In this section of the GUI it is possible to configure the characteristics of the inertial events that must be recognized by the device and to visualize in real time the level of the two interrupt lines together with the acceleration signals that are measured by the device The GUI provides direct access to the registers INT CFG INT SRC THS and DURATION that allow the configuration of the two independent interrupt
11. materials 9 Y Bill of materials The bill of materials for the EK302DL Evaluation Kit is provided in Table 2 Table 2 Bill of materials Designator Description Comment Footprint C1 Capacitor 10 uF C1206 POL C2 Capacitor 4 7 uF C1206_POL C3 Capacitor 4 7 uF C1206_POL C4 Capacitor 100 nF 0805 C5 Capacitor 100 nF 0805 C6 Capacitor 100 nF 0805 C7 Capacitor 100 nF 0805 C8 Capacitor 47 nF 0805 C9 Capacitor 220 nF 0805 C10 Capacitor 10 pF C1206_POL Cosc1 Capacitor 33 pF 0805 Cosc2 Capacitor 33 pF 0805 D1 Led SMD LED red SMD LED D2 Led SMD LED red SMD LED D3 Led SMD LED green SMD LED D4 Led SMD_LED_3C J1 USB connector USB B USB B J2 Header 5X2 ICP HEADER 5X2 A J3 Header 7 Pin SPI HDR1X7 R1 Resistor 180 Q 0805 R2 Resistor 100 Q 0805 R3 Resistor 100 Q 0805 R4 Resistor 100 Q 0805 R5 Resistor 100 Q 0805 R6 Resistor 1 5 kQ 0805 R7 Resistor 10 KQ 0805 R8 Resistor 10 KQ 0805 Riccsel1 Resistor 10 KQ 0805 SW1 Button NReset SMT Button Sw2 Button SMT_Button SMT_Button SW3 Button SMT_Button SMT_Button U1 LIS302DL TLGA_5x3x1 U2 ST72F651AR6T1E TQFP64_10x10 Yoscm1 Crystal 12 MHz OSC_SMD 31 33 Revision history UM0313 10 32 33 Revision history Table 3 Revision history Date Revision Changes 24 Nov 2006 1 Initial release 08 Jun 2007 2 Click Tab description added UMO313 Please Read Carefully
12. the connection by clicking on Connect Figure 9 ref 1 When this procedure is complete the general purpose LED on the board will switch from red to green At this point the user can acquire plot and save the acceleration data measured by the sensor and access the content of the registers embedded in the device The following sections provide details regarding the functions of the tabs in Figure 9 ref 3 Options tab The Options tab allows the user to control the following parameters Full Scale FS Sets the maximum acceleration value measurable by the device lt is possible to select either 2g or 8g Figure 10 ref 1 Data Rate DR In this box the rate at which each acceleration sample is produced can be selected The possible values are 100 Hz or 400 Hz Figure 10 ref 2 Tri State TS Permits switching the SPI lines of the ST7 USB microcontroller mounted on the evaluation kit between 3 state i e high impedance and normal mode Figure 10 ref 3 This function makes it possible to isolate the sensor mounted on the board from the microprocessor in case any external control from a different microcontroller mounted on a separate user board is needed High Pass Filter HP This control activates the High Pass Filter on the device and selects the cut off frequency Figure 10 ref 4 Interrupt on Pad IntX Allows the selection of the type of signal to be sent out on Int1 and Int2 Pad Figure 10 ref 5
13. 3 MEMS pointer 6 1 1 Right side main controls The buttons on the right side of the GUI and their related functions are described below e Connection control Selects the COM port on which the EK board is connected e Acquisition control Starts and stops acquisition e Exit Exits the MEMS Pointer Demo application 6 1 2 Left side pointer application controls The controls on the left side of the GUI and their related functions are as follows e Leftbutton right buttons Indicates when the left right button on the evaluation kit is pressed e X Y position Shows the current x y coordinates of the mouse pointer on the PC screen e X Y deg Shows the tilt of the evaluation kit along the X and Y axes as depicted in Figure 23 e Tilt control Allows the user to select the direction of the vertical displacement on the Screen vs the direction in which the board is tilted For example by selecting Up the pointer will move upward when the evaluation kit is tilted forward Conversely by selecting Down the pointer will move downwards when the board is tilted backward e Pointer speed Sets the sensitivity of the pointer to the inclination of the board Figure 23 Axis orientation Z 25 33 Supported commands UMO313 7 7 1 26 33 Supported commands The microcontroller mounted on the EK302DL board is equipped with dedicated firmware which supports a set of commands that allow the control of th
14. 8 click on the Stop saving button to stop the sensor data saving 9 click on the Stop button to stop the sensor data collection and screen plotting functions 10 to close the application click on Disconnect and then click on Exit The GUI also gives read write access to the registers embedded in the LIS302DL device and allows a single read of the acceleration data measured by sensor MEMS pointer This section describes how to use a simple pointer application which utilizes acceleration data provided by the LIS302DL MEMS 3 axis linear accelerometer to control the position of a pointer on the screen of the PC The software provided with the kit allows the EK302DL Evaluation Kit board to be used as an inertial mouse where the tilt of the board is translated into movement of the pointer The board also emulates the left and right buttons of the mouse GUI description The GUI window see Figure 22 is divided into two sections The top section contains the main controls to open the connection to the evaluation kit and to start stop the data acquisition The bottom section contains the pointer application controls Figure 22 MEMS Pointer Demo MEMS Pointer Demo Ver 1 0 USB gt Virtual COM Pointer Infos Lett Hight P Button Button TiltControl OFF OFF Up Down Position Position L B t I x aa Pointer speed 1 10 Deg Y Deg Fl gt MBU Application Lab UMO31
15. For additional details see section 3 f 9 33 EK302DL GUI installation UM0313 10 33 Figure 8 Virtual COM driver port assignment oO Computer Management Computer Management Local p System Tools t al Event Viewer EG Shared Folders E Performance Logs and Alerts E y Storage El Removable Storage M Disk Defragmenter Disk Management El m Services and Applications 4 Computer as Disk drives 2 Display adapters 2 DVD CD ROM drives 3 Floppy disk controllers IDE ATA ATAPI controllers c Keyboards y Mice and other pointing devices Monitors Big Network adapters 4 Ports COM amp LPT E 4 Communications Port COM1 BI 8I BI I 81 8 8 87 R HF ST Virtual Com COM8 QB Smart card readers Sound video and game controllers s Storage volumes 14 System devices Universal Serial Bus controllers AAA UMO313 Graphical User Interface 3 Graphical User Interface To execute the EK302DL Evaluation Software GUI 1 click on Start gt All Programs 2 select EK302DL gt Executables 3 launch the program EK302DL Ver 1 3 The GUI main window will appear as shown in Figure 9 The functions of the four main sections of the window are described below e Connection panel ref 1 Connects disconnects the board and starts acquisition via the Start
16. MEM ETT 15 Plot tabas PC cm 16 Data tab s e koe Mele a bitte irae Adenia mone E Ja T Gen da a here aos 17 Inclinometer tab ae ceterae RR Exe X qu rapid ue qo iE Ea d 18 AXIS INCINAON EC ee he dawn eee ca eee Ee ad aces 18 Map Browsing tab 0 n rr 19 Interrupt tab PT 20 Oli TAD acne a tae ein boas Se ae a ee SE ee eas Ce Phare he arena SA 21 AA Duce uec ash a RC SMILIES IL RE ta hd eset 22 EK302DL Lite GUI 2 2 gcc msi rure e a bea ew bee tae abies ds 23 MEMS Pointer Demo cocccccc tte 24 Axis orientation siis eig ee ce eee ee ee ee Ra ae ee a 25 Schematic diagram of the EK302DL board 0 eens 30 UM0313 Evaluation kit description Evaluation kit description The EK302DL is a complete evaluation kit that allows evaluation of the performance of the LIS302DL low power 3 axis linear accelerometer with digital output The block diagram of the evaluation kit is shown in Figure 1 Figure 1 Evaluation board block diagram Control Switches Left Right and Reset SPI USB uc Connector Power On LED Data Ready LED General Purpose LED The ST7 USB microcontroller included on the board allows communication between the sensor device and the PC The user can interact with the hardware either through the GUI provided with the kit or through dedicated software routines to run customized applications Switches and LED indicators are used to co
17. Wake Up Default ref 1 Read Write Read Read Write Set EXT TA e ref 4 ref 2 2 UM0313 Graphical User Interface 3 10 Click tab The Click tab Figure 19 is a tool to evaluate the Click Recognition function of the LIS302DL MEMS sensor This function allows the recognition of a Single Click and a Double Click event and provides an interrupt when the event occurs Acceleration data top section and recognized click events bottom section are plotted in real time for each axis On the bottom the level of the Interrupt is plotted This tab provides direct access to the registers TAP THSY X TAP THSZ TAP DURATION TAP LATENCY TAP WINDOW allowing the user to fully configure the Click Recognition function and the external interrupt lines Two buttons allow the user to set standard values for single and double click Figure 19 Click tab Double Click Register Value Double Click Setup TAP THSY X 77 Read write X Threshold 3500 mg xaxes v None Single Click C Double Click Y Threshold 3500 mg TAP_THSZ 07 Read write mea 3500 PROA ARE AO EROS TAP_DURATION FE Read Write Duration aum ms 2 Axes C None C Single Click Double Click Tap_Latency 10 Read write Latency 16 ms TAP WINDOW FF Read write window 255 ms Single Click Double Click ky 21 33 Data acquisition quick start UM0313 3 11 FFT tab The FFT tab Fi
18. Y 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 2007 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
19. _2 Read Write Communication FF_WU_THS_2 Read Write Default FF_WU_DURATION_2 Read write NOTE Default Buttons don t write a value in registers they only recall Read Write the registers default value Load Save Configuration Crow m Parameters Te e Default Register Address hex Default EELE ERLE Register Value hex l ref 2 ref 3 ref 5 ref 4 2 14 33 UMO313 Graphical User Interface 3 4 Bars tab The Bars tab Figure 12 displays the acceleration data measured by the LIS302DL sensor in bar chart format The accelerations along the X Y and Z axes correspond respectively to the RED GREEN and BLUE bars The length of each bar is determined by the amplitude of the acceleration signal measured along the related axis The full scale of the graph depends on the FS bit of CTRL_REG1 that may be changed through both the Option Figure 10 and the Register Setup tabs Figure 11 Figure 12 Bars tab 15 33 Graphical User Interface UMO313 3 5 16 33 Plot tab The Plot tab Figure 13 is divided into three sections e Main window ref 1 Shows the sequence of acceleration samples that have been measured by the LIS302DL MEMS sensor mounted on the evaluation kit e Visualization options ref 2 Allows t
20. e 3 axis digital output MEMS sensor and permit the aquisition of the measured acceleration data The firmware also handles the communication between the EK board and the PC through the USB bus These features allow users to easily write their own applications to exploit the capabilities of the accelerometer This section describes the commands that are supported by the firmware loaded in the microcontroller of the EK302DL Evaluation Kit Getting started Before using the commands supported by the firmware the following procedure must be performed 1 connect the EK302DL to the USB port 2 launch an application which allows the sending of commands through the Virtual serial port The remainder of this document will assume the use of the Microsoft Hyper Terminal program integrated in the Windows XP operating system 3 create a new connection enter a name ex EK302DL and click OK 4 inthe Connect Using field select the Virtual COM port to which the USB port has been mapped and click OK 5 in Port Settings set Bits per second to 115200 Data bits to 8 Parity to None Stop bits to 1 and Flow control to None Click OK 6 inthe Hyper Terminal select Files Properties Settings and then click on the ASCII Setup button 7 select Send line ends with line feeds and Echo typed characters locally 8 click the OK button to close the ASCII Setup window 9 click the OK button to close
21. gle click on the read write default button e Direct Communication ref 3 Provides access to any register in the device To read a generic register insert the address in the Register Address textbox then click on the Read button The retrieved content of the register will be displayed in the Register Value field As with writing to a register the user must specify the address and the data to be written inside the fields marked Register Address and Register Value respectively and then press the Write button e Load Save Configuration ref 4 Lets the user save load a specific configuration to from a file e Parameters ref 5 Allows the user to save the register configuration to a text file which includes a detailed description of the resulting configuration for each register 13 33 Graphical User Interface UMO313 Figure 11 Register Setup tab ref 1 General m Interrupt 1 CTRL REGI Read Write Defaut FF_WU_CFG_1 Read Write Default CTRL_REG2 Read Write Default FF_WU_SRC_1 Read Write Default CTRL_REG3 Read write Defaut FF_WU_THS_1 Reed write Default Read Write Defaut FFWU DURATION 1 Read write Defaut Read Write Default m Interrupt 2 FF WU CFG 2 Rea Write Default HP FILTER RESET STATUS REG EEEE All Registers Read Write Default FF_WU_SRC
22. gure 20 shows the FFT of the acceleration signals acquired by the sensor The spectral data are updated every sample and are calculated on a 64 sample moving window Figure 20 FFT tab 2000 mg 1500 mg 1000 mg 500 mg 0 1 3 4 6 8 9 11 12 14 16 17 19 21 24 25 27 28 30 32 33 35 36 38 40 41 43 44 46 48 49 51 Hz 4 Data acquisition quick start This section describes the basic steps that must be performed to acquire the acceleration data from the EK302DL 1 connect the EK302DL to the USB port 2 start the EK302DL GUI 3 select the Virtual COM port and click on the Connect button Figure 9 ref 1 4 select the destination file to which the acceleration data must be saved by clicking Browse Figure 9 ref 2 in Save section optional use the Tab Menu to display the desired function optional 6 click on the Start button to activate the sensor data collection and screen plotting functions 7 click on the Start saving button to activate the sensor data saving to file 8 click on the Stop saving button to stop the sensor data saving a 22 33 Ti UMO313 EK Lite 9 click on the Stop button to stop the sensor data collection and screen plotting functions 10 to close the application click on Disconnect and then click on Exit EK Lite The mini CD included with the EK302DL also contains a lite version of the previous GUI together with its source code
23. h which includes local paths and removable media The best driver found will be installed T Search removable media floppy CD ROM If your hardware came with an installation CD E S or floppy disk insert it now IV Include this location in the search C Program Files STM EK302D L driver ha IE ES C Don t search will choose the driver to install Choose this option to select the device driver from alist Windows does not glgrantee that the driver you choose will be the best match for your hardware What do you want the wizard to do Install the software automatically Recommer Back Nest Cancel Hardware Update Wizard Please wait while the wizard installs the software SS e Hardware Installation e aX The soltura you E nS e E ST Virtual Com ST Virtual Com v has not passed Widows Logo testing to verify its compatibility i ll me why this testing is important 2 Setting a system restore point and backing up old fles in case your system needs to be restored in the future Hardware Updat Completing the Hardware Update Wizard The wizard has finished installing the software for 3 ST Virtual Com Click Finish to close the wizard Once the installation is complete a COM port number will be assigned to the ST Virtual COM driver Figure 8 This number should be retained as it will be required to run the EK302DL Evaluation Software GUI
24. he user to enable disable the trace related to each axis and to show hide the marker on the plot diagram e Zoom options ref 3 Permits enlargement of the plot in the horizontal Time and vertical Amplitude directions and to move the center of the plot upward downward with the Up and Down buttons Figure 13 Plot tab ref 1 ref 2 Enable Disable V 1000 mg Y Enable Disable Y Z 1000 mg EnablejDisable v Marker Enable Disable ref 3 UMO313 Graphical User Interface 3 6 Note Data tab The Data tab Figure 14 shows the acceleration values measured by LIS302DL sensor It is divided into three boxes e ADC Out ref 1 Displays the acceleration data provided by the sensor after its conversion from 2 s complement to magnitude and sign e Acceleration Value Represents the acceleration data measured by the sensor expressed in mg e Angle Returns the tilt angle expressed in degrees that is inferred from the ADC Out data To increase data readability the values shown in the boxes described above are based on an average of 50 samples Figure 14 Data tab ADC Out 2 This value represents the acceleration data obtained from the register of the sensor converted to 0 2 complement in sign and magnitude and averaged 56 Acceleration Value 46 mg This
25. ick OK D represents the letter of your CD ROM drive 3 click on Evaluation Kit SW Installation from the EK302DL Evaluation Kit page 4 follow the on screen instructions Figure 4 Figure 4 Software installation 18 Setup EK302DL Evaluation Kit Select Components Which components should be installed Select the components you want to install clear the components you do not want to install Click Next when you are ready to continue ull installation EK302DL Lite ver 1 0 MEMS Pointer Ver 1 0 EK302DL Lite source code ST Firmware Virtual COM Driver EK302DL Evaluation Kit User Guide LIS302DL Datasheet LIS302DL Apolication Note 2335 KS ES ES ES IS STISTIS Current selection requires at least 24 2 MB of disk space lt Back Next gt Cancel 2 3 Hardware installation To install the virtual COM driver insert the evaluation kit board into a free USB port The Notify icon should appear as in Figure 5 7 33 EK302DL GUI installation UMO313 Figure 5 Notify icon 4D Found New Hardware ST MEMS UNIT n MADROLWOBYIO SE If the Hardware Update Wizard window appears Figure 7 follow the instructions on the screen Otherwise the installation can be performed by following the instructions indicated in Figure 6 and Figure 7 Figure 6 Driver installation using the device manager i
26. nd permits writing to the contents of the LIS302DL device registers in the evaluation kit board AA and DD expressed as hexadecimal values and written in upper case represent respectively the address of the register and the data to be written To write OxC7 to the CTRL REGI for example the user would issue the command w20C7 Single bit write Using this command it is possible to set reset a single bit in a given register The command bwAA 0 7 0l1 requires the user to specify the address AA of the register in which to change the bit with AA expressed as a hexadecimal value and written in lower case followed by the position of the bit to be changed an integer between 0 and 7 and the value either O or 1 to be associated to the specified bit For example to set to 1 the FS bit within the CTRL_REG2 the user would issue the command bw2171 Zon and Zoff The Zon and Zoff commands are employed respectively to put into 3 state i e high impedance and to exit i e normal mode the SPI lines of the ST7 USB microcontroller mounted on the evaluation kit These commands allow the isolation of the sensor from the microprocessor in the event that an external control from a different microcontroller mounted on a separate board is needed By default when the kit is first turned on the SPI lines are in 3 state mode and the user is required to send the command Zoff to allow the communication between the sensor and the microcontrolle
27. ntrol and monitor the functionality of the board The top silk screen view and photo of the full board respectively are shown in Figure 2 and Figure 3 5 33 Evaluation kit description UM0313 6 33 Figure 2 Top silk screen of the EK302DL kit Figure 3 Board photograph Application Lab EK302DL Rev 1 1 Sept 2006 www stcom mems 3e ICP HTTTTHTTRETTIT dddiddddidaa ES agn Operation of the EK302DL Evaluation Kit requires the installation of a dedicated driver which is included on the CD in the kit together with a GUI interface which allows simple interaction with the sensor The steps required for driver and software installation are described in the following section ky UMO313 EK302DL GUI installation 2 EK302DL GUI installation The installation of the Graphical User Interface GUI for the EKSO2DL requires two steps 1 installation on the PC of the software delivered with the evaluation kit 2 installation of the Virtual COM driver needed to use the evaluation kit board 2 1 PC system requirements Both the hardware and software that compose the EK302DL Evaluation Kit have been designed to operate with Microsoft Windows XP 2 2 Software installation To install the software distributed with the EK302DL Evaluation Kit 1 insertthe mini CD into the CD ROM drive 2 ifthe Autorun screen does not appear click on Start Run then enter D Autorun exe and cl
28. r Device name The dev command retrieves the name of the device mounted on the evaluation kit connected to the PC For the EK302DL the returned value is LIS302DL UMO313 Supported commands 7 2 9 Firmware version The ver command queries the evaluation kit and returns the version of the firmware loaded in the microprocessor 7 3 Quick start This section shows the basic sequence of commands to start a data communication session and retrieve the acceleration data from the evaluation kit 1 2 3 connect the EK302DL to the USB port start Microsoft Hyper Terminal and configure it as described in section 7 7 inside the Hyper Terminal window enter the command Zoff to enable the control of the SPI line from the ST7 USB microcontroller send the debug command to get the acceleration data measured from the sensor send stop to end the continuous acquisition and visualization 29 33 Schematic diagram UM0313 8 Schematic diagram The schematic diagram of the EK302DL Evaluation Kit is shown in Figure 24 Figure 24 Schematic diagram of the EK302DL board a E Pe Zx 8 5 58 ES l E pa zi y i 2 E 8 5 Els TINT E 803 I y gt y xs S 9 ZINI is 88 dl U2 ST7265X_TOFP64 vcc ET E 88 si Pa 4 H 5 8s x 38 ER r 1 H 2 30 33 UMO313 Bill of
29. sources of the device Conversion boxes are located on the right most side of the THS and DURATION registers ref 1 These boxes are intended to show respectively the threshold value expressed in mg and the duration value converted in msec for better readability and understanding On the bottom side of the window ref 2 the content of the FF WU SRC register is reported for an immediate check of its content 19 33 Graphical User Interface UM0313 20 33 Finally two buttons are provided for each interrupt line to set the suggested default values for free fall and wake up detection Those buttons are marked Set FreeFall Default ref 3 and Set Wake Up Default respectively ref 4 Figure 18 Interrupt tab Int2 Inti nterrup FF WU CFG 1 FF WU SRC 1 FF WU THS 1 FF WU SRC 1 FF WU DURATION 1 09 90 ms Read x x Set FreeFall Default fos Read 00 DCRM THS Read i4 o 360 ma Read 0 1 0 0 1 0 1 IA ZI zn XH XL Set Wake Up Default Interrupt 1 FF WU CFG 1 jos FF_WU_SRC_1 FF_WU_THS_1 FF WU DURATION NEN FF wLJ SRC 1 SetFreeFallDefauk SetFreeFallDefauk xam ref 3 Interrupt 2 FF WU CFG 2 Joa Read write FF WU SRC 2 00 pcnM THS Read write FF WU THS 2 Joa fo 180 ma Read write FF_WU_DURATION 2 f00 o0 ms Read Write FFWUSRC2 x 1 E E 0 x IA ZH 2k wnb ub xH XL Set FreeFall Default Set
30. st com 33 33 2
31. the Properties window Once this procedure has been completed the user can utilize the commands described in the following sections by typing them into the Hyper Terminal window UMO313 Supported commands 7 2 Supported commands The table below lists the commands supported by the EK302DL firmware Table 1 Supported commands Command Description Returned value start Starts continuous data acquisition STxyzl1l2s debug Returns the acceleration data in readable x XX y YY z ZZ text format stop Stops data acquisition rAA Register read RAAhDDh wAADD Register write bwAA 0 7 0l1 Single bit write Zon Force 3 state Zoff Exit from 3 state dev Device name LIS302DL ver Firmware version 302DL 1 1 Note AA register address DD data S service field XX YY ZZ Acceleration data returned for the X Y and Z axes I1 I2 interrupt value on each axes 7 2 1 Start command The start command initiates the continuous data acquisition When this command is sent to the board it returns the acceleration data measured by the LIS302DL device The acceleration data are packed in a string composed of eight bytes s t X Y Z 1 12 SD The first two bytes are always s and t which correspond to the hexadecimal values 73 74 while X Y Z represent respectively the acceleration data for the X Y Z axes 11 and 12 contain the values of FF WU SRC1 and FF WU SRC2 where each

Download Pdf Manuals

image

Related Search

Related Contents

procedimiento de instalacion del espectrografo mezcal.  Deutsch English Español Italiano  Frigidaire FPCO06D7MS Product Specifications Sheet  Télécharger (1115 ko) - Equipscène, lieux de spectacles, home  Hardware User Manual V1.1.6  PRIMERGY H200 ラックマウント変換機構取扱説明書  BETA-MIG 2510 - Hobart Welders  1-input User Manual  Philips Rest water tray cover HD5216  

Copyright © All rights reserved.
Failed to retrieve file