Question: 2. [6 marks] Write a program to continuously read inputs from PORTA. If the input is an even number, the program outputs zero to PORTB.

 2. [6 marks] Write a program to continuously read inputs from

2. [6 marks] Write a program to continuously read inputs from PORTA. If the input is an even number, the program outputs zero to PORTB. If the input is an odd number, the program accesses the shown lookup table using this input and outputs the corresponding value to PORTB. Assume that inputs read from PORTA are always between 0 and 7. Value 13 34 56 92

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 Databases Questions!