Microcontroller Apps: Analog-to-Digital Conversion Design & Implementation - Prof. Janos L, Assignments of Microcomputers

A homework assignment for ece 4510/5530 microcontroller applications course in fall 2008. Students are required to design and implement an analog-to-digital conversion system using the atd1 module and timer overflow interrupts. Instructions on setting up the atd1 and main timer, choosing the analog input channel, and timing considerations. Students must write a c program module for the signal interface and turn in the source code and compiled .lst file.

Typology: Assignments

Pre 2010

Uploaded on 07/28/2009

koofers-user-3d1
koofers-user-3d1 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ECE 4510/5530 Microcontroller Applications
Fall 2008
Homework Assignment #6
Total: 60 pts.
Due 3:30pm, Wednesday, October 22, 2008
You are to develop an analog-to-digital conversion system as follows: a 0-5V analog
input signal is to be converted by the ATD1 Module. You are to choose the actual
analog input channel. One conversion sequence should be made up of 8 conversions.
Conversion sequences should be launched at approx. every 8 milliseconds.Theapprox.
8ms timing should be accomplished by using Timer Overflow (TOF)interrupts.The
ATD resolution should be set to 10 bits.Theunsigned converted data should be
averaged by your program and the results should be stored in a memory location of
your choice. The conversion complete flag (rather than the ATD1 interrupt) should be
used for synchronization. Assume that the CPU clock is set to 24MHz.
Tasks
1. Explain your design approach. That includes the set up of ATD1 and the Main Timer
for the task, the choice of the analog input channel. Give your timing considerations as
well as your algorithm to tackle this problem. (10 pts.)
2. Develop a syntactically correct C program module for this signal interface. The
program should run in an infinite cycle. Choose the code, data, and variable locations for
your program such that it could run on the systems in the Lab but you are not required
to prove that it has actually run. Turn in your C source code and the compiled .lst file
along with your comments for full credit.
(50 pts.)

Partial preview of the text

Download Microcontroller Apps: Analog-to-Digital Conversion Design & Implementation - Prof. Janos L and more Assignments Microcomputers in PDF only on Docsity!

ECE 4510/5530 Microcontroller Applications

Fall 2008 Homework Assignment # Total: 60 pts. Due 3:30pm, Wednesday, October 22, 2008

You are to develop an analog-to-digital conversion system as follows: a 0-5V analog input signal is to be converted by the ATD1 Module. You are to choose the actual analog input channel. One conversion sequence should be made up of 8 conversions. Conversion sequences should be launched at approx. every 8 milliseconds. The approx. 8ms timing should be accomplished by using Timer Overflow ( TOF ) interrupts. The ATD resolution should be set to 10 bits. The unsigned converted data should be averaged by your program and the results should be stored in a memory location of your choice. The conversion complete flag (rather than the ATD1 interrupt) should be used for synchronization. Assume that the CPU clock is set to 24MHz.

Tasks

1. Explain your design approach. That includes the set up of ATD1 and the Main Timer for the task, the choice of the analog input channel. Give your timing considerations as well as your algorithm to tackle this problem. (10 pts.) 2. Develop a syntactically correct C program module for this signal interface. The program should run in an infinite cycle. Choose the code, data, and variable locations for your program such that it could run on the systems in the Lab but you are not required to prove that it has actually run. Turn in your C source code and the compiled .lst file along with your comments for full credit. (50 pts.)