xuebaunion@vip.163.com
3551 Trousdale Rkwy, University Park, Los Angeles, CA
留学生论文指导和课程辅导
无忧GPA:https://www.essaygpa.com
工作时间:全年无休-早上8点到凌晨3点
微信客服:xiaoxionga100
微信客服:ITCS521
Objective
CSSE2010 / CSSE7201 AVR PROGRAMMING TASK
Due: 12noon Saturday 31 October 2020
Weighting: 20% (30 marks)
As part of the assessment for this course, you are required to undertake an AVR programming task which will test you against some of the practical learning objectives of the course. In particular, the programming task will test your understanding of the practical material covered during the learning labs of this course. Specifically, you are asked to implement a system to mimic the operation of a washing machine controller as described below, which uses various aspects of Atmega324a microcontroller. The basic building blocks required to implement the given system are already covered in exercises in learning labs 10-17 (for which answers have been provided as well) and you are required to use these building blocks to implement and test the given system for the required functionality. You can use any of the lab codes as a starting point to build upon, hence no code is provided to you.
You are required to implement and test a system which mimics the operation of a simple washing machine controller using the Atmega324a microcontroller and the I/O board. Inputs and outputs of the system and the functionality are described below.
and should be displayed on the right digit of the seven-segment display (SSD) as,
low
medium
high
error
normal extended
Cycle |
Blinking pattern on LEDs L0-L3 |
PWM controlled intensity on LED L7 |
Wash |
One-directional running pattern from L0 to L3 (i.e. from right to left) for 3 seconds followed by all four LEDs on for 3 seconds |
Low-intensity (10% PWM duty cycle) |
Rinse |
One-directional running pattern from L3 to L0 (i.e. from left to right) for 3 seconds followed by all four LEDs blinking ON and OFF at a reasonable and visible rate of your choice for 3 seconds |
Medium-intensity (50% PWM duty cycle) |
Spin |
Bi-directional running pattern from L3 to L0 and then from L0 to L3 (i.e. from left to right and right to left) for 3 seconds followed by all four LEDs blinking ON and OFF at twice the rate in rinse cycle for 3 seconds (the blinking ON and OFF should be visible) |
High-intensity (90% PWM duty cycle) |
In case you’ve encountered any hardware defects that prevents you from using the above pin assignments, you can use a different pin assignment, and this must be clearly stated in your submission.
You need to electronically submit one zip file (i.e. a zipped folder) containing the following items by
12pm October 31st, 2020, via the course Blackboard site.
Do not submit .rar or other archive formats – the single file you submit must be a zip format file. All files must be at the top level within the zip file – do not use folders/directories or other zip/rar files inside the zip file. If you make more than one submission, each submission must be complete – the single zip file must contain the marking sheet and the hex file and all source files needed to build your work. We will only mark your last submission and we will consider your submission time (for late penalty purposes) to be the time of submission of your last submission.
NOTE for external mode students residing overseas and haven’t received a kit: If you are an external mode student and haven’t received a kit, you should still attempt the task by coding and testing the individual sub-systems of the main system using the Atmel Studio Simulator. You should be able to compile your code with no errors and warnings and then inspect individual register bits and memory content within the Atmel Studio Simulator to ensure the configurations you intend to make are actually in place. Further, you must indicate in your marking sheet that you have not received a kit and the marking process will take this into account and will mark you based on your code and simulation outputs only. This exception is only applicable to overseas external mode students who haven’t received a kit due to difficulties associated with postal services etc.
If your submission does not compile and/or link in Atmel Studio 7, then the marker will make reasonable attempts to get your code to compile and link by fixing a small number of simple syntax errors and/or commenting out code which does not compile. A penalty of between 10% and 50% of your mark will apply depending on the number of corrections required. If it is not possible for the marker to get your submission to compile and/or link by these methods, then you will receive 0 for the task (and will have to resubmit if you wish to have a chance of passing the course). A minimum 10% penalty will apply, even if only one character needs to be fixed.
If there are compilation warnings when building your code (in Atmel Studio 7, with default compiler warning options) then a mark deduction will apply – 1 mark penalty per warning up to a maximum of 5 marks. To check for warnings, rebuild ALL of your source code (choose “Rebuild Solution” from the “Build” menu in Atmel Studio) and check for warnings in the “Error List” tab.
Late submission will result in a penalty of 10% plus 10% per calendar day or part thereof, i.e. a submission less than one day late (i.e. submitted by 12noon November 1st 2020) will be penalised 20%, less than two days late 30% and so on. (The penalty is a percentage of the mark you earn (after any of the other penalties described above), not of the total available marks.) Requests for extensions should be made via the process described in the course profile (before the due date) and be accompanied by appropriate documentary evidence of extenuating circumstances (e.g. personal statement or medical certificate). The application of any late penalty will be based on your latest submission time.
Students will be notified of their results via Blackboard’s “My Grades” when marking is complete.
1 The .hex file can be found in the “Debug” folder within your Atmel Studio project.
(A separate PDF version of this form is also available on Blackboard and must be included in your submission)
Student Number |
Family Name |
Given Names |
|||||||
|
|
|
|
|
|
|
|
|
|
Complete the table below if you use a different pin assignment than what is specified in the task due to any hardware faults in your kit.
Port |
Pin 7 |
Pin 6 |
Pin 5 |
Pin 4 |
Pin 3 |
Pin 2 |
Pin 1 |
Pin 0 |
A |
|
|
|
|
|
|
|
|
B |
|
|
|
|
|
|
|
|
C |
|
|
|
|
|
|
|
|
D |
|
|
|
|
|
|
|
|
Are you an external mode student who hasn’t received a kit? YES/NO State any assumptions you make
Marking Rubric
Item |
Comment (anything you want the marker to know) |
Marks (to be completed by the marker) |
Correctly implemented operational modes with SSD indication |
|
/4 |
Correctly implemented water level with SSD indication |
|
/4 |
Correctly implemented cycles with LED blinking patterns |
|
/12 |
Correctly implemented PWM output |
|
/4 |
Overall system functionality |
|
/3 |
Clarity and modularity of code |
|
/3 |
Total marks (out of 30, without any penalties):
Total marks (with any penalties as applicable including late submissions): Marker’s initials: