Consider a microcontroller (atmega328 family)-based system design that has the following topology (input-process-output). The system may come from your existing project, or you may propose a new one. Discuss the followings:
1. Input Interface: A sensor-microcontroller interface (either ADC, digital pulse, serial I2C, SPI, etc).
Show the connection involved.
Explain how the microprocessor receives data from the sensor (highlight the microcontroller internal module involved).
Discuss the sampling rate involved, what is the current value and the maximum limit the microcontroller can handle. Highlight any other constraints.
Provide codes related to this Input Interface (Initializations, registers involved, operation/function involve)
What is the time taken (total number of clock cycle) to complete this process (the process of getting input data)
2. Data processing: Briefly describe what happens to the data (what are the operations involve).
Provide codes related to this process (Initializations, registers involved, operation/function, library).
What is the time taken (total number of clock cycle) to complete data processing? How long does the microprocessor take to complete the operations before the result can be displayed or output from the microcontroller.
Suggest how data processing can be improved?
3. Output Interface: Microcontroller-output (serial, LCD, 7 segment)
Show the connections involved.
Explain how the results or the processed data is channeled to the output (what is the microcontroller internal module involved in this process)
Discuss the output data rate, what is the current data rate and maximum data rate the microcontroller can handle. Highlight any constrains.
Provide codes related to this Input Interface (Initializations, registers involved, operation/function involve)
What is the time taken (total number of clock cycle) to complete this process (the process of completing on cycle of output data)
Use modern tool (Microchip/Atmel studio to compile the above program. Use this tool to obtain timing information ask above.
Now let’s simulate using SIMULIDE: Show the complete circuits in SIMULIDE. Load the hex file (generated from the compiler) and run simulation.
How the program can be improved (give individual suggestion, at least one method, use your own words)?
answer: