The question below is referenced from Chapter 9 of the book "Embedded System Design with ARM Cortex-M Microcontrollers: Applications with C, C++, and MicroPython" by Cem Unsalan.
Explanation:
In this question, you are required to create a project in STM32CubeIDE with specific specifications. The project should utilize the ADC module with DMA (Direct Memory Access) property to collect data from an external POT (potentiometer). The ADC module should be triggered by the Timer 2 module, with a sampling time of 100 ms. Once 100 samples have been acquired, their average should be calculated and, if applicable, sent to a PC via the UART module.
Headings for Lab Report:
1. Introduction
2. Project Specifications
3. ADC Module and DMA
4. Timer 2 Module
5. UART Module
6. Implementation
7. Results and Analysis
8. Conclusion