Download - Interfacing methods of microcontroller
![Page 1: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/1.jpg)
Presented By :- Diwaker PantME (REGULAR- 2011)NITTTR CHD
![Page 2: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/2.jpg)
What is Interfacing.
Need of interfacing.
Micro-controller Interfacing – Basics.
Interfacing Methods.
Microcontroller Interfaces Examples.
April 13, 2023 Presented by :- Diwaker Pant 2
![Page 3: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/3.jpg)
Transfer of data between microcontrollers and peripherals (memory, I/O devices etc.) implemented using buses called interfacing.
Connecting the computation capabilities of a microcontroller to external signals or to external world.
Creating man-machine interaction.
April 13, 2023 Presented by :- Diwaker Pant 3
![Page 4: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/4.jpg)
The basic need is to have some input/output peripherals and man-machine interface.
Interactions with a computer or TV are possible using the mouse /keyboard/display screen.
The no. of real world devices and systems like mobile phone and washing m/c need the keypad and display to enable human-computer interactions.
April 13, 2023 Presented by :- Diwaker Pant 4
![Page 5: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/5.jpg)
April 13, 2023 Presented by :- Diwaker Pant 5
![Page 6: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/6.jpg)
Address bus for example (A15-A0).
Data bus for example (D7-D0).
Control lines : For example in 8051 microcontroller.
EA (External Access). ALE (Address Latch Enable). PSEN (Program Store Enable). RD, WR
April 13, 2023 Presented by :- Diwaker Pant 6
![Page 7: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/7.jpg)
Wires:◦ Unidirectional ◦ Bi-directional
Bus◦ Set of wires with a
single function. Address bus, Data bus
April 13, 2023 Presented by :- Diwaker Pant 7
Microcontroller
Memory(ROM)
Data Bus
AddressBus
Enable
RD/WR
![Page 8: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/8.jpg)
Connects bus to microcontroller or memory Often referred to as a pin
◦ Actual pins on periphery of IC package that plug into socket on printed-circuit board
◦ Today, metal “pads” connecting processors and memories within single IC
April 13, 2023 Presented by :- Diwaker Pant 8
Microcontroller(8051)
P0
P2
P1
P3
ALELATCHEnable
PSENROM
OE
![Page 9: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/9.jpg)
Micro-controllers are useful to the extent that they communicate with other devices, such as sensors , motors, switches, keypads , displays memory and even other micro-controllers.
To solve the complex problem of balancing circuit design criteria such as
• Features , Cost , Size , Weight• Power consumption , Reliability ,
Manufacturability
April 13, 2023 Presented by :- Diwaker Pant 9
![Page 10: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/10.jpg)
April 13, 2023 Presented by :- Diwaker Pant 10
![Page 11: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/11.jpg)
Advantages
April 13, 2023 Presented by :- Diwaker Pant 11
Disadvantages
Simplest interface.
Lowest-cost to implement.
High speed
Low programming overhead
Only on/off control/monitoring
Short distance, few feet maximum.
Single device control/monitoring
![Page 12: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/12.jpg)
Digital Input Digital output
Reading the status of buttons or switches
Keypad Interface
Sensor Interface
Relay control
LED Display
LCD
DAC
April 13, 2023 Presented by :- Diwaker Pant 12
![Page 13: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/13.jpg)
Advantages Disadvantages
Simple interface
High speed
Low programming overhead
Not all microcontrollers have analog I/O.
Complicates the circuit design when external ADC /DAC are needed.
Short distance, few feet maximum.April 13, 2023 Presented by :- Diwaker Pant 13
![Page 14: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/14.jpg)
April 13, 2023 Presented by :- Diwaker Pant 14
![Page 15: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/15.jpg)
April 13, 2023Presented by :- Diwaker Pant 15
![Page 16: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/16.jpg)
April 13, 2023 Presented by :- Diwaker Pant 16
![Page 17: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/17.jpg)
April 13, 2023Presented by :- Diwaker Pant 17
![Page 18: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/18.jpg)
April 13, 2023 Presented by :- Diwaker Pant 18
PIC I/O Port
![Page 19: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/19.jpg)
April 13, 2023Presented by :- Diwaker Pant 19
Pin No.
Function
Description
1 Vss Connected to Ground
2 Vcc +5v supply
3 VEE Contrast control Power supply
4 RS 0=Select Command Register1=Select Data Register
5 R/W 1=Read , 0=Write
6 EN Enable
7-14 DB0-DB7
8-bit data bus
![Page 20: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/20.jpg)
April 13, 2023 Presented by :- Diwaker Pant 20
PIC16F8XX
![Page 21: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/21.jpg)
April 13, 2023Presented by :- Diwaker Pant 21
Serial Bus system is divided in two categories.
1. I2C (Inter Integrated Circuit Bus).
2. SPI (Serial Peripheral Interface Bus).
I2C is 2 wire, one master multiple slaves system.
SPI is 4 wire , one master multiple slaves system.
![Page 22: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/22.jpg)
In this system two signal (wire) are there namely SDA= Serial Data wire. SCL= Serial Clock wire.
To start the communications, the bus master (typically a microcontroller) places the address of the device with which it intends to communicate (the slave) on the bus. All slave devices monitor the bus to determine if the master device is sending their address. Only the device with the correct address communicates with the master.
April 13, 2023Presented by :- Diwaker Pant 22
![Page 23: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/23.jpg)
April 13, 2023Presented by :- Diwaker Pant 23
PIC
SDASCL
![Page 24: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/24.jpg)
In this system 4 signal wires are used.
1.CS= Chip Select
2.DIN= Data In
3.DOUT= Data Out
4.CLK= Clock Signal
April 13, 2023Presented by :- Diwaker Pant 24
![Page 25: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/25.jpg)
SPI bus is a master/slave interface.
Whenever two devices communicate, one is referred to as the "master" and the other as the "slave" device.
The master drives the serial clock.
SPI is full duplex: Data is simultaneously transmitted and received.
April 13, 2023Presented by :- Diwaker Pant 25
![Page 26: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/26.jpg)
April 13, 2023Presented by :- Diwaker Pant 26
PIC-16F8XXMULTIMEDIA
CARDMMC
CS
DIN
CLK
DOUT
![Page 27: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/27.jpg)
April 13, 2023Presented by :- Diwaker Pant 27
![Page 28: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/28.jpg)
We can say that by the help of suitable interfacing methods we can create Man-Machine interaction.
Nowadays all automatic systems uses embedded system and by the help of interfacing we can enjoy the technology and can make the technology more user friendly.
April 13, 2023 Presented by :- Diwaker Pant 28
![Page 29: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/29.jpg)
Microcontrollers(Theory and applications)-Ajay V. Deshmukh( Page no.215- 232).
Microcontroller interfacing techniques by BiPOM Electronics, INC (www.bipom.com)
April 13, 2023Presented by :- Diwaker Pant
29
![Page 30: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/30.jpg)
? Query
April 13, 2023 Presented by :- Diwaker Pant 30
![Page 31: Interfacing methods of microcontroller](https://reader035.vdocuments.us/reader035/viewer/2022062308/558a4272d8b42a6f578b4607/html5/thumbnails/31.jpg)
April 13, 2023 Presented by :- Diwaker Pant 31