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

TASK3
In this task you will display a 3-bit binary number depending on the analog input voltage value.
LEDs should be 111 for highest analog voltage (all three LEDs are on) and 000 for the lowest
(all three LEDs are off).
Configure ADC to be in single conversion mode. Use TIMER1 and
HAL_TIM_PeriodElapsedCallback to perform a single conversion with each timer interrupt.
Timer1 update interrupt period must be 20ms.
Application notes:
Use CubeMX configuration tool and HAL Library for this task
Use Timer1 interrupt callback to start a single ADC conversion every 20ms
Use ADC in single conversion mode and restart conversion inside Timer interrupt
callback.
Component list:
1x STM32F401,3x LEDs, 1x potentiometer, jumper cables
 TASK3 In this task you will display a 3-bit binary number

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!