Question: WITHOUT USING HAL LIBRARY Consider the system described below and answer the subsequent question. System Configuration: Inputs: SW 1 and SW 2 switches Output: LED

WITHOUT USING HAL LIBRARY
Consider the system described below and answer the subsequent question.
System Configuration:
Inputs: SW1 and SW2 switches
Output: LED1
Key Hardware Configurations:
SW1 is connected to PA1 using positive logic.
SW2 is connected to PA2 using negative logic.
LED1 is connected to PC4 with negative logic.
Software Logic:
The system implements two switches to do the following:
Pressing SW1 start LED1 toggling (blinking) every 5.0s. The LED1
continues to toggle even after SW1 is released
Each time SW2 is pressed and released the toggling rate of LED1
reduces by 1.0s. The blinking rate should not go below 1.0s
The state of the switches are sampled at the blinking rate
Create a C program implementing the Software Logic on a STM32
NUCLEO-L476RG
WITHOUT USING HAL LIBRARY Consider the system

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 Accounting Questions!