سلام دوستان من یک تابلو روان 8*64 درست کردم که مشکلی شبیه به مشکل شما داره با این تفاوت که علاوه بر متن تمام لامپهای دیگه اما کم نور تر روشن می شن من از لچها74373ومگا16استفاده کردم خوشحال می شم کمکم کنید
اطلاعیه
Collapse
No announcement yet.
کمک در مورد تابلوی روان 8*48
Collapse
X
-
پاسخ : کمک در مورد تابلوی روان 8*48
سلام ...................
یه این لینک هم یه سر بزنید .
http://www.eca.ir/forum2/index.php?topic=17864.0
موفق باشید .دوستان! مدتی کمتر به سایت میام ..
دیدگاه
-
پاسخ : کمک در مورد تابلوی روان 8*48
نوشته اصلی توسط حسام الدینسلام ...................
یه این لینک هم یه سر بزنید .
http://www.eca.ir/forum2/index.php?topic=17864.0
موفق باشید .
#include <mega16.h>
#include <delay.h>
#define xtal 6000000
// Declare your global variables here
unsigned char i;
unsigned char j;
unsigned char k;
unsigned char n;
unsigned char r;
unsigned char lsh;
unsigned char pos;
unsigned char char1;
unsigned char char2;
unsigned char charnum;
unsigned char ar1[33][8]={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x08,0x00,0x0c,0x12,0x1e,0x02,0xfc,0xf8,
0x00,0x00,0x02,0x06,0x06,0x0f,0x3f,0x18,
0x00,0x06,0x09,0x0f,0x03,0x07,0x1e,0x0c,
0x08,0x00,0x14,0x00,0x49,0x49,0xff,0xb6,
0x16,0x0c,0x18,0x18,0x0c,0x06,0xff,0xfe,
0x02,0x06,0x06,0x06,0x06,0x06,0x07,0x07,
0x00,0x00,0x03,0x07,0x09,0x09,0x0f,0x0f,
0x00,0x00,0x02,0x06,0x06,0x0e,0x3c,0x18,
0x10,0x00,0x00,0x06,0x2f,0x31,0xff,0xfe,
0x02,0x06,0x06,0x06,0x06,0x06,0x07,0x07,
0x50,0x00,0x00,0x08,0x18,0x18,0xf8,0xf8,
0x08,0x18,0x18,0x18,0x18,0x18,0xff,0xff,
0x08,0x00,0x0c,0x12,0x1e,0x02,0xff,0xfe,
0x04,0x01,0x11,0x21,0x21,0x21,0x3f,0x1e,
0x10,0x38,0x58,0x78,0x18,0x18,0x18,0x10,
0x10,0x38,0x58,0x78,0x18,0x18,0x18,0x10,
0x13,0x34,0x3c,0x3f,0x30,0x30,0x30,0x20,
0x18,0x20,0x2c,0x18,0x30,0x30,0x60,0x40,
0x2a,0x6a,0x74,0x60,0x60,0x60,0x60,0x40,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
void main(void)
{
// Declare your local variables here
charnum=33;
charnum=charnum-4;
PORTA=0x00;
DDRA=0xFF;
PORTC=0x00;
DDRC=0xFF;
PORTB=0x00;
DDRB=0xFF;
PORTD=0xFF;
DDRD=0xFF;
while (1)
{
pos=0;
for(i=0;i<=charnum;i++)
{
lsh=8;
for(r=1;r<=8;r++)
{
lsh--;
pos++;
for(n=1;n<=33;n++)
{
for(k=0;k<=7;k++)
{
for(j=0;j<=5;j++)
{
char1=ar1[i+j][k]>>r;
char2=ar1[i+j+1][k]<<lsh;
PORTB= char1|char2;
//PORTB=0x35;
PORTD|=1<<j;
PORTD=0x00;
}
PORTA&=~(1<<k);
//PORTB&=~(1<<k);
delay_us(200);
PORTA=0xff;
//PORTB=0xFF;
}
}
}
}
}
}
دیدگاه
دیدگاه