/**
@page LIS302DL_Example MEMS Accelerometer Configuration example
@verbatim
******************** (C) COPYRIGHT 2011 STMicroelectronics *******************
* @file MEMS/readme.txt
* @author MCD Application Team
* @version V1.0.0
* @date 19-September-2011
* @brief Description of the MEMS Configuration example.
******************************************************************************
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
******************************************************************************
@endverbatim
@par Example Description
This example shows how to configure the MEMS accelerometre to detect acceleration on X/Y axis
and to detect the click/double click on Z axis.
After startup the program checks the MEMS accelerometre status registers and behaves as follows:
1. If the board is moved the acceleration is detected on x/Y axis and LEDs toggles according to
the motion direction and speed.
2. If a click is detected on Z axis LED3 and LED6 toggles during 3s.
3. If a double click is detected on Z axis all LEDs toggles during 3s.
Note: The LEDs lighting is managed by TIM4 capture compare channels
@par Directory contents
- MEMS/stm32f4xx_conf.h Library Configuration file
- MEMS/stm32f4xx_it.c Interrupt handlers
- MEMS/stm32f4xx_it.h Header for stm32f4xx_it.c
- MEMS/main.c Main program
- MEMS/main.h Header for main.c
- MEMS/system_stm32f4xx.c STM32F4xx system source file
@par Hardware and Software environment
- This example runs on STM32F4xx Devices Revision A.
- This example has been tested with STM32F4-Discovery (MB997) RevA and can be
easily tailored to any other development board
- STM32F4-Discovery
- Use MEMS accelerometre LIS302DL (U5)
@par How to use it ?
In order to make the program work, you must do the following :
+ EWARM
- Open the LIS302DL.eww workspace
- Rebuild all files: Project->Rebuild all
- Load project image: Project->Debug
- Run program: Debug->Go(F5)
+ MDK-ARM
- Open the LIS302DL.uvproj project
- Rebuild all files: Project->Rebuild all target files
- Load project image: Debug->Start/Stop Debug Session
- Run program: Debug->Run (F5)
+ TASKING
- Open TASKING toolchain.
- Click on File->Import, select General->'Existing Projects into Workspace'
and then click "Next".
- Browse to TASKING workspace directory and select the project "LIS302DL"
- Rebuild all project files: Select the project in the "Project explorer"
window then click on Project->build project menu.
- Run program: Select the project in the "Project explorer" window then click
Run->Debug (F11)
+ TrueSTUDIO
- Open the TrueSTUDIO toolchain.
- Click on File->Switch Workspace->Other and browse to TrueSTUDIO workspace
directory.
- Click on File->Import, select General->'Existing Projects into Workspace'
and then click "Next".
- Browse to the TrueSTUDIO workspace directory and select the project "LIS302DL"
- Rebuild all project files: Select the project in the "Project explorer"
window then click on Project->build project menu.
- Run program: Select the project in the "Project explorer" window then click
Run->Debug (F11)
* <h3><center>© COPYRIGHT 2011 STMicroelectronics</center></h3>
*/
没有合适的资源?快使用搜索试试~ 我知道了~
MEMS.rar_C Builder_MEMS
共130个文件
o:30个
d:21个
crf:20个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 94 浏览量
2022-09-24
20:09:13
上传
评论
收藏 2.54MB RAR 举报
温馨提示
MEMs sample programs ST
资源推荐
资源详情
资源评论
收起资源包目录
MEMS.rar_C Builder_MEMS (130个子文件)
LIS302DL.uvgui_Tripleh.bak 149KB
LIS302DL.uvgui_Gebre.bak 136KB
LIS302DL.uvgui_user.bak 78KB
LIS302DL.uvgui_mgnc.bak 72KB
LIS302DL.uvgui_huchen.bak 66KB
LIS302DL_uvproj.bak 17KB
LIS302DL_uvopt.bak 13KB
LIS302DL.cspy.bat 1KB
config.c 27KB
system_stm32f4xx.c 21KB
main.c 12KB
stm32f4xx_it.c 7KB
Nav_fun.c 4KB
Matrix.c 3KB
Data_Acq.c 2KB
.cproject 37KB
.cproject 20KB
stm32f4xx_tim.crf 405KB
main.crf 396KB
stm32f4_discovery_lis302dl.crf 395KB
stm32f4xx_it.crf 394KB
stm32f4xx_rcc.crf 394KB
stm32f4xx_spi.crf 390KB
data_acq.crf 388KB
stm32f4_discovery.crf 387KB
stm32f4xx_gpio.crf 387KB
system_stm32f4xx.crf 386KB
stm32f4xx_exti.crf 386KB
stm32f4xx_syscfg.crf 385KB
misc.crf 385KB
mat.crf 35KB
matrix.crf 24KB
nav_fun.crf 22KB
ins_at_work.crf 16KB
ins_algo.crf 16KB
config.crf 3KB
acc_data_aqu.crf 18B
stm32f4_discovery_lis302dl.d 4KB
stm32f4_discovery.d 4KB
stm32f4xx_syscfg.d 4KB
stm32f4xx_it.d 3KB
stm32f4xx_gpio.d 3KB
stm32f4xx_exti.d 3KB
stm32f4xx_tim.d 3KB
stm32f4xx_spi.d 3KB
stm32f4xx_rcc.d 3KB
system_stm32f4xx.d 3KB
main.d 3KB
data_acq.d 3KB
misc.d 3KB
matrix.d 371B
mat.d 347B
ins_at_work.d 345B
nav_fun.d 332B
ins_algo.d 232B
startup_stm32f4xx.d 115B
acc_data_aqu.d 50B
config.d 41B
LIS302DL.dbgdt 5KB
LIS302DL_LIS302DL.dep 54KB
LIS302DL.dep 16KB
LIS302DL.dni 1KB
LIS302DL.ewd 24KB
LIS302DL.ewp 26KB
LIS302DL.eww 162B
LIS302DL.uvgui.Gebre 136KB
Data_Acq.h 9KB
stm32f4xx_conf.h 4KB
main.h 2KB
stm32f4xx_it.h 2KB
Nav_header.h 1KB
Matrix.h 1KB
nav_fun.h 540B
LIS302DL.htm 52KB
LIS302DL.uvgui.huchen 66KB
stm32f4xx_flash.icf 1KB
ExtDll.iex 19B
LIS302DL.elf.launch 5KB
LIS302DL.launch 4KB
stm32_flash.ld 5KB
LIS302DL.lnp 753B
stm32f4xx.lsl 15KB
startup_stm32f4xx.lst 90KB
LIS302DL.map 97KB
SysTick.map 30KB
LIS302DL.uvgui.mgnc 65KB
stm32f4xx_tim.o 552KB
stm32f4xx_rcc.o 485KB
stm32f4xx_spi.o 457KB
stm32f4_discovery_lis302dl.o 447KB
stm32f4xx_it.o 442KB
stm32f4xx_gpio.o 441KB
main.o 439KB
stm32f4_discovery.o 433KB
stm32f4xx_exti.o 432KB
data_acq.o 430KB
stm32f4xx_syscfg.o 429KB
misc.o 427KB
system_stm32f4xx.o 425KB
stm32f4xx_tim.o 189KB
共 130 条
- 1
- 2
资源评论
我虽横行却不霸道
- 粉丝: 75
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功