Practice Test Paper Flashcards

1
Q

Name the C keyword that can be used to quit a function immediately.

A

return

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

On what IO port do TXD and RXD pins reside?

A

PORTD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What register is used to select the type of events that will trigger a Timer 1 Input Capture interrupt?

A

Register TCCR1A

Flags COM1A1, COM1A0, COM1B1, COM1B0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to force the ADC unit to start a conversion operation?

A

Set ADSC flag to 1 (register ADCCSRA)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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.

A
UBRR = 1000000/(16*2400) - 1 = 25d = 19H
UBRRH = 00
UBRRL = 19H
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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.

A

Wait until UDRE flag = 1

Write char to UDR for transmission

How well did you know this?
1
Not at all
2
3
4
5
Perfectly