need help for the segment display: from 0 to F, such as 0,1,2,3,4,5,6,7,8,9,A,B,
ID: 2248201 • Letter: N
Question
need help for the segment display: from 0 to F, such as 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. it`s assembly C
start from #include<stdio.h>
#include<stdlib.h>
#include<stdint.h>
#include<stdbool.h>
#include<TM4C123GH6PM.h>
thank you
Unlock Port TMAC 123G PDZ must be unlockod, other Fil the GPI0 Pin Configuration Table wise the dp pin can not work Check L OUT seg. a PA2 Digital 0-GPIO PA4 Digital 0-GPIO OUT seg_c dW PC4-1 Digital le 0-GPIO-OUT PC5 || Digital 10-GPIO OUT Digital 0-GPIO PC7 DigitalPIO OUT Digital 0-GPIO Digital 0-GPIO Digital 0-GPIO Digital 0-GPIO Digital 0-GPIO Digtal 0-GPIO segif PC6 seg.9 seg.dpPD7 Convert above configurat tion into registers Fnnctionn Re Value in binary Value in Hex Go to topExplanation / Answer
Hexadecimal codes for displaying numbers on seven segment with their equivalent binary codes are as follows
0 =0x3f(00111111)
1=0x06(00000110)
2=0x5b(00111011)
3=0x4f(01001111)
4=0x66(01100110)
5=0x6d(01101101)
6=0x7d(01111101)
7=0x07(00000111)
8=0x7f(01111111)
9=0x6f(01101111)
A=0x77(01110111)
B=0x7f(01111111)
C=0x39(00111001)
D=0x3f(00111111)
E=0x79(01111001)
F=0x71(01110001)
use these codes for displaying on seven segment common anode and if you want for common cathode simply complement their binary equivalent and write them in hexadecimal form.