Académique Documents
Professionnel Documents
Culture Documents
Recap
Data Communications
Parallel Communication
Serial Communication
Disadvantage,
I
Speed
Distance cannot be
great
Example, computer to
printer data transfer
Disadvantage,
I
larger distances
cheaper
fewer I/O pins
easy synchronization
relatively slower
Example, USB
Synchronous method,
I
transfers a block of
data at a time
Asynchronous method,
I
I
I
Start bit
always one bit
always 0(low)
Stop bit
I
I
Framing of A(0x41)
bps
I
baud rate
I
RS232 Standards
I
I
0 = +3 to +25 V
1 = 3 to 25 V
MAX232
RS232 Standards
Continued
RS232 Standards
Continued
Todays Topic
Todays Problem
Problem Specification
Problem Specification
Problem Specification
I
I
Problem Specification
I
I
Problem Specification
I
I
Problem Specification
I
I
Problem Specification
I
I
Problem Specification
I
I
Problem Specification
I
I
UCSRB Register
UCSRB Register
UCSRB = UCSRB | (1
<< RXEN);
UCSRB Register
UCSRB = UCSRB | (1
<< RXEN);
UCSRB = UCSRB | (1
<< TXEN);
Framing
Framing
UCSRC Register
Framing
UCSRC Register
Framing
UCSRC Register
UCSRC = UCSRC | (1
<< UCSZ1) | (1 <<
UCSZ0) | (1<<URSEL);
UBRR Register
UBRR Register
UBRR Register
UBRRl = 0x67;
UCSRA Register
UCSRA Register
UCSRA Register
ch = UDR;
UCSRA Register
ch = UDR;
UCSRA Register
ch = UDR;
The Program
ATmega16/32 RX & TX
MAX232
The Voltage Converter
Reference