Question: Create and simulate a microcontroller based circuit with following specifications. 1. Connect 8 LEDs with PORTD of the microcontroller. 2. All LEDs need to

Create and simulate a microcontroller based circuit with following specifications. 1. Connect 8 LEDs with PORTD of the microcontroller. 2. All LEDs need to be grounded through current limiting resistors of 1 K ohm. 3. While C-programming your microcontroller, define two macros: a. D1D0 which shows the last two digits of your student ID. b. D3D2 which shows the fourth last and third last digits of your student ID. For example, if student ID is 12345678 then #define D1D0 78 #define D3D2 56 4. Program the microcontroller to a. add together D1D0 and D3D2 b. Display the result of addition on 8 LEDs connected to PORTD.
Step by Step Solution
3.36 Rating (159 Votes )
There are 3 Steps involved in it
ANSWER AND STEP BY STEP EXPLANATION Step 1 Connect 8 LEDs to the PORTD of the mic... View full answer
Get step-by-step solutions from verified subject matter experts
