3片595级联 输出口偶尔会有电平跳动的情况 是什么问题 驱动如下
DWORD OutStatus = g_cap.wOutStatus<<8;
HC595_SCLK_L;
HC595_RCLK_L;
for(WORD i=0;i<24;i++)
{
if(OutStatus&0x80000000)HC595_DS_H;
else HC595_DS_L;
asm(" NOP");
HC595_SCLK_L;
asm(" NOP");
asm(" NOP");
HC595_SCLK_H;
OutStatus = OutStatus<<1;
}
HC595_RCLK_L;
asm(" NOP");
asm(" NOP");
asm(" NOP");
HC595_RCLK_H;
asm(" NOP");
asm(" NOP");
asm(" NOP");
HC595_RCLK_L; |