- Sat Sep 02, 2017 1:14 am
#196013
About the single-chip microcomputer, I used http://www.kynix.com/Detail/265161/C8051F340.html, and the P0 port was set to be the output drain opening (SDA, SCL was connected to the pull resistance to 3.3 V).
Pin definitions are as follows:
sbit SDA = P0^6; //SDA ON P0.6
sbit SCL = P0^7; //SCL ON P0.7
The main program is as follow:
temp=0xa0;
while(1) //
{
temp<<=1;
SDA=CY;
NOP4();
SCL=1;
NOP4();
SCL=0;
//}
The SCL was normal in the measurement, but the waveform of SDA was always in low power.
Has anyone met this before? Need your help,please...
Pin definitions are as follows:
sbit SDA = P0^6; //SDA ON P0.6
sbit SCL = P0^7; //SCL ON P0.7
The main program is as follow:
temp=0xa0;
while(1) //
{
temp<<=1;
SDA=CY;
NOP4();
SCL=1;
NOP4();
SCL=0;
//}
The SCL was normal in the measurement, but the waveform of SDA was always in low power.
Has anyone met this before? Need your help,please...