/**
@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.zip_MOTION mems_speed mems_startup
共23个文件
h:3个
c:3个
launch:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 166 浏览量
2022-09-22
23:41:52
上传
评论
收藏 46KB ZIP 举报
温馨提示
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.
资源详情
资源评论
资源推荐
收起资源包目录
MEMS.zip (23个子文件)
MEMS
TrueSTUDIO
.metadata
Link
LIS302DL
stm32_flash.ld 5KB
.settings
com.atollic.truestudio.debug.hardware_device.prefs 222B
LIS302DL.elf.launch 5KB
.project 5KB
.cproject 20KB
main.c 12KB
stm32f4xx_conf.h 4KB
stm32f4xx_it.h 2KB
system_stm32f4xx.c 21KB
.DS_Store 6KB
main.h 2KB
MDK-ARM
LIS302DL.uvopt 14KB
LIS302DL.uvproj 18KB
stm32f4xx_it.c 7KB
TASKING
.metadata
Link
LIS302DL
LIS302DL.launch 4KB
.project 3KB
.cproject 37KB
TASKING
stm32f4xx.lsl 15KB
EWARM
stm32f4xx_flash.icf 1KB
LIS302DL.ewp 26KB
LIS302DL.ewd 24KB
LIS302DL.eww 162B
readme.txt 4KB
共 23 条
- 1
邓凌佳
- 粉丝: 65
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0