Question: 1 Introduction Embedded systems are small single board microcontroller or microprocessor based sys- tems build for a specific application. ARM Cortex M familly is one


1 Introduction Embedded systems are small single board microcontroller or microprocessor based sys- tems build for a specific application. ARM Cortex M familly is one of the common wide spread microcontroller that is used by a large number of professionals. The C, like many others, has many peripherals, interrupts and Timers. In this assignment the use of STM32 IDE and any Cortex M C is required to take analog ramp input from a signal generator and convert it to 12 bits digital value. The signal should be sampled at 100 Hz. Take an input signal of 10 Hz plus added noise. The samples then pass by a moving average filter over 4 samples and go to a digital to analog converter DAC output. You will use the STM32 cortex M microcontoriler for this project. This is available on the Nucleo STM32 boards. STM32 MCUS 32-bit Arm Cortex-M STM32 Ecosystem IWD | STM32 Solutions OH! 14 STM32 Learning/ Communities Q C Assignment No 1 Page 1 / 2 2 The design and requirement Task 1: CE Get used to the signal generators we have in the Lab. The input signal to the board should be between 0-5 unipolar (i.e an offset should be added). Add noise to Task 2: CE and SE Using a timer in the A/D converter the sampling rate should be fixed to 100 Hz y using a timer interrupt. Task 3: SE Passing the acquired samples through a moving average filter: 1. Implement the moving average in C language: M [n] = 2. You need a buffer to stock the input x[n] values at least M samples. 3. Take M as a variable and fix it to 4 initially. Task 4: CE and SE Give the output of you equation y[n] to the DAC output to monitor it using an oscilloscope and also to the serial monitor. 3 The deliverable In your report, all the programmes should be well documented and commented including demonstrative figures. A complete functional programme file must be uploaded. The functional built hardware should be presented. 4 The presentation The assignment will be done in groups of two students 1 CE and I SE. The aim of the presentation is to show that everybody participated in the development of the programme and that he/she integrated the concept of the programme. Assignment No 1 Page 2/2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
