Answered step by step
Verified Expert Solution
Question
1 Approved Answer
EL3250 Practical Assessment This assessment tests your ability to write and test code for an ARM Cortex Microcontroller STM32L476. All the tasks use ideas from
EL3250 Practical Assessment This assessment tests your ability to write and test code for an ARM Cortex Microcontroller STM32L476. All the tasks use ideas from lab work you have done earlier in the course. You will use the same equipment you used to complete the module laboratory work. You will need to access the EL3250 Blackboard Module for reference material. Marks for each Task section are indicated in brackets. The total marks available are 30, and this will be scaled up to give a percentage. This assessment has a weighting of 25% for the module. There are 3 tasks which need to be completed. You will be assessed on the code you submit, and the answers to the questions about each of the tasks. You may consult your previous lab work and any other Blackboard materials to help you write the code. The submission will be a Word document containing the answers to the questions + a zip file of the complete Keil project folder containing your code. The answers to the questions will form the main part of the assessment, and we may look at your code if we need clarity on anything you have done. The work you submit must be your own. Standard University assessment rules apply. You may use register based programming style or the LL libraries provided by ST. Use of techniques like HAL, CubeMX and mbed are not permitted. You must begin a new project on the day called EL3250_Jan21. You are required to create one main file for each task (or subtask), e.g. Task1main.c, Task2main.c . . . etc. so that you only need to create one project file for the whole exercise. You will need to know how to create a zip file of your completed Keil project. You will need to take screen dumps from Keil and incorporate them in your answers. If you cannot complete any question, then in your answer, explain why you think you were unable to complete. You may be awarded marks for appropriate ideas that just didnt work out properly. Each task is started on a new page and includes the associated questions. Submission of work: The Word document containing your Answers should be placed inside the Keil project folder. Zip up the answers+project and submit to Blackboard, using your G number as the zip file name. The project file will not be allocated marks directly, but may be consulted to help us award marks to your incomplete answers. You must submit your work by the end of the assessment session this gives you 4 hours to finish the tasks. The assessment starts from 9:30, 13th Jan 2021 and closes at 13:30, 13th Jan 2021. PEP students might have 25% extra time as normal. Learning Outcomes
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
3. | Design, breadboard and program a micro-controller system. |
4. | Evaluate and use various IO devices (e.g. keypads, ADC, LCD modules, relays). |
- 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).
- 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.
- 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.
- 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.
- Design a Keil based program to transmit and display a single character H when a user presses once the Nucleo Board switch Push Sw.
- If the microcontroller is running at 4MHz and USART2 is set to 14400bps what should be the value of USART2_BRR. Explain the result and provide calculations.
- Design a Keil based project, to send all capital letters of the alphabet from A to Z, with 100ms second delay between each character, continuously. After printing the sequence to Z, send a Carriage Return and Line Feed so that the next printout of the ABCD..Z starts on a new line. Include a screen dump of this output as part of your answer.
- Assume the asynchronous prescaler of RTC is equal to 0x3F. Using ALARM-A, design a project to generate a 1 Hz square wave on PA6. Provide the source code in C.
- Explain why your project outputs a square-wave of 1 Hz.
- The sub-second registers of ALARM-A/ALARM-B of RTC are shown below:
Attachments:
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