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 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
Get step-by-step solutions from verified subject matter experts
