Design Guide

Sample C-program/code for NXP LPCXpresso board

Sample C-program/code for NXP LPCXpresso board

Display of numerics 0 to 9 on a 7-segment LED display

In this module a very-simple c program/code to display 0-9 on a 7-segment LED display using ARM Cortex M0 powered NXP's LPCXpresso board using 32 bit microcontroller (MCU) LPC1114F is explained.

Hardware requirements along with the board:

1. Seven segment display (Common Cathode)
2. 8-Resistors (3.3 Kilo ohms)
3. connecting wires
4. General purpose printed circuit board or a breadboard

Seven segment display:

Seven segment LED is device having seven light emitting diodes with either anode terminals (common anode ) or cathode terminals connected together to form a number '8' pattern as shown below in the picture.

To know more on 7-segment LED visit: 

and node 7

To use them you should know the pin configuration of the commercially available displays. As you must have guessed these displays should have nine pins( one for each segment + decimal point +common) but the available modules have two pins for common ground. They are internally connected. So they have total of 10 pins (see the picture below).

A 7-Segment display has 7-segments/pins na...

You've read this far — sign in to keep reading

Sign in to keep reading.

Forgot password?
OR