Presentation is loading. Please wait.

Presentation is loading. Please wait.

Department of Electronic & Electrical Engineering Seven segment display Subroutines.

Similar presentations


Presentation on theme: "Department of Electronic & Electrical Engineering Seven segment display Subroutines."— Presentation transcript:

1 Department of Electronic & Electrical Engineering Seven segment display Subroutines.

2 Department of Electronic & Electrical Engineering Seven Segment LED Display

3 Department of Electronic & Electrical Engineering Seven Segment Display Internal Circuit Common Anode Kingbright SA08-11EWA

4 Department of Electronic & Electrical Engineering Circuit for 7seg display Pull up resistors

5 Department of Electronic & Electrical Engineering Binary  seven segment display ● We have 4 bits of input (hex number). ● We want to display the corresponding character on the 7seg display. ● Each segment can be represented by a bit of a binary number. ● The problem is to lookup the correct 7seg code for each 4bit number. ● This can be done using a lookup table.

6 Department of Electronic & Electrical Engineering

7 Lookup table using programmed return. ; setup stuff here..... ; w contains the 4 bit number movlw 4,w call conversion ; w now contains the 7 segment code ;....more stuff here ; convert 4bit number in w into a seven segment code. conversion: ; this is just a label for the assembler addwf PCL ; add w to the PC (jump) retlw B'10111110' ; 0 return 7 seg code. retlw B'00001100' ; 1 retlw B'11011010' ; 2 retlw B'11110010' ; 3 retlw B'11100100' ; 4


Download ppt "Department of Electronic & Electrical Engineering Seven segment display Subroutines."

Similar presentations


Ads by Google