fbpx

Interface Sevensegment With ARM7

Description

A seven-segment display is use to display digits from 0-9.Seven segment display is widely used in digital clocks, weight machine, Ph meters, etc.

The common configuration has an array of eight LEDs arranged to display these digits.Led is assigned a name from a to h and is identified by its name. Seven LEDs a to g are used to display the numerals while eighth led h is used to display the dot/decimal.

Direction Table

Hardware Required

  • Seven segment Display.
  • LPC21xx Microcontroller.

Circuit

Code

 #include <LPC21xx.H>
 void delay()
 {
 int i,j;
 for(i=0;i<10000;i++)
 {
 for(j=0;j<100;j++);
 }
 }
 int main()
 {
 IO0DIR=0XFFFFFFFF;
 while(1)
 {
 IO0PIN=0x3f;
 delay();
 IO0PIN=0x06;
 delay();
 IO0PIN=0x5b;
 delay();
 IO0PIN=0x4f;
 delay();
 IO0PIN=0x66;
 delay();
 IO0PIN=0x6d;
 delay();
 IO0PIN=0x7d;
 delay();
 IO0PIN=0x07;
 delay();
 IO0PIN=0x7f;
 delay();
 IO0PIN=0x67;
 delay();
 }
 }
   

Leave a Reply

Your email address will not be published. Required fields are marked *