You are on page 1of 2

Microprocessor Based Systems Year 2, Semester 1 Lab 4

Seven segment displays are used to display numbers and some English characters. In this exercise you have to light up each segment of the SSD in the following pattern, one by one. a, b, c, d, e, f, g, dp Find the 7 segment display panel from the Tools menu of PIC Simulator IDE. You can see 4 SSDs there. Select one of your choice and click on the set up button immediately below your SSD. Set the input signal level to Inverted Levels. Enable the SSD via PORTA.B0 and set it to inverted Level.(Change the value of the box in pale orange color at the bottom-center to PORTA.B0). Now assign the pins of PORTD in ascending order to segments from a to dp, so that segment a is connected to PORTD pin 0, segment b is connected to PORTD pin 1 and so on. Create a new project in MPLAB and write a program to achieve the above objective and build it. Load the .hex file to PIC Simulator and observe the output. Load the program on to the demonstration board and demonstrate to an instructor.

Hint: Use the assembly instructions you learnt in previous lab exercises.

Schematic Diagram of 7-Segment Display in the Demonstration Board

You might also like