SlideShare a Scribd company logo
8051 Microcontroller Data Transfer
Schemes
PREPAREDBY
B.SARAVANAMANIKANDAN
ASSISTANTPROFESSOR
Kongunaducollegeof engineeringandtechnology
SERIAL INTERFACE
• Data transfer between memory and register, register and port and
port to outside unit in these data transfers, a byte is transferred
between two units.
• Thus 8 bits are transferred in parallel.
• This type of data transfer is mostly used for short distance, data
transfer.
• When data becomes more than few meters the parallel data transfer
suffers from phenomenon called bit skewing.
KNCET EEE DEPARTMENT
ASYCHRONOUS and SYNCHRONOUS
• In synchronous communication the transmission from one device
and receipt at other devices is synchronized by a common clock,
thus as one bit/byte is sent out from A to B.
• Another variation of synchronous communication is when two units
are quite apart, they are driven by individual clocks but these clocks
are synchronized.
• In Asynchronous Communication the transmission and reception
are not synchronized.
• A device can send its own and other device may receive it. In this
case byte is enveloped in a data frame will have
Start bit
stop bit
parity bit
• The baud rate data transmission speed in terms per second also
must be predefined.
KNCET EEE DEPARTMENT
• Serial data transfer in bit from received to parallel data in byte form
for storage and processing.
• Parallel data in memory to serial data ready to be transmitted
• Such devices working in asynchronous mode are called USART.
• The 8051 has on chip for serial communication.
• RXD
• TXD
Serial Communication Modes
• MODE 0
• MODE 1
• MODE 2
• MODE 3
KNCET EEE DEPARTMENT
KNCET
EEE DEPARTMENT
MODE 0:
• Data is transmitted as well as received through the RxD pin.
• The shift clock is supplied through the TxD pin.
• 8 bits of data are transmitted and received.
• The LSB is transmitted first and similarly while receiving.
• The baud rate is 1/12 of a oscillator frequency.
• Transmit Interrupt flag (TI) is set when data bytes are transmitted and
Receive Interrupt(RI) flag is set after receiving bits.
• The TI and RI flags are noting but SCON register. This mode
corresponds to SM0=0 and SM1=0.
KNCET
EEE DEPARTMENT
MODE 1:
• Data is sent through the TxD pin and received through the RxD pin. A
10 bit frame containing 8 bit data (SM0=0), a start bit (=0) and a stop
bit (=1) are used.
• Thus there is a clear demarcation between end of one data frame
and start of another data frame, once the stop bit is received.
• The Stop bit is loaded into a bit cell RB8 in the SCON register.
• As mode 0 here also an interrupt is generated once all the bit frames
are received or transmitted.
• Baud rate varies here the baud rate varied by changing preset count
in the Timer1.
• The start bit and stop bit are automatically added by the hardware by
transmitting data.
KNCET
EEE DEPARTMENT
MODE 2:
• 11 bits are transmitted or received. This 11 bit frame is specified as:
1 bit for start
8 bits for data
1 bit can be programmed
1 bit for stop bit
• The 9 data bit programmable. This bit TB8 bit in SCON register, this is effectively
used while transmitting data.
• With little software overhead, this bits can be used to send the parity of the byte
that is to be transmitted.
• Transmitting:
If we want to use 9 th bit as a parity we must load the TB8 with the parity of
the byte that is to be transmitted. ACC has the byte to be transmitted.
• Receiving:
on reception of frame the 9 th bit goes to RB8 of the SCON register. The stop
bit is ignored the baud rate in this mode is programmable either 1/32 or 1/64 of the
oscillator frequency
By making SMOD = 0 baud rate can be set to 1/64 of oscillator frequency, SMOD =
1 baud rate can be set to 1/32 of oscillator frequency. SMOD is 7 th bit PCON after
SFR.
KNCET EEE DEPARTMENT
MODE 3:
• This mode is same as the mode 2 expect for baud rate.
• Here the baud rate is variable as in case of mode 1.
• The baud rate depends on overflow rate of timer 1.
• By changing preset count in Timer 1 baud rate can be varied.
Baud rate calculation = Timer 1 overflow rate
n
Where n is an integer and its value is either 32 or 16
If SMOD = 1 then n =16 else n = 32
Overflow rate = rate at which the counting in done /256-TH1
KNCET
EEE DEPARTMENT
KNCET EEE DEPARTMENT
PCON
• Power control register through which certain power control functions
in CMOS version of the 8051 implemented.
• In the HMOS version all the bits of PCON except 7 bit are dummy.
• Bit 7 is SMOD and is used in both CMOS and HMOS versions to
double baud rate in mode 1,2 and 3.
• PCON is not bit addressable.
KNCET EEE DEPARTMENT
KNCET EEE DEPARTMENT

More Related Content

What's hot

Timing diagram 8085 microprocessor
Timing diagram 8085 microprocessorTiming diagram 8085 microprocessor
Timing diagram 8085 microprocessor
Velalar College of Engineering and Technology
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chips
Srikrishna Thota
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
Dr. AISHWARYA N
 
Ditial to Analog Converter
Ditial to Analog ConverterDitial to Analog Converter
Ditial to Analog Converter
Gauravsinh Parmar
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller NotesDr.YNM
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
Siddhesh Palkar
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdf
Srikrishna Thota
 
Prom
PromProm
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
SAQUIB AHMAD
 
8051 experiments1
8051 experiments18051 experiments1
8051 experiments1
tt_aljobory
 
Arithmetic circuits
Arithmetic circuitsArithmetic circuits
Arithmetic circuits
Sanjay Saluth
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085
Nitin Ahire
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
DominicHendry
 
Flipflop
FlipflopFlipflop
Flipflop
sohamdodia27
 
8251 USART
8251 USART8251 USART
8251 USART
ShivamSood22
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
Vijay Kumar
 
TMS320C5x
TMS320C5xTMS320C5x
UART
UARTUART
microcontroller vs microprocessor
microcontroller vs microprocessormicrocontroller vs microprocessor
microcontroller vs microprocessor
sobhadevi
 
TMS320C6X Architecture
TMS320C6X ArchitectureTMS320C6X Architecture
TMS320C6X Architecture
Shweta Tripathi
 

What's hot (20)

Timing diagram 8085 microprocessor
Timing diagram 8085 microprocessorTiming diagram 8085 microprocessor
Timing diagram 8085 microprocessor
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chips
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
Ditial to Analog Converter
Ditial to Analog ConverterDitial to Analog Converter
Ditial to Analog Converter
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller Notes
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdf
 
Prom
PromProm
Prom
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
 
8051 experiments1
8051 experiments18051 experiments1
8051 experiments1
 
Arithmetic circuits
Arithmetic circuitsArithmetic circuits
Arithmetic circuits
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
Flipflop
FlipflopFlipflop
Flipflop
 
8251 USART
8251 USART8251 USART
8251 USART
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
 
TMS320C5x
TMS320C5xTMS320C5x
TMS320C5x
 
UART
UARTUART
UART
 
microcontroller vs microprocessor
microcontroller vs microprocessormicrocontroller vs microprocessor
microcontroller vs microprocessor
 
TMS320C6X Architecture
TMS320C6X ArchitectureTMS320C6X Architecture
TMS320C6X Architecture
 

Similar to DATA TRANSFER SCHEMES OF 8085

8051 SERIAL PORTS.pptx
8051 SERIAL PORTS.pptx8051 SERIAL PORTS.pptx
8051 SERIAL PORTS.pptx
maheswariM7
 
Microcontrollers and microprocessors in electrical communication engineering....
Microcontrollers and microprocessors in electrical communication engineering....Microcontrollers and microprocessors in electrical communication engineering....
Microcontrollers and microprocessors in electrical communication engineering....
ANKUSH445845
 
8051 serialp port
8051 serialp port8051 serialp port
8051 serialp port
Teju Kotti
 
Presentation (1)-3.pptx
Presentation (1)-3.pptxPresentation (1)-3.pptx
Presentation (1)-3.pptx
RushikeshSawant37
 
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD CoverterUniversal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Tejas Shetye
 
8251 USART.pptx
8251 USART.pptx8251 USART.pptx
8251 USART.pptx
MeenaAnusha1
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
Sudhanshu Janwadkar
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav Shukla
Pallav Shukla
 
Serial IO for 8051
Serial IO for 8051Serial IO for 8051
Serial IO for 8051
SaravananVijayakumar4
 
8051 serial communication
8051 serial communication8051 serial communication
8051 serial communicationcanh phan
 
Micro c lab8(serial communication)
Micro c lab8(serial communication)Micro c lab8(serial communication)
Micro c lab8(serial communication)
Mashood
 
EC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdfEC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdf
SPonmalar1
 
Serial communication
Serial communicationSerial communication
Serial communication
Vikas Dongre
 
Serial.ppt and it contains all information
Serial.ppt and it contains all informationSerial.ppt and it contains all information
Serial.ppt and it contains all information
shwetasonkar638
 
Lecture 10 (serial communication)
Lecture 10 (serial communication)Lecture 10 (serial communication)
Lecture 10 (serial communication)
cairo university
 
Lecture 10 _serial_communication
Lecture 10 _serial_communicationLecture 10 _serial_communication
Lecture 10 _serial_communication
Md Rakibul islam chowdhury
 
Serial data transfer
Serial data transferSerial data transfer
Serial data transfer
Dinesh Subhuraaj
 

Similar to DATA TRANSFER SCHEMES OF 8085 (20)

8051 SERIAL PORTS.pptx
8051 SERIAL PORTS.pptx8051 SERIAL PORTS.pptx
8051 SERIAL PORTS.pptx
 
Microcontrollers and microprocessors in electrical communication engineering....
Microcontrollers and microprocessors in electrical communication engineering....Microcontrollers and microprocessors in electrical communication engineering....
Microcontrollers and microprocessors in electrical communication engineering....
 
8051 serialp port
8051 serialp port8051 serialp port
8051 serialp port
 
Presentation (1)-3.pptx
Presentation (1)-3.pptxPresentation (1)-3.pptx
Presentation (1)-3.pptx
 
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD CoverterUniversal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
 
8251 USART.pptx
8251 USART.pptx8251 USART.pptx
8251 USART.pptx
 
8251 a basic
8251 a basic8251 a basic
8251 a basic
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav Shukla
 
Serial IO for 8051
Serial IO for 8051Serial IO for 8051
Serial IO for 8051
 
8051 serial communication
8051 serial communication8051 serial communication
8051 serial communication
 
Micro c lab8(serial communication)
Micro c lab8(serial communication)Micro c lab8(serial communication)
Micro c lab8(serial communication)
 
12 mt06ped019
12 mt06ped019 12 mt06ped019
12 mt06ped019
 
EC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdfEC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdf
 
Serial communication
Serial communicationSerial communication
Serial communication
 
SPI Protocol in LPC2148
SPI  Protocol in LPC2148SPI  Protocol in LPC2148
SPI Protocol in LPC2148
 
Serial.ppt and it contains all information
Serial.ppt and it contains all informationSerial.ppt and it contains all information
Serial.ppt and it contains all information
 
Lecture 10 (serial communication)
Lecture 10 (serial communication)Lecture 10 (serial communication)
Lecture 10 (serial communication)
 
Lecture 10 _serial_communication
Lecture 10 _serial_communicationLecture 10 _serial_communication
Lecture 10 _serial_communication
 
Serial data transfer
Serial data transferSerial data transfer
Serial data transfer
 

More from saravanamanikandan02

8051 port configuration
8051 port configuration8051 port configuration
8051 port configuration
saravanamanikandan02
 
Programmable dma controller 8237
Programmable dma controller 8237Programmable dma controller 8237
Programmable dma controller 8237
saravanamanikandan02
 
Timers of 8051
Timers of 8051Timers of 8051
Timers of 8051
saravanamanikandan02
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
saravanamanikandan02
 
Machine cycles
Machine cyclesMachine cycles
Machine cycles
saravanamanikandan02
 
Usart 8251
Usart 8251Usart 8251

More from saravanamanikandan02 (6)

8051 port configuration
8051 port configuration8051 port configuration
8051 port configuration
 
Programmable dma controller 8237
Programmable dma controller 8237Programmable dma controller 8237
Programmable dma controller 8237
 
Timers of 8051
Timers of 8051Timers of 8051
Timers of 8051
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
Machine cycles
Machine cyclesMachine cycles
Machine cycles
 
Usart 8251
Usart 8251Usart 8251
Usart 8251
 

Recently uploaded

WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 

Recently uploaded (20)

WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 

DATA TRANSFER SCHEMES OF 8085

  • 1. 8051 Microcontroller Data Transfer Schemes PREPAREDBY B.SARAVANAMANIKANDAN ASSISTANTPROFESSOR Kongunaducollegeof engineeringandtechnology
  • 2. SERIAL INTERFACE • Data transfer between memory and register, register and port and port to outside unit in these data transfers, a byte is transferred between two units. • Thus 8 bits are transferred in parallel. • This type of data transfer is mostly used for short distance, data transfer. • When data becomes more than few meters the parallel data transfer suffers from phenomenon called bit skewing. KNCET EEE DEPARTMENT
  • 3. ASYCHRONOUS and SYNCHRONOUS • In synchronous communication the transmission from one device and receipt at other devices is synchronized by a common clock, thus as one bit/byte is sent out from A to B. • Another variation of synchronous communication is when two units are quite apart, they are driven by individual clocks but these clocks are synchronized. • In Asynchronous Communication the transmission and reception are not synchronized. • A device can send its own and other device may receive it. In this case byte is enveloped in a data frame will have Start bit stop bit parity bit • The baud rate data transmission speed in terms per second also must be predefined. KNCET EEE DEPARTMENT
  • 4. • Serial data transfer in bit from received to parallel data in byte form for storage and processing. • Parallel data in memory to serial data ready to be transmitted • Such devices working in asynchronous mode are called USART. • The 8051 has on chip for serial communication. • RXD • TXD Serial Communication Modes • MODE 0 • MODE 1 • MODE 2 • MODE 3 KNCET EEE DEPARTMENT
  • 6. MODE 0: • Data is transmitted as well as received through the RxD pin. • The shift clock is supplied through the TxD pin. • 8 bits of data are transmitted and received. • The LSB is transmitted first and similarly while receiving. • The baud rate is 1/12 of a oscillator frequency. • Transmit Interrupt flag (TI) is set when data bytes are transmitted and Receive Interrupt(RI) flag is set after receiving bits. • The TI and RI flags are noting but SCON register. This mode corresponds to SM0=0 and SM1=0. KNCET EEE DEPARTMENT
  • 7. MODE 1: • Data is sent through the TxD pin and received through the RxD pin. A 10 bit frame containing 8 bit data (SM0=0), a start bit (=0) and a stop bit (=1) are used. • Thus there is a clear demarcation between end of one data frame and start of another data frame, once the stop bit is received. • The Stop bit is loaded into a bit cell RB8 in the SCON register. • As mode 0 here also an interrupt is generated once all the bit frames are received or transmitted. • Baud rate varies here the baud rate varied by changing preset count in the Timer1. • The start bit and stop bit are automatically added by the hardware by transmitting data. KNCET EEE DEPARTMENT
  • 8. MODE 2: • 11 bits are transmitted or received. This 11 bit frame is specified as: 1 bit for start 8 bits for data 1 bit can be programmed 1 bit for stop bit • The 9 data bit programmable. This bit TB8 bit in SCON register, this is effectively used while transmitting data. • With little software overhead, this bits can be used to send the parity of the byte that is to be transmitted. • Transmitting: If we want to use 9 th bit as a parity we must load the TB8 with the parity of the byte that is to be transmitted. ACC has the byte to be transmitted. • Receiving: on reception of frame the 9 th bit goes to RB8 of the SCON register. The stop bit is ignored the baud rate in this mode is programmable either 1/32 or 1/64 of the oscillator frequency By making SMOD = 0 baud rate can be set to 1/64 of oscillator frequency, SMOD = 1 baud rate can be set to 1/32 of oscillator frequency. SMOD is 7 th bit PCON after SFR. KNCET EEE DEPARTMENT
  • 9. MODE 3: • This mode is same as the mode 2 expect for baud rate. • Here the baud rate is variable as in case of mode 1. • The baud rate depends on overflow rate of timer 1. • By changing preset count in Timer 1 baud rate can be varied. Baud rate calculation = Timer 1 overflow rate n Where n is an integer and its value is either 32 or 16 If SMOD = 1 then n =16 else n = 32 Overflow rate = rate at which the counting in done /256-TH1 KNCET EEE DEPARTMENT
  • 11. PCON • Power control register through which certain power control functions in CMOS version of the 8051 implemented. • In the HMOS version all the bits of PCON except 7 bit are dummy. • Bit 7 is SMOD and is used in both CMOS and HMOS versions to double baud rate in mode 1,2 and 3. • PCON is not bit addressable. KNCET EEE DEPARTMENT