Dr. Suneel Kommuri
MEC 302 Embedded Computer Systems Assignment − 2
Assignment-2 or Lab work of MEC 302 (2020-21). This assignment relates to the EdSIM51 Simulator. Following are the assignment questions:
1. Write Embedded C code to turn on LED’s 0-3 when you press 1 on the keyboard and LED’s 4-7 when you press 2. The lights should turn off when the keyboard number is not pressed. [50]
2. Modify your code in part 1 to turn the motor clockwise when you press 1 and anti- clockwise when you press 2. [50]
Submission requirements:
[1] For each problem you must submit one C program. This must have the extension C or CPP. Warning: If you submit a word or PDF file it will not be graded as I can’t compile it!
[2] Submission will be via LMO and you will be able to submit each C code separately (i.e. 2 files for Assignment-2). Very important: Do not submit compressed zip files. If you do your work will not be graded.
[3] You should make comments in your code. The more comments you make the easier it will be for me to follow. This is important if your code doesn’t work properly. (I can give marks for non-working code with comments !)