Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

8x8 matrix disply using scaning method only for learning porpuse

Code:
#include <REGX51.H>
#include<delay.h>
void framescaning(unsigned char,int);                     
void framescaning(unsigned char k,int m)         
      {
      unsigned char b[] = {0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};
      P2 = b[m];
      P0 = ~k;
      delay(1);     }
void main()

{
P1 =0x00;
P0 =0x00;
P2_0 = 0x00;

   while(1)
   {
 unsigned int n,z=0;
unsigned char i=0;
unsigned char a[] = {0x18,0x24,0x20,0x18,0x04,0x04,0x38,0x00};
for (n=0; n<8; n++)
{
framescaning( a[n] ,z );
z++;

} }   }

Comments

There are no comments to display.

Part and Inventory Search

Blog entry information

Author
thannara123
Read time
1 min read
Views
484
Last update

More entries in Uncategorized

Share this entry

Back
Top