

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CDA 3100, Computer Organization I, Spring 2009 Due: Midnight, March 6, 2009 Submission: Email the code to the TA and the instructor.
In this assignment, you are asked to implement a simple TV controller. It accepts simple commands like vol+/-, channel +/-, channel digit input (0-9), sleep timer, and power on/off.
1’ is pressed, print out “Channel 1-” immediately. The controller should be expecting another digit input for another 2 seconds. If any other key is pressed during these two seconds, abort the digit input. For example, if1’ is pressed at 1000 second and channel +’ is pressed at 1001 second, the controller should perform the channel + function and “forget” about the digit input. If no other key is pressed during the two seconds, the controller switches to channel 1. If another digit key is pressed within the two seconds, for example,2’ is pressed, the controller switches to channel 12 immediately.