ch341的D7-D0引腳信號

如何在D7-D0引腳上產(chǎn)生10-20μs的方波信號,望大俠賜教!?。?/p>

因為是USB數(shù)據(jù)傳輸,在數(shù)量級上是ms級的,所以達不到要求!


幾十個脈沖是可以的,但代碼比較麻煩,很難解釋,以下是API: CH341Set_D5_D0 mBuffer[0] = mCH341A_CMD_UIO_STREAM; mBuffer[1] = (UCHAR)( mCH341A_CMD_UIO_STM_OUT | iSetDataOut & 0x3F ); // 輸出數(shù)據(jù)D5-D0,位5-位0為數(shù)據(jù) mBuffer[2] = (UCHAR)( mCH341A_CMD_UIO_STM_DIR | iSetDirOut & 0x3F ); // 設(shè)定I/O方向D5-D0,位5-位0為方向數(shù)據(jù) mBuffer[3..n-1] = (UCHAR)( mCH341A_CMD_UIO_STM_OUT | iSetDataOut & 0x3F ); // 多次重復(fù)產(chǎn)生波形 mBuffer[n] = mCH341A_CMD_UIO_STM_END; // 命令包提前結(jié)束 mLength = n+1; if ( CH341WriteData( iIndex, mBuffer, &mLength ) ) { // 寫出數(shù)據(jù)塊


多謝小二,但我需要的是64K個脈沖


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

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