Question: TASK 3 In this task you will display a 3 - bit binary number depending on the analog input voltage value. LEDs should be 1
TASK
In this task you will display a bit binary number depending on the analog input voltage value.
LEDs should be for highest analog voltage all three LEDs are on and for the lowest
all three LEDs are off
Configure ADC to be in single conversion mode. Use TIMER and
HALTIMPeriodElapsedCallback to perform a single conversion with each timer interrupt.
Timer update interrupt period must be
Application notes:
Use CubeMX configuration tool and HAL Library for this task
Use Timer interrupt callback to start a single ADC conversion every ms
Use ADC in single conversion mode and restart conversion inside Timer interrupt
callback.
Component list:
x STMFx LEDs, x potentiometer, jumper cables
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
