Practice Test Paper Flashcards
Name the C keyword that can be used to quit a function immediately.
return
On what IO port do TXD and RXD pins reside?
PORTD
What register is used to select the type of events that will trigger a Timer 1 Input Capture interrupt?
Register TCCR1A
Flags COM1A1, COM1A0, COM1B1, COM1B0
How to force the ADC unit to start a conversion operation?
Set ADSC flag to 1 (register ADCCSRA)
Determine the value of relevant registers for serial transmission at a baud rate of 2400bps, 8 data bits, one start bit, two stop bits, even parity and a system clock running at 1MHz.
UBRR = 1000000/(16*2400) - 1 = 25d = 19H UBRRH = 00 UBRRL = 19H
Assume the serial port it already set up, what needs to be done in the C function to send a character through the serial port.
Wait until UDRE flag = 1
Write char to UDR for transmission