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.

c code for led dotmatrix

Status
Not open for further replies.

monikapogula

Newbie level 1
Newbie level 1
Joined
Jun 29, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
8
please help me out for writing c code for programmable scrolling message display using avr

- - - Updated - - -

please help me as soon as possible
 

@jayanth.devarayanadurga: can u post similar link for 8051 microcontroller codes if u know. the above site is excellent for pic programmer.
 

only periferal and specific mcu is different!
Your next question if you get 8051 code is for specific 8051 mcu?

Code:
do {
 for (k=0; k<StringLength+4; k++){
  for (scroll=0; scroll<(8/shift_step); scroll++) {
   for (row=0; row<8; row++){
     if(UserIP == 1) index = message[k];
     else index = default_message[k];
     temp = CharData[index-32][row];
     Buffer[row][4] = (Buffer[row][4] << Shift_Step) | (Buffer[row][3] >> (8-Shift_Step));
     Buffer[row][3] = (Buffer[row][3] << Shift_Step) | (Buffer[row][2] >> (8-Shift_Step));
     Buffer[row][2] = (Buffer[row][2] << Shift_Step) | (Buffer[row][1] >> (8-Shift_Step));
     Buffer[row][1] = (Buffer[row][1] << Shift_Step) | (Buffer[row][0] >> (8-Shift_Step));
     Buffer[row][0] = (Buffer[row][0] << Shift_Step)| (temp >> ((8-shift_step)-scroll*shift_step));
   }
   speed = 15;
   for(l=0; l<speed;l++){
     m = 1;
     for (i=0; i<8; i++) {
       Send_Data(i);
       LATB = m;
       m = m << 1;
       Delay_us(1000);
     }  // i
   } // l
  } // scroll
 } // k
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top