444光立方电路图及程序Word文件下载.docx
- 文档编号:16790177
- 上传时间:2022-11-26
- 格式:DOCX
- 页数:10
- 大小:1.21MB
444光立方电路图及程序Word文件下载.docx
《444光立方电路图及程序Word文件下载.docx》由会员分享,可在线阅读,更多相关《444光立方电路图及程序Word文件下载.docx(10页珍藏版)》请在冰豆网上搜索。
三极管放大电路:
总原理图:
3.5焊接实物图
元器件清单:
名称
数量
大LED灯
70个☑
AT89S52
1片☑
按键
1☑
9013
16个
102排阻
2个☑
1K电阻
20pF瓷片电容
12MHz晶振
1个☑
10uF电容
330电阻
1个
4.7K电阻
3.3C语言程序
#include<
reg51.h>
#defineucharunsignedchar
voiddelay100ms(uchardata1ms)
{uchari,j,m;
for(i=0;
i<
data1ms;
i++)
for(j=0;
j<
110;
j++)
for(m=0;
m<
100;
m++)
;
}
voiddisp(ucharceng,ucharlie1,ucharlie2)
{
delay100ms(7);
P1=ceng;
P2=lie1;
P0=lie2;
voidmain(void)
{unsignedcharhang,shu1;
unsignedcharcodeC1[][16]={
{0x07,0x0B,0x0D,0x0E,0x0E,0x0C,0x08,0x00,0x00,0x08,0x0C,0x0E,0x0C,0x08,0x00,0x00},
{0x08,0x0C,0x0E,0x0C,0x08,0x00,0x00,0x08,0x0C,0x0E,0x0C,0x08,0x00,0x00,0x08,0x0C},
{0x0E,0x0E,0x0E,0x0E,0x0E,0x0E,0x0E,0x0E,0x0E,0x0E,0x0E,0x0E,0x0E,0x0E,0x0E,0x0E},
{0x0C,0x08,0x00,0x00,0x08,0x0C,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x0C,0x0E,0x0F,0x0E,0x0C,0x08,0x00},
{0x00,0x00,0x00,0x00,0x00,0x0D,0x0D,0x0D,0x05,0x09,0x09,0x09,0x0D,0x0D,0x0D,0x05},
{0x09,0x09,0x09,0x00,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09},
{0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09}
};
unsignedcharcodeL1[][16]={
{0xFF,0xFF,0xFF,0xFF,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x96,0x96,0x96,0x96,0x96},
{0x96,0x96,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC},
{0x01,0x03,0x07,0x0F,0x8E,0x8C,0x88,0x80,0x00,0x00,0x00,0x10,0x30,0x70,0x70,0x60},
{0x60,0x60,0x60,0x60,0x60,0x60,0x60,0xCC,0x0F,0x33,0x66,0xCC,0xF0,0x33,0x66,0xCC},
{0x66,0x33,0xF0,0xCC,0x66,0x33,0xF0,0xCC,0xCC,0xCC,0xCC,0xCC,0x60,0x60,0x60,0x60},
{0xE8,0x74,0x32,0x11,0x00,0x06,0x66,0x60,0x60,0x60,0x00,0x00,0x06,0x66,0x60,0x60},
{0x60,0x00,0x00,0x00,0x80,0x40,0x20,0x20,0x20,0x60,0x62,0x60,0x30,0x10,0x80,0xC0},
{0x60,0x60,0x60,0x60,0x64,0x60,0x30,0x10}
//{0x01,0x02,0x04,0x08,0x80,0x40,0x20,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},//列扫描
unsignedcharcodeL2[][16]={
{0xFF,0xFF,0xFF,0xFF,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x69,0x69,0x69,0x69,0x69},
{0x69,0x69,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0x33,0x33,0x33,0x33,0x33,0x33,0x33},
{0x00,0x00,0x00,0x00,0x00,0x08,0x88,0xC8,0xE8,0xF0,0x71,0x31,0x11,0x10,0x04,0x06},
{0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x33,0xF0,0xCC,0x66,0x33,0x0F,0xCC,0x66,0x33},
{0x66,0xCC,0x0F,0x33,0x66,0xCC,0x0F,0x33,0x33,0x33,0x33,0x33,0x06,0x06,0x06,0x06},
{0x8E,0x47,0x23,0x11,0x00,0x00,0x00,0x06,0x06,0x06,0x66,0x60,0x00,0x00,0x06,0x06},
{0x06,0x66,0x60,0x00,0x08,0x0C,0x06,0x66,0x06,0x06,0x06,0x06,0x03,0x01,0x00,0x08},
{0x04,0x64,0x06,0x06,0x06,0x06,0x03,0x01}
//{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x04,0x08,0x80,0x40,0x20,0x10}
while
(1)
{
for(hang=0;
hang<
8;
hang++)
{for(shu1=0;
shu1<
16;
shu1++)
disp(C1[hang][shu1],L1[hang][shu1],L2[hang][shu1]);
//for(hang=0;
1;
//{
//for(shu1=0;
shu1++)
//{shu2=0;
//disp(C1[shu2][shu2],L1[hang][shu1],L2[hang][shu1]);
//}
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 444 立方 电路图 程序
![提示](https://static.bdocx.com/images/bang_tan.gif)