Question: Steps: Implement the Proteus circuit from Lab 3 with only one Seven Segment Decoder ( 7 4 4 8 or 4 5 1 1 )
Steps:
Implement the Proteus circuit from Lab with only one Seven Segment Decoder or
Take the chronometer code from Lab and make changes to it so that the chronometer can
work with only one Seven Segment Decoder but works fine for all digit. Hint: if you get stuck,
search the concept on google
int ones ;
int tens ;
int hundreds ;
int state ;
void main
PCON.OSCF ;
TRISB x;
PORTB x;
TRISA xF;
while
ifRAbit
ones ;
tens ;
hundreds ;
else if RAbit
state state;
whileRAbit
ifstate
delayms;
ones;
ifones
ones ;
tens;
iftens
tens ;
hundreds;
PORTA hundreds;
ifhundreds
ones ;
tens ;
hundreds ;
PORTA hundreds;
PORTB ones tens;
int ones ;
int tens ;
int hundreds ;
int state ;
int times ;
int i ;
void main
PCON.OSCF ;
TRISB x;
PORTB x;
TRISA xF;
while
ifRAbit
ones ;
tens ;
hundreds ;
else if RAbit
state state;
whileRAbit
ifstate
for i ; i
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
