Lecture 2 - Serial Comms Flashcards

1
Q

What IO port do the TXD and XD pins reside?

A

Port D
TXD = D.1
RXD = D.0

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

What registers are used to set the baud rate?

A

UBRRH, UBRRL

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

In synchronous serial communication are the clocks of the sender and receiver synchronised?

A

Yes

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

In asynchronous serial communication are the clocks of the sender and reciever synchronised?

A

No

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

What is the formula to find the value for the UBRR regsiters (baud rate)?

A

UBRR = [((system clock freq.)(16*baudRate)] - 1

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

Steps involved in sending/receiving formatted strings:

A

Write two functions to send and receiver a character via serial port.
In main function call fdevopen().
Use printf/scanf as usual

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