Professional Documents
Culture Documents
CSE 315 Microprocessors & Microcontrollers: Tanvir Ahmed Khan
CSE 315 Microprocessors & Microcontrollers: Tanvir Ahmed Khan
CSE 315 Microprocessors & Microcontrollers: Tanvir Ahmed Khan
Recap
10-bit ADC
2 output registers,
I
I
I
7 differential input
with optional gain of 10x & 200x
However, only one conversion at a time
Vref options,
I
I
I
ADCH:ADCL
16-bits, 6-bits are unused
Option to adjust left or right
Analog Vcc , 5V
internal 2.56V
external AREF pin
selection of pre-scaler
AD Conversion takes at-least 13 ADC clock cycles
ADC Programming
Major Relevant registers
ADCH:ADCL
ADCSRA
ADMUX
SFIOR
ADC Programming
ADCSRA Register
Initialization,
I
I
Conversion Start,
I
ADC Programming
ADMUX Register
Todays Topic
Data Communications
Data Communications
Data Communications
Data Communications
Parallel Communication
Data Communications
Parallel Communication
Serial Communication
Speed
Speed
Disadvantage,
Speed
Disadvantage,
I
Distance cannot be
great
Disadvantage,
I
Speed
Distance cannot be
great
Example, computer to
printer data transfer
larger distances
larger distances
cheaper
larger distances
cheaper
fewer I/O pins
larger distances
cheaper
fewer I/O pins
easy synchronization
larger distances
cheaper
fewer I/O pins
easy synchronization
Disadvantage,
larger distances
cheaper
fewer I/O pins
easy synchronization
Disadvantage,
I
relatively slower
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
Start bit
Start bit
I
Start bit
I
I
I
I
Start bit
always one bit
always 0(low)
Stop bit
I
I
Start bit
always one bit
always 0(low)
Stop bit
I
I
I
Start bit
always one bit
always 0(low)
Stop bit
I
I
I
I
Start bit
always one bit
always 0(low)
Stop bit
I
I
Framing of A(0x41)
bps
I
bps
I
baud rate
I
bps
I
baud rate
I
bps
I
baud rate
I
RS232 Standards
RS232 Standards
RS232 Standards
RS232 Standards
RS232 Standards
RS232 Standards
0 = +3 to +25 V
RS232 Standards
I
I
0 = +3 to +25 V
1 = 3 to 25 V
RS232 Standards
I
I
0 = +3 to +25 V
1 = 3 to 25 V
RS232 Standards
I
I
0 = +3 to +25 V
1 = 3 to 25 V
MAX232
RS232 Standards
Continued
RS232 Standards
Continued
RS232 Standards
Continued
RS232 Standards
Continued
Reference