CH376初始化總是失敗

CH376初始化總是失敗,輸入0x55,輸出0xEA。求大神看看問題在哪?使用STC15F2K32S2單片機27M晶振。

/* ?òCH376???ü?? */

void WriteCH376Cmd(uchar mCmd)?

{

CH376_DATA_DIR_OUT();

CH376_DATA_DAT_OUT(mCmd);

CH376_A0=1;

DelaymS(10);

CH376_WR=0;

DelaymS(10);

CH376_WR=1;

//CH376_A0=0;

//CH376_DATA_DIR_IN(); ?

//DelayuS(10);

}




void WriteCH376Data(uchar mData)??

{

CH376_DATA_DIR_OUT();

CH376_DATA_DAT_OUT(mData);?

CH376_A0=0;

DelaymS(10);

CH376_WR=0;

DelaymS(10);

CH376_WR=1;?

//CH376_DATA_DIR_IN();?

//DelayuS(10);

}




uchar ReadCH376Data( void )??

{

ucharmData;

//DelaymS(150);

CH376_DATA_DIR_IN();

CH376_A0=0;

DelaymS(10);

CH376_RD=0;?

DelaymS(10);

mData=CH376_DATA_DAT_IN( );?

CH376_RD=1;?

return(mData);

}


你這組數(shù)據(jù)好像是數(shù)據(jù)線上有問題,你再實驗幾組數(shù)據(jù)看看返回值可以判斷一下


只有登錄才能回復(fù),可以選擇微信賬號登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频