CH438Q 芯片讀寫時(shí)序問題,INI#時(shí)鐘為高,觸發(fā)不了中斷

如題,CH438Q,讀寫數(shù)據(jù)時(shí)序問題,時(shí)鐘無法使INI#拉低

讀寫寄存器代碼如下:

UINT8?ReadCH438Data(?UINT8?addr?)
{
????u8?value;
????CH438_DATA_PORT->ODR?=?(CH438_DATA_PORT->ODR&0XFF00)|addr;
????CH438_ALE_HIGH;
????CH438_CS_LOW;
????CH438_ALE_HIGH;
????CH438_ALE_LOW;
????CH438_DataPin_IN();
????CH438_RD_LOW;
????CH438_RD_LOW;
????value?=?(uint8_t)CH438_DATA_PORT->IDR;
????CH438_RD_HIGH;
????CH438_ALE_HIGH;
????CH438_CS_HIGH;
????CH438_DataPin_OUT();
????return?value;
}
void?WriteCH438Data(?UINT8?addr,?UINT8?dat)
{
????CH438_DATA_PORT->ODR?=?(CH438_DATA_PORT->ODR&0XFF00)?|?addr;?
????CH438_ALE_HIGH;
????CH438_CS_LOW;
????CH438_ALE_HIGH;
????CH438_ALE_LOW;
????CH438_DATA_PORT->ODR?=?(CH438_DATA_PORT->ODR&0XFF00)?|?dat;?//??????
????delay_us(1);
????CH438_WR_LOW;
????CH438_WR_HIGH;
????CH438_ALE_HIGH;
????CH438_CS_HIGH;
????CH438_DataPin_OUT();
}


您好,您可以發(fā)送郵件至mj@wch.cn。這邊可以給您提供CH438? STM32單片機(jī)模擬并口的工程。


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

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