作业帮 > 综合 > 作业

谁能给我解释一下74hc595走马灯程序中这两句话是什么意思

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/10 05:35:42
谁能给我解释一下74hc595走马灯程序中这两句话是什么意思
#include //51芯片管脚定义头文件
#include //内部包含延时函数 _nop_();
#define uchar unsigned char
#define uint unsigned int
uchar code DAT[8]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
sbit SDATA_595=P1^0; //串行数据输入
sbit SCLK_595 =P1^1; //移位时钟脉冲
sbit RCK_595 =P1^2; //输出锁存器控制脉冲
uchar temp;
//
main()
{
SCLK_595=0;
RCK_595=1;
while(1)
{
uchar i;
for (i=0; i
temp=temp