谁能给我解释一下74hc595走马灯程序中这两句话是什么意思#include //51芯片管脚定义头文件#include //内部包含延时函数 _nop_();#define uchar unsigned char#define uint unsigned intuchar code DAT[8]={0xfe,0xfd,0xfb,0xf7
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/02 05:23:37
![谁能给我解释一下74hc595走马灯程序中这两句话是什么意思#include //51芯片管脚定义头文件#include //内部包含延时函数 _nop_();#define uchar unsigned char#define uint unsigned intuchar code DAT[8]={0xfe,0xfd,0xfb,0xf7](/uploads/image/z/9494214-6-4.jpg?t=%E8%B0%81%E8%83%BD%E7%BB%99%E6%88%91%E8%A7%A3%E9%87%8A%E4%B8%80%E4%B8%8B74hc595%E8%B5%B0%E9%A9%AC%E7%81%AF%E7%A8%8B%E5%BA%8F%E4%B8%AD%E8%BF%99%E4%B8%A4%E5%8F%A5%E8%AF%9D%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D%23include+%2F%2F51%E8%8A%AF%E7%89%87%E7%AE%A1%E8%84%9A%E5%AE%9A%E4%B9%89%E5%A4%B4%E6%96%87%E4%BB%B6%23include+%2F%2F%E5%86%85%E9%83%A8%E5%8C%85%E5%90%AB%E5%BB%B6%E6%97%B6%E5%87%BD%E6%95%B0+_nop_%28%29%3B%23define+uchar+unsigned+char%23define+uint+unsigned+intuchar+code+DAT%5B8%5D%3D%7B0xfe%2C0xfd%2C0xfb%2C0xf7)
谁能给我解释一下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