限时福利:在电子开发圈-公众号-首页发送“免费”,即可无限畅读本文 !!!
1、51+Proteus8.10;
2、学习ADC0832模数转换、74HC154管脚扩展、拼接点阵屏连接及驱动;
#include <intrins.h>
#include <reg52.h>
#include <stdio.h>
#define ulong unsigned long
#define uint unsigned int
#define uchar unsigned char
uchar k,i,j;
float l;
sbit sw=P3^0; //159选通开关
sbit ADCS =P3^1; //ADC0832 chip seclect
sbit ADDI =P3^3; //ADC0832 k in
sbit ADDO =P3^3; //ADC0832 k out
sbit ADCLK =P3^2; //ADC0832 clock signal
uchar dsw[20]; //存放sprintf转换字符
uchar idata value[149]; //点阵字符储存
uchar code table[]={ //字符查表
0x00,0x00,0x00,0x30,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*".",0*/
0x00,0x00