Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started