初级会员

- 积分
- 145
- 金钱
- 145
- 注册时间
- 2021-9-15
- 在线时间
- 74 小时
|
发表于 2023-2-10 09:57:53
|
显示全部楼层
初始化对了吗?
void ATT7022E_init(void)
{
SPI_Config();
Write_Att7022(0xD3,0x0000);//rest
Delay_us(2);
Write_Att7022(0xC3,0x000000);//清除校表数据
Write_Att7022(0xc9,0x00005A);//使能校表
//Wr_Dat(0xC5,0x000000); //关闭同步
Write_Att7022(0x01,0xB97E); //配置模式寄存器
Write_Att7022(0x03,0xF884); //EMUcfg 读后清零 0xF884 和功率有关 F984
Write_Att7022(0x02,0x0200); //电流增益1 电压8
//Write_Att7022(0x30,0x0000); // 关闭所有中断
Write_Att7022(0x31, 0x343F); //模拟模块寄存器 //0x343F |
|