CH375數據測試

你好,我在測試PC與單片機通信時,用的是提供的test.c程序.為什么我一運行PC端程序,通用串口總線中的 USB CH372/CH375就會消失(應該是斷開了吧),此時出現下面的錯誤: CH372/CH375 Bulk Data Test Program V1.1 , Copyright (C) W.ch 2004.12 test data correctness *** Load DLL: CH375DLL.DLL *** CH375OpenDevice: 0# *** Step-1: test data correctness: 10000000 times, random length and data S1-T2-C22 CH375ReadData return error, length=18... S1-T3-C23 CH375WriteData return error, length=0... S1-T0-C24 CH375WriteData return error, length=0... S1-T1-C25 CH375WriteData return error, length=0... S1-T2-C26 CH375WriteData return error, length=0... S1-T3-C27 CH375WriteData return error, length=0... S1-T0-C28 CH375WriteData return error, length=0... S1-T1-C29 CH375WriteData return error, length=0... S1-T2-C30 CH375WriteData return error, length=0... S1-T3-C31 CH375WriteData return error, length=0... S1-T0-C32 CH375WriteData return error, length=0... S1-T1-C33 CH375WriteData return error, length=0... S1-T2-C34 CH375WriteData return error, length=0... S1-T3-C35 CH375WriteData return error, length=0... S1-T0-C36 CH375WriteData return error, length=0... S1-T1-C37 CH375WriteData return error, length=0... S1-T2-C38 CH375WriteData return error, length=0... S1-T3-C39 CH375WriteData return error, length=0... S1-T0-C40 CH375WriteData return error, length=0... S1-T1-C41 CH375WriteData return error, length=0... S1-T2-C42 CH375WriteData return error, length=0... S1-T3-C43 CH375WriteData return error, length=0... S1-T0-C44 CH375WriteData return error, length=0... S1-T1-C45 CH375WriteData return error, length=0... S1-T2-C46 CH375WriteData return error, length=0... S1-T3-C47 CH375WriteData return error, length=0... S1-T0-C48 CH375WriteData return error, length=0... S1-T1-C49 CH375WriteData return error, length=0... S1-T2-C50 CH375WriteData return error, length=0... S1-T3-C51 CH375WriteData return error, length=0... S1-T0-C52 CH375WriteData return error, length=0... S1-T1-C53 CH375WriteData return error, length=0... S1-T2-C54 CH375WriteData return error, length=0... S1-T3-C55 CH375WriteData return error, length=0... S1-T0-C56 CH375WriteData return error, length=0... S1-T1-C57 CH375WriteData return error, length=0... S1-T2-C58 CH375WriteData return error, length=0... S1-T3-C59 CH375WriteData return error, length=0... S1-T0-C60 CH375WriteData return error, length=0... S1-T1-C61 CH375WriteData return error, length=0... S1-T2-C62 CH375WriteData return error, length=0... S1-T3-C63 CH375WriteData return error, length=0... S1-T0-C64 CH375WriteData return error, length=0... S1-T1-C65 CH375WriteData return error, length=0... S1-T2-C66 CH375WriteData return error, length=0... Cnt= 67, Len=64, Data: 21H,07H,6CH,7FH,B3H,3CH... 這是怎么回事啊?怎么會斷開呢?

從您發(fā)的測試結果可以看出 前22次寫成功了,但是第21次的讀沒成功,后面的寫都沒成功,您的下位機或是usb線可能有點問題,換個屏蔽線試試.


還有一種情況就是你的單片機可能在第22次的時候復位,出現斷開的情況!


沒有給單片機復位信號阿。我換了幾根USB線,還是這樣的問題,為什么啊


首先如果是模擬I/O口操作CH372的話,你需要去檢查下你的時序上面有沒有錯誤,按照你說的現象,更像是你操作時序上面有問題,因為我們的CH732芯片有復位命令(0X05),當你時序上面出問題的話,可能將0X05的數據當作命令發(fā)下去了,這樣的話,372的就復位掉了。同時,你可以在USB和372之間多飛幾根地線,這樣的話可以更好的抗干擾


我也是這個問題,除了工作模式寫進去反回正常外,其它情況都返回0X5F,驅動已經安上,但工作不正常,你們是怎么解決的,能否說一下你們的處理方法。


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

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