Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Oleg Sergeev
07/27/04 03:07
Read: 1472 times
St. Petersburg
Russia


 
#74953 - RE: Need help with LED display
Responding to: Ehigie Ogbebor's previous message
hi,

i intend to use a 7x5 matrix for each charaster while the complete board will have at least 32 or 48 columns.

Do you mean 32 or 48 characters when say columns? By other words, complete board will contain 160 or 240 columns, right?
If so, I can suggest you to use Allegro LED drivers production.
For example, 32-bit serial input latched drivers UCN5832 or UCN5833. For 32 characters you have to buy 32*5/32 = 5 devices. Outputs of these ICs should be connected to 160 columns of LED Dot Matrixes through resistors.
As well, you need with 7 power source drivers which may be done with transistors. These source drivers provide power to seven rows of all matrixes.

Now the idea is high speed refresh of your LED Dot Matrixes: you shift out 160 bits into UCN, switch off all transistors, strobe shifted data into output latches then switch on the first row. After some time, do the same for second row, then for third, etc upto seven. After all, start the cycle again from the first row.

There is speed requirement: I suggest to keep refresh rate at 100Hz or above, i.e. you should run refresh routine at each 1/(7*100) =~1,5 ms. Shifting of 160 bits takes some time:
REFRESH_DATA	EQU	0x40
RSH_DAT		EQU	P1.0
RSH_CLK		EQU	P1.1
; ...

RSH_MATRIX:
	MOV	R0,#REFRESH_DATA
RSH_NEXT_BYTE:
	MOV	A,@R0
	MOV	R7,#8
RSH_NEXT_BIT:
	CLR	RSH_CLK	
	RRC	A
	MOV	RSH_DAT,C
	SETB	RSH_CLK	
	DJNZ	R7,RSH_NEXT_BIT
	INC	R0
	CJNE	R0,#(REFRESH_DATA+20),RSH_NEXT_BYTE
With standard 8051 it takes above 1200 machive cycles. As result, with OSC=12MHz such refresh subroutine "eats" 1,2ms and, as result, you lost all productivity of MCU (no time to do something else). Solutions:
- use crystal/oscillator with higher frequency;
- use high productivity MCU (with x2 mode etc);
- use UART at mode 0 (shift register) to shift out refresh data;
- use external CPLD+RAM for refresh task;
- use "parallel refresh".
At last suggestion, I mean that you may replace each UCN5832 with four 6A595 (or TPIC6A595). As result, you will have 20 ICs. Then you group them to 4 streams with 5 chips in each. Now, refresh routine clocks out the nibble instead of bit:
REFRESH_DATA	EQU	0x40
RSH_OUT		EQU	P2		; 4 bits are used
RSH_CLK		EQU	P1.1

; ...

RSH_MATRIX:
	MOV	R0,#REFRESH_DATA
RSH_NEXT_BYTE:
	MOV	A,@R0
	CLR	RSH_CLK
	MOV	RSH_OUT,A
	SETB	RSH_CLK
	SWAP	A
	CLR	RSH_CLK
	MOV	RSH_OUT,A
	SETB	RSH_CLK
	INC	R0
	CJNE	R0,#(REFRESH_DATA+20),RSH_NEXT_BYTE
This routine takes about 220 machive cycles only.

As well, you should think about power: each row contains 160 LEDs; each LED sink about 50mA (or more) in peak. So row current is about 8A.

i have just completed reading the assembly language and instruction set of the 8052
Please, I need all the help i can get as i hope to complete this project within the next one month.


One month? Good luck then. Schematic, PCB, programming...

Regards,
Oleg

List of 62 messages in thread
TopicAuthorDate
Need help with LED display      Ehigie Ogbebor      07/27/04 02:01      
   RE: Need help with LED display      Oleg Sergeev      07/27/04 03:07      
      RE: Need help with LED display        Benjamin DAMET      07/27/04 03:46      
      RE: Need help with LED display      Ehigie Ogbebor      07/29/04 10:17      
         RE: Need help with LED display      Oleg Sergeev      07/30/04 05:01      
            RE: Need help with LED display      Ehigie Ogbebor      08/02/04 11:34      
               RE: Need help with LED display      Oleg Sergeev      08/03/04 01:28      
                  RE: Need help with LED display      Oleg Sergeev      08/03/04 01:40      
                     RE: Need help with LED display      Ehigie Ogbebor      08/03/04 05:30      
                        RE: Need help with LED display      Oleg Sergeev      08/03/04 07:00      
                           RE: scroll      Erik Malund      08/03/04 08:10      
                           RE: Need help with LED display      Ehigie Ogbebor      08/03/04 09:29      
                              RE: Need help with LED display      Oleg Sergeev      08/03/04 09:43      
                                 RE: Need help with LED display      Ehigie Ogbebor      08/03/04 09:57      
                                 RE: Need help with LED display      Ehigie Ogbebor      08/06/04 06:05      
                                 READY FOR SCHEMATICS      Ehigie Ogbebor      08/09/04 08:31      
                                    RE: READY FOR SCHEMATICS      Oleg Sergeev      08/10/04 00:59      
                                       RE: READY FOR SCHEMATICS      Ehigie Ogbebor      08/10/04 11:05      
                                       RE: READY FOR SCHEMATICS      Kai Klaas      08/10/04 20:27      
                                          RE: READY FOR SCHEMATICS      Erik Malund      08/11/04 06:16      
                                             RE: READY FOR SCHEMATICS      Oleg Sergeev      08/11/04 07:47      
                                                RE: READY FOR SCHEMATICS      Erik Malund      08/11/04 07:57      
                                                   construction of marix      Ehigie Ogbebor      08/13/04 08:33      
                                                      RE: construction of marix      Kai Klaas      08/13/04 18:50      
                                                      RE: construction of marix      Oleg Sergeev      08/16/04 00:30      
                                    No reason to shout!      Kai Klaas      08/10/04 07:35      
                              RE: Need help with LED display      Erik Malund      08/03/04 09:48      
                                 RE: Need help with LED display      Ehigie Ogbebor      08/03/04 10:02      
                                    RE: Need help with LED display      Erik Malund      08/03/04 10:36      
                                 RE: Need help with LED display      Bartosz Wucke      08/11/04 14:04      
                                    RE: Need help with LED display      Erik Malund      08/11/04 14:28      
         RE: Need help with LED display      Steve M. Taylor      07/30/04 09:59      
   Multiplexing scheme      Kai Klaas      07/30/04 09:20      
      RE: Multiplexing scheme      Ehigie Ogbebor      08/02/04 11:22      
         RE: Multiplexing scheme      Kai Klaas      08/02/04 17:24      
            RE: Multiplexing scheme      Bartosz Wucke      08/03/04 00:10      
            RE: Multiplexing scheme      Ehigie Ogbebor      08/03/04 08:48      
               RE: Multiplexing scheme      Erik Malund      08/03/04 08:55      
                  RE: Multiplexing scheme      Ehigie Ogbebor      08/03/04 09:46      
                     RE: Multiplexing scheme      Erik Malund      08/03/04 09:52      
                        RE: Multiplexing scheme      Ehigie Ogbebor      08/03/04 10:16      
                           RE: Multiplexing scheme      Erik Malund      08/03/04 10:37      
   RE: Need help with LED display      Ehigie Ogbebor      08/16/04 11:07      
      RE: Need help with LED display      Erik Malund      08/16/04 11:12      
      RE: Need help with LED display      Oleg Sergeev      08/17/04 00:35      
         RE: Need help with LED display      Ehigie Ogbebor      08/18/04 05:34      
            RE: Need help with LED display      Oleg Sergeev      08/18/04 06:41      
               RE: Need help with LED display      Erik Malund      08/18/04 06:50      
               RE: Need help with LED display      Ehigie Ogbebor      08/19/04 10:44      
                  RE: Need help with LED display      Oleg Sergeev      08/20/04 02:38      
                     RE: 100Hz      Erik Malund      08/20/04 06:13      
   RE: Need help with LED display      Kai Klaas      08/21/04 11:52      
      RE: Need help with LED display      Oleg Sergeev      08/23/04 00:18      
      RE: Need help with LED display      Oleg Sergeev      08/23/04 07:31      
      RE: Need help with LED display      Oleg Sergeev      08/23/04 07:33      
         RE: Need help with LED display      Kai Klaas      08/23/04 15:58      
            RE: Need help with LED display      Oleg Sergeev      08/24/04 01:15      
      how to do calculations      Ehigie Ogbebor      08/26/04 11:09      
         RE: how to do calculations      Oleg Sergeev      08/27/04 01:23      
            RE: how to do calculations      Ehigie Ogbebor      08/27/04 11:31      
               RE: how to do calculations      Erik Malund      08/27/04 12:05      
               RE: how to do calculations      Oleg Sergeev      08/28/04 03:49      

Back to Subject List