Project7_S10 - Project 7 (Spring 2010) Analog Data...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Project 7 (Spring 2010) Analog Data Acquisition and Processing System Your concern is the software of this system, not the hardware. Assume that all the hardware exists and is ready to run your code. Write the assembly code for an analog data acquisition and processing system with the following requirements : The main program initializes … o Top of stack is located at 5000h and stack size = 256 bytes o 1024-byte Scheduler Table to default values = sequential scheduling of all samples (Channel 0 to Channel 15 for each multiplexer, and repeat 63 times to equal 1024 samples) The Scheduler Table contents consists of Mux1(4 bits) + Mux0(4 bits), and the default values are: 0000 0000 (selects mux input 0 for both) 0001 0001 (selects mux input 1 for both) 0010 0010 etc. 0011 0011 0100 0100 o o o 1111 1111 (selects mux input 15 for both) 0000 0000 (start sequence over again) o Threshold Table values (64 total) to default values: 10h for minimum values of each mux channel F0h for maximum values of each mux channel Data Frame … o The 5 second interrupt starts the next data frame, which corresponds to the following: Data Collection: Collect data samples at 2 ms intervals, store the data from mux0 into Input Array A and from mux1 into Input Array B Data Processing: Scan the Input Array A and B data, searching for the information that you need to output. So you need variables for each output result. Output Results: Output the 32 bytes of data required. Housekeeping: Wait for the next interrupt to start the cycle all over again. Thus, "data frame" is the 5-second interval between interrupts. The main program collects data every data frame … o Inputs 1Kbyte of 8-bit data at ports 20h and 30h at 2 millisecond intervals within a 5 second data frame The source of the input data is from separate external analog sources, which is no concern for the coder, who is writing the software for this application. 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The analog channel voltages are individually signal processed, and two separate 16-channel analog multiplexers, each with their own 12-bit ADC, are utilized. Note that only the 8 most significant data bits of the ADC are used in order to reduce the effect of noise on the digital data received through Ports 20h and 30h. Data collection is Get Sample at Input Port 20h and store in Input Buffer A and Get Sample at Input Port 30h and store in Input Buffer B. Wait 2 milliseconds (via software time delay), then get the next two samples. Keep collecting samples at 2 ms intervals until 1024 samples have been collected per the Scheduler and placed into their respective data buffers. Next the required processing on the data is performed.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/08/2010 for the course CMPE 46 at San Jose State University .

Page1 / 8

Project7_S10 - Project 7 (Spring 2010) Analog Data...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online