CuriousOne
- 3rd January 2021, 09:54
Hello. There are many LED dot matrix displays using this chip. Compared to to MAX7219, there are fewer parts to solder, and whole thing is updated at once, no need to deal with cascaded IC. Anyone mated this IC to PBP?
aerostar
- 3rd January 2021, 12:42
Hi
Have a look here http://www.picbasic.co.uk/forum/showthread.php?t=11871
I played with Sure modules way back - late 2000s and used 2 modules to make a nice large clock and where the digits change by scrolling upwards with the new one scrolling in from the bottom.
It took a while to design the dot matrix data for the characters and for doing the vertical scroll.
But it all started from the above link.
I see the chip is EOL. But modules are still available on Ebay though not the Sure ones I used, but as the current Ebay modules use the same chip and control lines, the code should work.
I will have a look for my old early codes (not well documented!) and perhaps post one, it will be a few days !!
CuriousOne
- 3rd January 2021, 13:01
Thanks!
Chip might be EOL, but it's clones are still widely made.
The main reason I want to use it, that I have some compact 8x8 led dot matrix modules (2mm dot pitch) and I want to make 32x8 array from them. If I use MAX7219, the IC itself is larger than the dot matrix module, so PCB tracing will be harder, and also it will occupy more space, so I decided to seek an alternative.
aerostar
- 5th January 2021, 10:06
Here is test code - it just counts 0 - 9 in clock type format wth colon between 2nd and 3rd digit.
eg 55:55 66:66 etc
I have ordered a display module from Ebay - so will see if current code works. Delivery probably a few weeks though.
'************************************************* ***************
'* Name : 0832test.bas *
'* Author : aerostar *
'* Notice : Copyright (c) 2021 [select VIEW...EDITOR OPTIONS] *
'* : All Rights Reserved *
'* Date : 04/01/2021 *
'* Version : 1.0 *
'* Notes : *
'* : *
'************************************************* ***************
'************************************************* ***************
'************************************************* ***************
'Sure electronics module 0832 led matrix
'
'connect RD on module to +5v
'connect OSC on module to GND
'Sure electronics module 0832 led matrix
'
'displays XX:XX COUNTING 0 TO 9
DEFINE OSC 20
@ device PIC16F628A,HS_OSC,BOD_ON,MCLR_ON
TRISA = 0
TRISB = 0
'change your ports to suit
CS var PORTB.7 'Connect this to CS1 (set dip switchs to 1 = on 2/3/4 = off)
WR var PORTA.4 'connect this to wr ACTUALLY CLOCK BUT HOLTEK CALL IT WR
DATALINE var PORTA.1 'connect this to DATA
'connect RD on module to +5v
'connect OSC on module to GND
ALOOP VAR BYTE
COUNTER var byte
ADDRESS var byte
COMD var byte
ENDBIT var bit
CHARACTERS var byte [5]
SENDDOTS var byte
NUMBER VAR BYTE
' NUMBERS 0 TO 9 COLUMNS
data @0, %00000000,%01111100,%10001010,%10010010,%10100010, %01111100,%00000000,%00000000
data @8, %00000000,%00100010,%01000010,%11111110,%00000010, %00000010,%00000000,%00000000
DATA @16,%00000000,%01000010,%10000110,%10001010,%10010 010,%01100010,%00000000,%00000000
DATA @24,%00000000,%10000100,%10000010,%10100010,%10110 010,%11001100,%00000000,%00000000
DATA @32,%00000000,%00011000,%00101000,%01001000,%11111 110,%00001000,%00000000,%00000000
DATA @40,%00000000,%11110100,%10100010,%10100010,%10100 010,%10011100,%00000000,%00000000
DATA @48,%00000000,%01111100,%10010010,%10010010,%10010 010,%01001100,%00000000,%00000000
DATA @56,%00000000,%10000110,%10001000,%10010000,%10100 000,%11000000,%00000000,%00000000
DATA @64,%00000000,%01101100,%10010010,%10010010,%10010 010,%01101100,%00000000,%00000000
DATA @72,%00000000,%01100100,%10010010,%10010010,%10010 010,%01111100,%00000000,%00000000
CLEAR
CMCON=7
PAUSE 500
'---------------- SENDS COMMANDS-------------------------------------
COMD = %00000100 'Comand mode
ADDRESS = %00000001 'osc on
GOSUB COMANDSEND
ADDRESS = %00000011 'led on
GOSUB comandsend
ADDRESS = %10101111 'pwm 16/16
GOSUB comandsend
ADDRESS = %00011000 'RC int clk sourse on
GOSUB comandsend
'---------- SENDS IMAGE DATA TO DISPLAY-----------------------------
COMD = %00000101 'Data Mode
NUMBER=0 'SET NUMBER TO 0
SHOWNUMBERS:
ADDRESS = 0 'DIG 1 0, DIG2 16, DIG3 32, DIG4 48
FOR ALOOP =0 TO 3 ' 4 DIGITS
FOR COUNTER = 0 TO 7 ' NUMBER OF COLUMNS PER DIGIT
read (NUMBER*8)+COUNTER,SENDDOTS
IF ALOOP=1 AND COUNTER = 7 THEN
SENDDOTS=%00101000 'COLON IN COLUMN 7
ENDIF
GOSUB DATASEND
ADDRESS = ADDRESS + 2 ' ADRESS INCREMENTS BY 2 EACH COLUMN
NEXT COUNTER
NEXT
PAUSE 1000
NUMBER=NUMBER+1
IF NUMBER =10 THEN
NUMBER=0
ENDIF
GOTO SHOWNUMBERS
'----------------- sends infomation to display ----------------------
DATASEND:
LOW CS
SHIFTOUT DATALINE,wr,1,[COMD\3] 'send lower 3 bits of COMD byte
SHIFTOUT DATALINE,wr,1,[ADDRESS\7] 'send lower 7 bits of adress byte
SHIFTOUT DATALINE,wr,1,[SENDDOTS] 'send led data
HIGH CS
RETURN
COMANDSEND:
LOW CS
SHIFTOUT DATALINE,wr,1,[COMD\3] 'send lower 3 bits of COMD byte
SHIFTOUT DATALINE,wr,1,[ADDRESS] 'send command byte
SHIFTOUT DATALINE,wr,1,[ENDBIT\1] 'send 1 ENDBIT
HIGH CS
RETURN
END
CuriousOne
- 5th January 2021, 17:12
Thanks!
I also ordered it, see who's will arrive faster :)
aerostar
- 16th January 2021, 10:40
Mine arrived 30mins ago Jan 16th about 10:00 UK time, - connector pins a bit bent, although packing was good. Here it is running with the code above
https://youtu.be/52boY-4e4qc
You will only be able to use the link above as it is unlisted.
Works without a connection to RD pin, SYNC and COS pads
Also looks much better with red filter in front
aerostar
- 16th January 2021, 11:30
Forgot to mention the Ebay item number for anyone interested (Other suppliers are available)
eBay item number:
401111914275
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.