Download presentation
Presentation is loading. Please wait.
Published byKory Hunter Modified over 9 years ago
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.