Answered step by step
Verified Expert Solution
Link Copied!

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

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

Students also viewed these Databases questions

Question

Identify the two factors in the two-factor theory of emotion.

Answered: 1 week ago

Question

List the advantages and disadvantages of the pay programs. page 505

Answered: 1 week ago