用定時器顯示怎么temp1 = Pc8591_Read();是0啊? Pc8591_Read()不放在定時器正常!
unsigned char Pc8591_Read(void){ //pcf8591讀數(shù)據(jù)函數(shù) unsigned char temp; IIC_Start(); // iic協(xié)議 IIC_SendByte(0x91); IIC_WaitAck(); //delay_ms(1); somenop; temp = IIC_RecByte(); IIC_Ack(0); IIC_Stop();
return temp; }
還有請問用它測正弦和三角波頻率測試思路是什么哦?(雖然不能測高頻)
|