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
2
Q
What registers are used to set the baud rate?
A
UBRRH, UBRRL
3
Q
In synchronous serial communication are the clocks of the sender and receiver synchronised?
A
Yes
4
Q
In asynchronous serial communication are the clocks of the sender and reciever synchronised?
A
No
5
Q
What is the formula to find the value for the UBRR regsiters (baud rate)?
A
UBRR = [((system clock freq.)(16*baudRate)] - 1
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