Here is the marking scheme used for grading the midterm.
Question 1, Diagram - 5 marks total
- Serial lines connected to spare RS232 port (1 mark)
- rxd/txd connected to port D (1 mark)
- pull-up resistors implemented or activated (1 mark)
- servo connected to PWM - Port D pin 5 (1 mark)
- other devices connected correctly (1 mark)
Question 2,
Fill Code - 3 marks total
- Accounts for fill complete (1 mark)
- Sends edge to start fill (1 mark)
- Doesn't send multiple edges - overflow (1 mark)
Motor Code - 7 marks total
- Sets up PWM (1 mark)
- Increments PWM for flow control (1 mark)
- Changes if there is new UART data (1 mark)
- Uses C code with reasonable syntax (1 mark)
- Code has some chance of working (1 mark)
- Evidence of understanding the AVR (1 mark)
- Free mark for writing down something (1 mark)
Payment System - 5 marks total
- Debounces input (1 mark)
- Can accept multiple coins (1 mark)
- Uses C with reasonable syntax (1 mark)
- Code has a chance of working (1 mark)
- Uses interrupt - or some sort of sensing (1 mark)
System Activation Code - 5 marks total
- Debounces input (1 mark)
- Can accept multiple coins (1 mark)
- Uses C with reasonable syntax (1 mark)
- Code has a chance of working (1 mark)
- Uses interrupt - or some sort of sensing (1 mark)
Sensor/Motor integration - 5 marks total
- Uses sensor (1 mark)
- sensor increments/decrements fill rate (1 mark)
- reads UART to detect sensor change (1 mark)
- uses C ans reasonable syntax (1 mark)
- code has a chance of working (1 mark)
Main code - 5 marks total
- sets up DDRx's (2 marks)
- sets up interrupts (1 mark)
- code has a chance of working (1 mark)
- uses C and reasonable syntax (1 mark)
The marking outline may not follow your midterm exactly. For
example, if you did not use onboard PWM buy used loops to
implement your own PWM, this was acceptable. Or, if you didn't
necessarily use interrupts but used another solution, etc.