74HC595锁存代码 #include<reg52.h> sbit RCK=P3^5; sbit SCK=P3^6; sbit SER=P3^4; void _74hc595_(unsigned char Byte) { unsigned char i; for(i=0;i<8;i++) { SER=Byte&0x80; SCK=1; SCK=0; } RCK=1; RCK=0; }