This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SN74HC595: 近期在第三方买的芯片失控

Part Number: SN74HC595

左边那颗芯片是之前买的,右边这颗是新买的,

新买的这颗不能像之前的那颗正常控制,感觉程序时序没有问题

求助

for(i=0;i<8;i++)
{
  if(dat&0x80){
    IO_595_SI_1;
  }else{
    IO_595_SI_0;
  }
  
  nop();
  dat <<= 1;
  
  IO_595_SCK_0;
  nop();
  IO_595_SCK_1;
  nop();
}

IO_595_RCK_0;
nop();
IO_595_RCK_1;

 

====

新做的板子贴的是右面那颗芯片,不能正常控制,换了之前买的芯片后就正常了,反之把新的芯片拆下来换到原来的板子上也不能正常控制

单片机是stm32,72M主频,三个控制端口都是推挽输出,初始高电平输出