/*
Assuming an 8x8 display
Rows are connected to P0, and Columns are connected to P2
*/
unsigned char DisplayBuffer[8];
code unsigned char ColumnTable[]=
{0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80};
void ISRTimer0 (void) interrupt 1 // ISR Timer 0
{
P0=DisplayBuffer[DisplayCount];
P2=ColumnTable[DisplayCount];
if (DisplayCount<7) DisplayCount++; else DisplayCount=0;
}
/*
Assuming an 8x8 display
Rows are connected to P0, and Columns are connected to P2
*/
unsigned char DisplayBuffer[4000];
code unsigned char ColumnTable[]=
{0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80};
unsigned int Ctr1=0;
void ISRTimer0 (void) interrupt 1 // ISR Timer 0
{
P0=DisplayBuffer[DisplayCount+Ctr1];
P2=ColumnTable[DisplayCount];
if (DisplayCount<7) DisplayCount++; else DisplayCount=0;
}
void ISRTimer1 (void) interrupt 3 // ISR Timer 3
{
if (Ctr1<(4000-1)) Ctr1++; else Ctr1=0;
}
/*
Be sure to write the data into Display Buffer between locations 8..to..(4000-8)
so that you can see leading and trailing blanks.
*/
Thanks for alot for your nice reply.the_balistic said:Hii sn burki,
You will find using c language more easy then assembler (TRUS ME) . If you use
mide, than it' perefect because this software has been atached by SDCC.
http://www.opcube.com/home.html (this the link if you want to upgrade MIDE)
if you wanna learn about programming c you can use this link :
http://www.mytutorialcafe.com/
After you learn you will find that C is more easy than assembler.
I've already develop the moving message but using AVR and my compiler code
vision avr, if you want the reference I can send it to you.
thank KiranVSutarKiranVSutar said:Hi sn_burki,
You can write the above code in Assembly.
If you do not understand the above code, then post your display routine (ISR).
I will modify it to scroll the messages, and post it back here.
Please see to it that you comment the code, so that it will be easy for others (also) to understand it.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?