You will design, implement, and test a real-time data acquisition system with a sampling rate of 1000 Hz. This system will include a sliding average filter (data x(n) is sampled at 1000 Hz, and the equation y(n) is also calculated 1000 times/sec).
The trick to this problem is to implement an MACQ that does not require shifting the data on each sample and to implement the sum without having to perform 1000 additions for each calculation. You should develop LCD display device driver functions, LCD_Init and LCD_Display, using them to display your results. Using the filtered data, the main program will calculate the RMS, minimum and maximum values over a 1 sec interval. Once a second display these results. Write debugging code to measure the worst-case time-jitter in the sampling process. Use an external sinusoidal source to experimentally measure the gain-versus-frequency response of the digital filter.