文件名称:ADXL345加速度
文件大小:1.21MB
文件格式:RAR
更新时间:2016-09-28 20:11:02
adxl345
加速度STC12底层程序勾股定理求 // 加速的X轴用来算俯仰角;Y轴算横滚角 u16 Gx; u16 Gy; u16 Gz; float Gxangle; float Gyangle; GVALUE ADXL345_GetValue(void) { Gx = (u16)ADXL345ReadData(0xA6,XL345_DATAX1); Gx <<= 8; Gx += (u16)ADXL345ReadData(0xA6,XL345_DATAX0); Gy = (u16)ADXL345ReadData(0xA6,XL345_DATAY1); Gy <<= 8; Gy += (u16)ADXL345ReadData(0xA6,XL345_DATAY0); Gz = (u16)ADXL345ReadData(0xA6,XL345_DATAZ1); Gz <<= 8; Gz += (u16)ADXL345ReadData(0xA6,XL345_DATAZ0); if(Gx > 0x01FF)
【文件预览】:
ADXL345中文PDF.pdf
加速度计test
----Sources()
--------SCI.h(214B)
--------ATD.c(906B)
--------sd_mmc_spi.h(529B)
--------CRG.h(121B)
--------PWM.c(879B)
--------Vectors.c(2KB)
--------SCI.c(1KB)
--------datapage.c(67KB)
--------ISR.c(8KB)
--------ATD.h(85B)
--------derivative.h(262B)
--------PWM.h(234B)
--------Start12.c(22KB)
--------CRG.c(550B)
--------ECT.c(749B)
--------sd_mmc_spi.c(1KB)
--------ISR.h(3KB)
--------ECT.h(83B)
--------includes.h(359B)
--------main.c(5KB)
----prm()
--------burner.bbl(3KB)
--------Project.prm(3KB)
----Project.mcp_0_backup.zip(85KB)
----C_Layout.hwl(855B)
----TBDML.ini(2KB)
----Full_Chip_Simulation.ini(1KB)
----Project.mcp(57KB)
----Default.mem(161B)
----Project.mcp_1_backup.zip(86KB)
----cmd()
--------TBDML_Reset.cmd(60B)
--------Full_Chip_Simulation_Startup.cmd(59B)
--------TBDML_Erase_unsecure_hcs12.cmd(3KB)
--------TBDML_Vppoff.cmd(77B)
--------Full_Chip_Simulation_SetCPU.cmd(59B)
--------Full_Chip_Simulation_Reset.cmd(60B)
--------Full_Chip_Simulation_Preload.cmd(60B)
--------TBDML_Startup.cmd(59B)
--------Full_Chip_Simulation_Postload.cmd(59B)
--------TBDML_Preload.cmd(60B)
--------TBDML_Vppon.cmd(78B)
--------TBDML_Postload.cmd(59B)
----Project_Data()
--------CWSettingsWindows.stg(4KB)
--------Standard()
----bin()
--------Project.abs(177KB)
--------Project.map(130KB)
--------Project.abs.s19(2KB)
--------Project.xpr(100B)
--------Project.abs.phy(2KB)