Vous êtes sur la page 1sur 4

For more products visit our website http://www.sunrom.

com

Document: Datasheet

Date: 8-Oct-12

Model #: 1249

Products Page: www.sunrom.com/p-1206.html

LED Matrix Display 32x8, Serial, Expandable


This LED matrix display is 32 dots wide and 8 dots in height. It is serially addressable so its very easy to interface requiring only 3 pin of any microcontroller.

RAM Address 0 First Colum Byte

RAM Address 31 Last Colum Byte

The display already has a controller which maps its 32 bytes memory to display. Your job is just to tell the display which LED has to be ON and OFF based on this memory map. There are 32 bytes in total you can write. The 1st byte represent the first colum. If you write 0xFF all LED on first colum comes on. If you write 0xFF to all 32 bytes whole display turns on. There are just three pins to address. First is CS, Chip Select, WR and DATA. To shift in serially put CS low, and put data bit on DATA pin. Then clock WR low to high.

Adding multiple Displays

On board is provision for four CS to have multiple displays. Put first display as CS1 and second to CS2 and such.

DISPLAY3 CS3 selected


Slave Mode

DISPLAY2 CS2 selected


Slave Mode

DISPLAY1 CS1 selected


Master Mode

MCU Board

More than 4 slaves


It is usually asked to us is there any limit to how many slaves I can connect? No there is no limit, Each display added needs one dedicated chip select pin from MCU. So if you have 4 display, 4 MCU pins will be used to select the particular display for writing bytes. Just consider that we have provision in cable and jumpers for upto 4 slaves. If you connect 5th one you can no longer use the 20 pin FRC Cable to select that slave. Solder a wire directly for 5 or more. For display count 5th or more slaves, remove all jumpers on board for CS and that pin shown above is chip select for the board, solder a wire to MCU for this new slave for CS control.

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Sample Application Code


We have given a sample code based on AT89S52, made in C language with Keil C51 compiler. Due to C language it can easily be ported to other target microcontrollers. It displays a TEST message on screen. Download full project code from link below. http://www.sunrom.com/files/1249.zip
S1 Sunrom LED Matrix Display 32x8 Model#1249 VCC 1 U2 AT89S52 39 38 37 36 35 34 33 32 1 2 3 4 5 6 7 8 VCC + XTAL1 C8 10uF 16V R1 10K 9 RST 31 P0.0/AD0 P0.1/AD1 P0.2/AD2 P0.3/AD3 P0.4/AD4 P0.5/AD5 P0.6/AD6 P0.7/AD7 P1.0/T2 P1.1/T2EX P1.2 P1.3 P1.4/SS P1.5/MOSI P1.6/MISO P1.7/SCK EA/VPP PSEN ALE/PROG XTAL2 GND C1 100n P2.0/A8 P2.1/A9 P2.2/A10 P2.3/A11 P2.4/A12 P2.5/A13 P2.6/A14 P2.7/A15 P3.0/RXD P3.1/TXD P3.2/INT0 P3.3/INT1 P3.4/T0 P3.5/T1 P3.6/WR P3.7/RD 21 22 23 24 25 26 27 28 10 11 12 13 14 15 16 17 29 30 40 VCC 2 3 4 5 GND +V CS DAT WR

20

19

VCC

Y1

C9 33p

11.0592

18 C10 33p

That is our AT89S52 development board through which we tested.

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Dimensions

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Vous aimerez peut-être aussi