DotMatrix R Click-Platine
DotMatrix R Click-Platine
Overview
Das Dot Matrix R Click Board™ ist ein Anzeigegerät auf Basis eines vierstelligen Punktmatrix-Anzeigemoduls mit der Bezeichnung HCMS-3906 von Avago (Broadcom Inc.). Das Modul enthält vier 5x7-Punktmatrizen mit sehr eng beieinander liegenden, leuchtend roten Pixelelementen. Dadurch werden Zeichen sehr deutlich angezeigt. Wenn Pixel leuchten, strahlen sie eine leuchtend rote Farbe aus, wodurch die Anzeige unter allen Bedingungen lesbar ist. Jede Anzeige kann direkt mit einem Mikroprozessor verbunden werden, wodurch die Notwendigkeit umständlicher Schnittstellenkomponenten entfällt.
Die serielle IC-Schnittstelle ermöglicht die Anzeige von Informationen mit einer höheren Zeichenanzahl bei minimalen Datenleitungen. Das leicht lesbare 5x7-Pixelformat ermöglicht die Anzeige von Großbuchstaben, Kleinbuchstaben, Katakana und benutzerdefinierten Zeichen. Die leuchtend rote Anzeigematrix hat einen großen Sichtbereich und ist daher perfekt für Situationen mit schlechten Lichtverhältnissen geeignet.
How Does The Dot Matrix R Click Board™ Work?
The Dot Matrix R Click Board™ is a high performance, easy to use dot matrix display driven by on-board CMOS IC. Each display can be directly interfaced with a microprocessor, thus eliminating the need for cumbersome interface components. The serial IC interface allows higher character count information displays with a minimum of data lines. The easy to read 5x7 pixel format allows the display of upper case, lower case, Katakana, and custom user-defined characters. These displays are stackable in the x- and y-directions, making them ideal for high character count displays. Typical applications include telecommunication equipment, portable data entry devices, computer peripherals, medical equipment, test equipment, business machines, avionics, industrial controls, etc.
Featured LED display HCMS-3906 consists of LEDs that are configured as 5x7 font characters driven in groups of 4 characters per IC. Each IC consists of a 160-bit shift register (the Dot Register), two 7-bit Control Words, and refresh circuitry. The Dot Register contents are mapped on a one-to-one basis to the display. Thus, an individual Dot Register bit uniquely controls a single LED. Reset initializes the Control Registers (sets all Control Register bits to logic low) and places the display in the sleep mode. The Dot Registers are not cleared upon power-on or by Reset. After power-on, the Dot Register contents are random; however, Reset will put the display in sleep mode, thereby blanking the LEDs. The Control Register and the Control Words are cleared to all zeros by Reset. To operate the display after being Reset, load the Dot Register with logic lows. Then load Control Word 0 with the desired brightness level and set the sleep mode bit to logic high.
The Dot Register holds the pattern to be displayed by the LEDs. First RS is brought low, then CE is brought low. Next, each successive rising CLK edge will shift in the data at the DIN pin. Loading a logic high will turn the corresponding LED on; a logic low turns the LED off. When all 160 bits have been loaded, CE is brought to logic high. When CLK is next brought to logic low, new data is latched into the display dot drivers. Loading data into the Dot Register takes place while the previous data is displayed and eliminates the need to blank the display while loading data.
In a 4-character display, the 160 bits are arranged as 20 columns by 8 rows. This array can be conceptualized as four 5x8 dot matrix character locations, but only 7 of the 8 rows have LEDs. The bottom row (row 0) is not used. Thus, latch location 0 is never displayed. Column 0 controls the left-most column. Data from Dot Latch locations 0-7 determine whether or not pixels in Column 0 are turned-on or turned-off. Therefore, the lower left pixel is turned on when a logic high is stored in Dot Latch location 1. Characters are loaded in serially, with the left-most character being loaded first and the rightmost character being loaded last. By loading one character at a time and latching the data before loading the next character, the figures will appear to scroll from right to left.
The Control Register allows software modification of the IC's operation and consists of two independent 7-bit control words. Bit D7 in the shift register selects one of the two 7-bit control words. Control Word 0 performs pulse width modulation, pixel map, brightness control, peak pixel current brightness control, and sleep mode. Control Word 1 sets serial/simultaneous data out mode, and external oscillator prescaler. Each function is independent of the others.
The Dot Matrix R Click Board™ can be supplied and interfaced with both 3.3V and 5V without the need for any external components. The onboard SMD jumper labelled as VCC SEL allows voltage selection for interfacing with both 3.3V and 5V microcontrollers.
SPECIFICATIONS
Type | LED Matrix |
Applications | Dot Matrix R Click Board™ allows simple and fast development of various applications, which require displaying of characters, numbers, or both. |
On-board modules | Dot Matrix R Click Board™ uses the HCMS-3906, a high performance, easy to use alphanumeric display, from Broadcom Limited. |
Key Features | Easy to use four-digit 5x7 dot matrix display with dense and brightly lit pixel elements, interfaced directly with the microprocessor, serial input, convenient brightness controls. |
Interface | GPIO,SPI |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
PINOUT DIAGRAM
This table shows how the pinout of the Dot Matrix R Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
Register Select | RS | 1 | AN | PWM | 16 | BL | Display Blank |
Reset | RST | 2 | RST | INT | 15 | NC | |
Chip Enable | CS | 3 | CS | RX | 14 | NC | |
Clock Input | SCK | 4 | SCK | TX | 13 | NC | |
NC | 5 | MISO | SCL | 12 | NC | ||
Data IN | SDI | 6 | MOSI | SDA | 11 | NC | |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | VCC SEL | Left | Power Supply Voltage Selection 3V3/5V, left position 3v3, right position 5v |
Software Support
We provide a library for the Dot Matrix R Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
Library provides functions for parsing and communicating with device for communication and controlling pins.
Key Functions
void dotmatrixr_write_ascii ( char *ascii_data )
- Function for showing string to displayvoid dotmatrixr_generic_write ( uint8_t *tx_buf, uint8_t buf_len )
- Function for writing data to devicevoid dotmatrixr_restart ( void )
- Function for restarting device
Example Description
The application is composed of three sections :
- System Initialization - Initialization of SPI module and additional pins
- Application Initialization - Confgures device
- Application Task - Display shows 3 different data in span of 1 second
void application_task ( ) { dotmatrixr_write_ascii( &demo_t1[ 0 ] ); Delay_ms( 1000 ); dotmatrixr_write_ascii( &demo_t2[ 0 ] ); Delay_ms( 1000 ); dotmatrixr_write_ascii( &demo_t3[ 0 ] ); Delay_ms( 1000 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- SPI
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The Dot Matrix R Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Software Support
We provide a library for the Dot Matrix R Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
Library provides functions for parsing and communicating with device for communication and controlling pins.
Key Functions
void dotmatrixr_write_ascii ( char *ascii_data )
- Function for showing string to displayvoid dotmatrixr_generic_write ( uint8_t *tx_buf, uint8_t buf_len )
- Function for writing data to devicevoid dotmatrixr_restart ( void )
- Function for restarting device
Example Description
The application is composed of three sections :
- System Initialization - Initialization of SPI module and additional pins
- Application Initialization - Confgures device
- Application Task - Display shows 3 different data in span of 1 second
void application_task ( ) { dotmatrixr_write_ascii( &demo_t1[ 0 ] ); Delay_ms( 1000 ); dotmatrixr_write_ascii( &demo_t2[ 0 ] ); Delay_ms( 1000 ); dotmatrixr_write_ascii( &demo_t3[ 0 ] ); Delay_ms( 1000 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- SPI
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The Dot Matrix R Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.