Question: 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

Note: the device is STM32L476RG Task 1 You are required to output

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

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!