谁能给我解释一下74hc595走马灯程序中这两句话是什么意思#include //51芯片管脚定义头文件#include //内部包含延时函数 _nop_();#define uchar unsigned char#define uint unsigned intuchar code DAT[8]={0xfe,0xfd,0xfb,0xf7

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/03 20:58:44
谁能给我解释一下74hc595走马灯程序中这两句话是什么意思#include //51芯片管脚定义头文件#include //内部包含延时函数 _nop_();#define uchar unsigned char#define uint unsigned intuchar code DAT[8]={0xfe,0xfd,0xfb,0xf7

谁能给我解释一下74hc595走马灯程序中这两句话是什么意思#include //51芯片管脚定义头文件#include //内部包含延时函数 _nop_();#define uchar unsigned char#define uint unsigned intuchar code DAT[8]={0xfe,0xfd,0xfb,0xf7
谁能给我解释一下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

谁能给我解释一下74hc595走马灯程序中这两句话是什么意思#include //51芯片管脚定义头文件#include //内部包含延时函数 _nop_();#define uchar unsigned char#define uint unsigned intuchar code DAT[8]={0xfe,0xfd,0xfb,0xf7
temp=temp<<1; 会把最高位元移入CY内
SDATA_595=CY;把CY的值给P1^0,也就是准备好资料(0或1)给595