全球最实用的IT互联网信息网站!

AI人工智能P2P分享&下载搜索网页发布信息网站地图

当前位置:诺佳网 > 电子/半导体 > 存储技术 >

TDC_GP22模块的状态寄存器为0x0408,粗值计算溢出

时间:2024-08-07 11:10

人气:

作者:admin

标签: 单片机  TDC-GP22 

导读:TDC_GP22状态寄存器读数(0x0408 )错误,0x0408 0x0600 0...

最近在使用tdc_gp22模块做超声波测距项目,但是在写入0x70,0x05,并产生中断后,读取状态寄存器的的值为0x0408,。按数据手册里的描述,0x0408 & 0x0600 > 0 时即错误。

wKgaomay4_2Adu1TAACscufiKrk544.png

状态寄存器

		//这里是我的寄存器配置
		uint8_t config_reg0[]={0x80,0xA3,0x0B,0x68,0x11};
		uint8_t config_reg1[]={0x81,0x21,0x44,0x59,0x22};
		uint8_t config_reg2[]={0x82,0xA0,0x23,0x00,0x33};
		uint8_t config_reg3[]={0x83,0xD8,0xA2,0x48,0x44};
		uint8_t config_reg3[]={0x83,0xD8,0x51,0x03,0x44};
		uint8_t config_reg4[]={0x84,0x20,0x00,0x4A,0x55};
		uint8_t config_reg5[]={0x85,0x40,0x00,0x00,0x66};
		uint8_t config_reg6[]={0x86,0xC0,0xC0,0x60,0x77};	
		

		tdc_Write(config_reg0,sizeof(config_reg0));HAL_Delay(10);
		tdc_Write(config_reg1,sizeof(config_reg1));HAL_Delay(10);
		tdc_Write(config_reg2,sizeof(config_reg2));HAL_Delay(10);
		tdc_Write(config_reg3,sizeof(config_reg3));HAL_Delay(10);				
		tdc_Write(config_reg4,sizeof(config_reg4));HAL_Delay(10);
		tdc_Write(config_reg5,sizeof(config_reg5));HAL_Delay(10);
		tdc_Write(config_reg6,sizeof(config_reg6));HAL_Delay(10);				

wKgZomay5JaANq_UAADylLNELUY980.png

超声波测量流程

温馨提示:以上内容整理于网络,仅供参考,如果对您有帮助,留下您的阅读感言吧!
相关阅读
本类排行
相关标签
本类推荐

CPU | 内存 | 硬盘 | 显卡 | 显示器 | 主板 | 电源 | 键鼠 | 网站地图

Copyright © 2025-2035 诺佳网 版权所有 备案号:赣ICP备2025066733号
本站资料均来源互联网收集整理,作品版权归作者所有,如果侵犯了您的版权,请跟我们联系。

关注微信