3.2.3、C语言源程序:
#include<reg52.h>
unsigned char code
dispbitcode[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,
0x6f};
unsigned char dispbuf[4];
unsigned char getdata;
unsigned int temp;
sbit ST=P3^0;
sbit OE=P3^1;
sbit EOC=P3^2;
sbit CLK=P3^3;
sbit P17=P1^7;