Led matrix with HT1632C controller (1)

by luca
6 comments

Few weeks ago I brought from SureElectronics a led matrix display.

The product is made by 4 8×8 led matrices and an Holtek HT1632C controller:

In this first tutorial, I’m going to show how to communicate with control chip…

COMMUNICATION PROTOCOL

HT1632C chip implements a protocol similar to SPI; you can control the chip through 3 pins:

  • CS (chip select)
  • DATA
  • WR (write)

CS pin has to be low to enable the communication; you can connect up to 4 boards in a chain configuration. In the back of the board you can use a dip switch to configure the address of each display:

The connector has 4 chip select pins you can use to activate the particular display with that address:

DATA pin is used for serial communication, both input and output. The HT1632C chip has an internal pull-up resistor on this pin.

WR pin controls when a write occurs: DATA pin is read by HT1632C on a rising edge (from logic level 0 to logic level 1) of this pin.

If you need also to read data from the chip, you can use the RD pin that – like WR pin – controls when HT1632C writes the requested bits on DATA pin.

ADDRESSING

HT1632C has an internal RAM memory organized in 64×4 bits and an output pin corresponds to each memory cell. A logic level 1 in the cell corresponds to an high output (i.e. led on).

Using READ and WRITE commands you can change RAM content and as a consequence the state of output pins. Both the commands support single access to a cell memory and the ability to change, with a single operation, the whole content of the RAM.

CONCLUSIONS

In this first tutorial I gave a brief introduction of the display and the control chip; in the next ones I’m going to show how to control it using your Arduino… stay tuned!

Related Posts

6 comments

Francesco Tuesday October 2nd, 2012 - 05:49 PM

Gentile. volevo ordinare HT1632C red led ma non trovo l’ordine. Grazie

Reply
luca Tuesday October 2nd, 2012 - 08:22 PM

Ciao Francesco,

ecco il link al prodotto che ho acquistato:
http://www.sureelectronics.net/goods.php?id=1121

Reply
Corrado Wednesday December 5th, 2012 - 07:36 AM

Ciao anche io sto utilizzando lo stesso integrato ma vorrei pilotare LED con assorbimento di circa 70mA l’uno. Mi sapete dire per cortesia la sequenza di accenSione della matrice? Mi spiego meglio: HT1632C pilota in parallelo il display per colonne? Ovvero per accendere la prima colonna comanda in parallelo le righe e COM1? Grazie mille!! Corrado

Reply
luca Wednesday December 5th, 2012 - 10:43 AM

Ciao Corrado,

se guardi il datasheet è spiegato con un disegno, cmq ti confermo che accende per colonne
bye

Reply
Ale Sunday October 13th, 2013 - 09:13 AM

Ciao Luca,
ho da poco acquistato un paio di 16×32 bicolor della Sure (qui il datasheet http://www.sure-electronics.net/download/DE-DP14112_Ver1.1_EN.pdf ). Ha due connettori da 16 pin. Non trovo come collegare i pin del tuo esempio al connettore in questione. Oltre ai pin CS, DATA, WR ho un CLCK (ed ovviamente i NC, GND e+5V). Inoltre la board non ha il DIP switch. Come posso collegare l’arduino UNO in mio possesso con la mia matrice Led per usare i tuoi esempi ? ti ringrazio per l’aiuto. AleC

Reply
luca Wednesday October 23rd, 2013 - 09:42 PM

Ciao Ale,

purtroppo alcuni test condotti da un altro amico del sito hanno evidenziato come la tua matrice Sure non sia compatibile con i miei esempi…mi dispiace!

Reply

Leave a Comment

four × 4 =