如题:Qn8027+ATMEGA8的芯片,通过读取寄存器06的数据为0x41证明IIC通讯是对的!但是按照官方的初始化例程,接收端QN8025怎么也发不出声音,说明:接收端QN8025模块是好的!QN8027也是买的模块!
下面是初始化化的代码:
void QN8027_Init(void)
{///*
QN8027_Send[0x00] = 0x00;
QN8027_Send[0x01] = 0x81;
I2C_Data_Write(0x58, &QN8027_Send[0], 2);
QN8027_delay(200);
QN8027_Send[0x00] = 0x03;
QN8027_Send[0x01] = 0x90; //xt1,xt2外部晶振12MHZ
QN8027_Send[0x02] = 0x21;
I2C_Data_Write(0x58, &QN8027_Send[0], 3);
QN8027_Send[0x00] = 0x00;
QN8027_Send[0x01] = 0x41;
I2C_Data_Write(0x58, &QN8027_Send[0], 2);
QN8027_Send[0x00] = 0x00;
QN8027_Send[0x01] = 0x41;
I2C_Data_Write(0x58, &QN8027_Send[0], 2);
QN8027_delay(200);
}
不知道哪位朋友搞过这个芯片求指点! |