i have meet some problem with my coding in which my ADconverter output program shows the output in 7 segmant in hexadecimal number, but i want in the decimal number...can somebody help me to check my coding how to convert the hexa to decimal output? View attachment 63749
and my coding
#include <P18F4550.h>
void delay1s(unsigned char);
How is it you have only 4 connections to a 7 segment display?
I don't see any code to 'check', there is no attempt to make a conversion. You need math to convert hex to decimal and a look up table to convert decimal to 7 segment then either directly run the 7 segment with 8 pins (incl dp) or use a sipo shift register like a 74hc595 to do it with 3 pins from the mcu.