Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Note: the device is STM32L476RG Task 1 You are required to output a signal that could flash LEDs on port pins PB6 and PB7 (the

Note: the device is STM32L476RG

image text in transcribed

Task 1 You are required to output a signal that could flash LEDs on port pins PB6 and PB7 (the LEDs are not available) The LEDs should be ON for 0.1 seconds and off for 0.1 seconds running in 'antiphase', i.e. when one is on, the other is off. The GPIO pins should be configured to run at 'Medium Speed' Accurate timing for this should be provided by the SysTick Timer. You will use the Logic Analyser to check the timings by using it to plot the action of the LEDs. You may use additional variables to help you plot the state of the LEDs. Questions for Task 1 1. Explain how you configured port B to drive the LEDs by writing out the configuration code and adding comments (you may copy and paste from your code). (3 marks) 2. The debugger allows you to check configuration of GPIOs once a program has been started and stopped using a breakpoint. Using appropriate screen shots from the Keil debugger, explain how you were able to confirm the configuration of port pins PB 6 and 7. (3 marks) 3. Copy a screen shot of the Keil Logic Analyser display showing the action of both of the LEDs. State whether the timing accuracy is as expected. (3 marks) 4. Use the debug printf() facility to output the state (1/0 or ON/OFF) of each LED whilst the program is running. Show screenshots of this output

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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions