Difference between revisions of "CSC270 Final Exam 2012"
Line 4: | Line 4: | ||
<onlydft> | <onlydft> | ||
− | The Arduino uses the handshake protocol to send characters out. It sends all the ASCII characters from 'A' to 'Z', and starts over. It sends an active-low Strobe signal and listens to an active-low Ack signal. The Arduino waits 1/2 second between each character. Whenever it sends 'A' it activates its yellow on-board LED. The LED is turned off when a 'B' (or any character other than 'A' is sent). This LED | + | The Arduino uses the handshake protocol to send characters out. It sends all the ASCII characters from 'A' to 'Z', and starts over. It sends an active-low Strobe signal and listens to an active-low Ack signal. The Arduino waits 1/2 second between each character. Whenever it sends 'A' it activates its yellow on-board LED. The LED is turned off when a 'B' (or any character other than 'A' is sent). This LED turns ON every 13 seconds approximately, and stays ON for approximately 1/2 second (26 characters * 0.5 sec = 13 sec). |
− | Your assignment is to design a system that will | + | Your assignment is to design a system that will receive the characters, and turn ON its own LED whenever it sees the code for 'A'. This way your receiver hardware will blink synchronously with the Arduino. The LED should stay ON for about 1/2 second. |
<br /> | <br /> | ||
Line 31: | Line 31: | ||
The arduino waits 0.5 seconds between characters (as long as the receiver is absorbing them | The arduino waits 0.5 seconds between characters (as long as the receiver is absorbing them | ||
as fast as they are generated). | as fast as they are generated). | ||
+ | |||
+ | This example code is in the public domain. | ||
*/ | */ | ||