Efficiency, clarity, and compactness define our medium red 7-segment display's purpose. It's designed to be your reliable solution for clear and impactful messaging, even when space is at a premium.
A
A
Hardware Overview
How does it work?
UT-M 7-SEG R Click is based on two medium-size red JSS-5611BUB-21s, ultra-thin single-digit numeric displays from Ningbo Junsheng Electronics. This high-intensity and reliable blue source color device is made with Indium-Gallium-Nitride light-emitting diode conducting material. It features low current operation, high light output, excellent character appearance, and is mechanically rugged. The display can work on 5V and 3.3V and has a common anode as its internal design. It consists of seven red LED segments that
form an 8 number and the eighth segment as a decimal point, or DP. The communication between the host MCU and the UT-M 7-SEG R Click is established via an industry-standard shift-register-plus-latch-type serial interface and the MAX6969, 16-port constant-current LED driver from Analog Devices. This driver has a 4-wire serial interface using four inputs and a data output. The output-enable input (OE) gates to all 16 outputs ON and OFF and is fast enough to be used as a PWM input for LED intensity control. The
constant-current outputs are programmed together to around 15mA using a single external resistor. This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the PWR SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. Also, this Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used as a reference for further development.
Features overview
Development board
PIC32MZ Clicker is a compact starter development board that brings the flexibility of add-on Click boards™ to your favorite microcontroller, making it a perfect starter kit for implementing your ideas. It comes with an onboard 32-bit PIC32MZ microcontroller with FPU from Microchip, a USB connector, LED indicators, buttons, a mikroProg connector, and a header for interfacing with external electronics. Thanks to its compact design with clear and easy-recognizable silkscreen markings, it provides a fluid and immersive working experience, allowing access anywhere and under
any circumstances. Each part of the PIC32MZ Clicker development kit contains the components necessary for the most efficient operation of the same board. In addition to the possibility of choosing the PIC32MZ Clicker programming method, using USB HID mikroBootloader, or through an external mikroProg connector for PIC, dsPIC, or PIC32 programmer, the Clicker board also includes a clean and regulated power supply module for the development kit. The USB Micro-B connection can provide up to 500mA of current, which is more than enough to operate all onboard
and additional modules. All communication methods that mikroBUS™ itself supports are on this board, including the well-established mikroBUS™ socket, reset button, and several buttons and LED indicators. PIC32MZ Clicker is an integral part of the Mikroe ecosystem, allowing you to create a new application in minutes. Natively supported by Mikroe software tools, it covers many aspects of prototyping thanks to a considerable number of different Click boards™ (over a thousand boards), the number of which is growing every day.
Microcontroller Overview
MCU Card / MCU
Architecture
PIC32
MCU Memory (KB)
1024
Silicon Vendor
Microchip
Pin count
64
RAM (Bytes)
524288
Used MCU Pins
mikroBUS™ mapper
Take a closer look
Click board™ Schematic
Step by step
Project assembly
Track your results in real time
Application Output via Debug Mode
1. Once the code example is loaded, pressing the "DEBUG" button initiates the build process, programs it on the created setup, and enters Debug mode.
2. After the programming is completed, a header with buttons for various actions within the IDE becomes visible. Clicking the green "PLAY" button starts reading the results achieved with the Click board™. The achieved results are displayed in the Application Output tab.
Software Support
Library Description
This library contains API for UT-M 7-SEG R Click driver.
Key functions:
utm7segr_generic_write
- This function writes a desired number of data bytes starting from the selected register by using SPI serial interfaceutm7segr_display_state
- This function turns display on and offutm7segr_display_number
- This function is used to show the number on the display.
Open Source
Code example
This example can be found in NECTO Studio. Feel free to download the code, or you can copy the code below.
/*!
* @file main.c
* @brief UT-M7-SEGR Click example
*
* # Description
* The demo application shows basic usage of the UT-M 7-SEG display.
*
* The demo application is composed of two sections :
*
* ## Application Init
* Configuring clicks and log objects.
* Settings the click in the default configuration.
*
* ## Application Task
* Draws numbers from 0 to 99 on the screen.
*
* @author Stefan Ilic
*
*/
#include "board.h"
#include "log.h"
#include "utm7segr.h"
static utm7segr_t utm7segr;
static log_t logger;
void application_init ( void ) {
log_cfg_t log_cfg; /**< Logger config object. */
utm7segr_cfg_t utm7segr_cfg; /**< Click config object. */
/**
* Logger initialization.
* Default baud rate: 115200
* Default log level: LOG_LEVEL_DEBUG
* @note If USB_UART_RX and USB_UART_TX
* are defined as HAL_PIN_NC, you will
* need to define them manually for log to work.
* See @b LOG_MAP_USB_UART macro definition for detailed explanation.
*/
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, "---- Application Init ----" );
// Click initialization.
utm7segr_cfg_setup( &utm7segr_cfg );
UTM7SEGR_MAP_MIKROBUS( utm7segr_cfg, MIKROBUS_1 );
err_t init_flag = utm7segr_init( &utm7segr, &utm7segr_cfg );
if ( init_flag == SPI_MASTER_ERROR ) {
log_error( &logger, " Application Init Error. " );
log_info( &logger, " Please, run program again... " );
for ( ; ; );
}
utm7segr_default_cfg ( &utm7segr );
log_info( &logger, " Application Task " );
}
void application_task ( void ) {
log_info( &logger, "---- Number counter ----" );
for ( uint8_t cnt = 0; cnt < 100; cnt++ ) {
utm7segr_display_number( &utm7segr, cnt, UTM7SEGR_DOT_LEFT );
Delay_ms( 500 );
}
}
void main ( void ) {
application_init( );
for ( ; ; ) {
application_task( );
}
}
// ------------------------------------------------------------------------ END