2416 led matrix from shure electronics
bkbovard
Posts: 5
i bought this 2416 led matrix pcb from shure electronics in china
it has spi interface and i can't figure how to get it to work
anybody have an idea
thanks bkb
·
it has spi interface and i can't figure how to get it to work
anybody have an idea
thanks bkb
·
Comments
It took me a moment to understand the reasoning for multiple Chip Select lines, but I see that the board is designed to have a configurable address by using the dip switch so you can stack several of these cards together on a common data bus.
You'll probably have to write your own driver for this board, I see they refer to the interface as 'SPI like', but unlike std spi they provide different clocks for reading and writing.
The timing diagrams are your friend here - use them as a reference of how to create the signals you need.
I did something similar with a 16x32 led matrix from Futurelec.· The interface is not the same,· but perhaps my bit banging code may give you some idea.· Please keep in mind that ws my first ever Propeller program, so it's probably not the most efficient ;-)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (Agent420) : 8/21/2009 10:58:58 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
this model has memory based led driver where there larger dissplays are raster driven
Also, was your original question about how to interface this with the propeller chip?
If you are asking in general about the display, a different Forum may get more results for you.
Roger
later bkb
CON
·· _CLKMODE = XTAL1 + PLL1X·····'·will run at 16x
·· _XINFREQ = 5_000_000
·············
PUB main | q, i
·· dira[noparse][[/noparse]0..2]~~
·· com
·· i := 0·
·· repeat·
···· q := l[noparse][[/noparse]i]
···· outa[noparse][[/noparse]0] := 1
···· outa[noparse][[/noparse]0] := 0
······· repeat 15
········· outa[noparse][[/noparse]1] := 0
········· outa[noparse][[/noparse]2] := (q >>= 1) & 1
········· outa[noparse][[/noparse]1] := 1
····· i++
····· if i == 192
········ i := 0···
pri com | w, i
···· i := 0
···· repeat 6
······ w := h[noparse][[/noparse]i]
······ outa[noparse][[/noparse]0] := 1
······ waitcnt(cnt + 10000)
······ outa[noparse][[/noparse]0] := 0
······ repeat 13
········· outa[noparse][[/noparse]1] := 0
········· outa[noparse][[/noparse]2] := (w >>= 1) & 1
········· outa[noparse][[/noparse]1] := 1
······ i++
······ waitcnt(cnt + 10000)
dat
h· word %0_0000_0000_0010
·· word %0_0011_0100_0010
·· word %0_0010_1000_0010
·· word %0_1000_0000_0010
·· word %0_1100_0000_0010
·· word %0_1100_0101_0010
··
l· word %1111_0000000_1010, %1111_1000000_1010, %1111_0100000_1010, %1111_1100000_1010
·· word %1111_0010000_1010, %1111_1010000_1010, %1111_0110000_1010, %1111_1110000_1010
·· word %1111_0001000_1010, %1111_1001000_1010, %1111_0101000_1010, %1111_1101000_1010
·· word %1111_0011000_1010, %1111_1011000_1010, %1111_0111000_1010, %1111_1111000_1010
·· word %1111_0000100_1010, %1111_1000100_1010, %1111_0100100_1010, %1111_1100100_1010
·· word %1111_0010100_1010, %1111_1010100_1010, %1111_0110100_1010, %1111_1110100_1010
·· word %1111_0001100_1010, %1111_1001100_1010, %1111_0101100_1010, %1111_1101100_1010
·· word %1111_0011100_1010, %1111_1011100_1010, %1111_0111100_1010, %1111_1111100_1010
·· word %1111_0000010_1010, %1111_1000010_1010, %1111_0100010_1010, %1111_1100010_1010
·· word %1111_0010010_1010, %1111_1010010_1010, %1111_0110010_1010, %1111_1110010_1010
·· word %1111_0001010_1010, %1111_1001010_1010, %1111_0101010_1010, %1111_1101010_1010
·· word %1111_0011010_1010, %1111_1011010_1010, %1111_0111010_1010, %1111_1111010_1010
·· word %1111_0000110_1010, %1111_1000110_1010, %1111_0100110_1010, %1111_1100110_1010
·· word %1111_0010110_1010, %1111_1010110_1010, %1111_0110110_1010, %1111_1110110_1010
·· word %1111_0001110_1010, %1111_1001110_1010, %1111_0101110_1010, %1111_1101110_1010
·· word %1111_0011110_1010, %1111_1011110_1010, %1111_0111110_1010, %1111_1111110_1010
·· word %1111_0000001_1010, %1111_1000001_1010, %1111_0100001_1010, %1111_1100001_1010
·· word %1111_0010001_1010, %1111_1010001_1010, %1111_0110001_1010, %1111_1110001_1010
·· word %1111_0001001_1010, %1111_1001001_1010, %1111_0101001_1010, %1111_1101001_1010
·· word %1111_0011001_1010, %1111_1011001_1010, %1111_0111001_1010, %1111_1111001_1010
·· word %1111_0000101_1010, %1111_1000101_1010, %1111_0100101_1010, %1111_1100101_1010
·· word %1111_0010101_1010, %1111_1010101_1010, %1111_0110101_1010, %1111_1110101_1010
·· word %1111_0001101_1010, %1111_1001101_1010, %1111_0101101_1010, %1111_1101101_1010
·· word %1111_0011101_1010, %1111_1011101_1010, %1111_0111101_1010, %1111_1111101_1010··
·· word %0000_0000000_1010, %0000_1000000_1010, %0000_0100000_1010, %0000_1100000_1010
·· word %0000_0010000_1010, %0000_1010000_1010, %0000_0110000_1010, %0000_1110000_1010
·· word %0000_0001000_1010, %0000_1001000_1010, %0000_0101000_1010, %0000_1101000_1010
·· word %0000_0011000_1010, %0000_1011000_1010, %0000_0111000_1010, %0000_1111000_1010
·· word %0000_0000100_1010, %0000_1000100_1010, %0000_0100100_1010, %0000_1100100_1010
·· word %0000_0010100_1010, %0000_1010100_1010, %0000_0110100_1010, %0000_1110100_1010
·· word %0000_0001100_1010, %0000_1001100_1010, %0000_0101100_1010, %0000_1101100_1010
·· word %0000_0011100_1010, %0000_1011100_1010, %0000_0111100_1010, %0000_1111100_1010
·· word %0000_0000010_1010, %0000_1000010_1010, %0000_0100010_1010, %0000_1100010_1010
·· word %0000_0010010_1010, %0000_1010010_1010, %0000_0110010_1010, %0000_1110010_1010
·· word %0000_0001010_1010, %0000_1001010_1010, %0000_0101010_1010, %0000_1101010_1010
·· word %0000_0011010_1010, %0000_1011010_1010, %0000_0111010_1010, %0000_1111010_1010
·· word %0000_0000110_1010, %0000_1000110_1010, %0000_0100110_1010, %0000_1100110_1010
·· word %0000_0010110_1010, %0000_1010110_1010, %0000_0110110_1010, %0000_1110110_1010
·· word %0000_0001110_1010, %0000_1001110_1010, %0000_0101110_1010, %0000_1101110_1010
·· word %0000_0011110_1010, %0000_1011110_1010, %0000_0111110_1010, %0000_1111110_1010
·· word %0000_0000001_1010, %0000_1000001_1010, %0000_0100001_1010, %0000_1100001_1010
·· word %0000_0010001_1010, %0000_1010001_1010, %0000_0110001_1010, %0000_1110001_1010
·· word %0000_0001001_1010, %0000_1001001_1010, %0000_0101001_1010, %0000_1101001_1010
·· word %0000_0011001_1010, %0000_1011001_1010, %0000_0111001_1010, %0000_1111001_1010
·· word %0000_0000101_1010, %0000_1000101_1010, %0000_0100101_1010, %0000_1100101_1010
·· word %0000_0010101_1010, %0000_1010101_1010, %0000_0110101_1010, %0000_1110101_1010
·· word %0000_0001101_1010, %0000_1001101_1010, %0000_0101101_1010, %0000_1101101_1010
·· word %0000_0011101_1010, %0000_1011101_1010, %0000_0111101_1010, %0000_1111101_1010·