Question: PART 1 : Use PORTB and 7 - segment display to show the numbers 0 through 9 . The shown number should be incremented every

PART 1:
Use PORTB and 7-segment display to show the numbers 0 through 9. The shown number should be incremented every 1 second using a delay generated using TIMERI.
Use if statements to decode the numbers, example:
If (counter ==0)
PORTB =03F;0b00111111- number 0
else if (counter ==1)
PORTB =006;0b00000110- number 1
PART 2:
In the circuit used in PARTl, use an interrupt instead of the timer to increment the number. The number should be incremented anytime the push button is pressed, You can specify any event type. Use INTI pin as a source of interrupt.
PART 1 : Use PORTB and 7 - segment display to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!