This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

pga2311的通信方式是SPI模式吗?

Other Parts Discussed in Thread: PGA2311

这是我们编的,为什么没有信号

void SPI_write(uint date)
{
char i;
pga2311_scl=0;
pga2311_cs=0;


for (i=0;i<16;i++)
{
if (date & 0x8000)
{
pga2311_sda=1;
delay_us(5);
}
else
{
pga2311_sda=0;
delay_us(5);
}
date <<=1;
delay_us(5);
pga2311_scl=1;
delay_us(5);
pga2311_scl=0;
delay_us(5);
}


pga2311_scl=0;
delay_us(5);
pga2311_cs=1;
delay_us(5);
}