Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 74

MICROPROCESSORS AND

MICROCONTROLLERS

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 1
UNIT - III

PERIPHERALS
AND
DEVICES

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 2
DMA
• It does the Data Transfer in following modes:
• Single Transfer Mode
• Block Transfer Mode
• Demand Transfer Mode

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 3
8237 Pin Diagram

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 4
8237 DMA Controller
• It has total 25 registers:
• 16-bit Current Address Register (4)
• 16-bit Current Word Register (4)
• 16-bit Base Address Register (4)
• 16-bit Base Word Count Register (4)
• 8-bit Mode Register (4)
• 8-bit Command Register
• 8-bit Request Register
• 8-bit Mask Register
• 8-bit Status Register
• 8-bit Temporary Register
Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 5
8237 Block Diagram

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 6
8237 Mode Register

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 7
8237 Command Register

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 8
8237 Request Register

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 9
8237 Mask Register

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 10
8237 Mask Register

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 11
8237 Status Register

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 12
8237 Command Codes

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 13
8237 Channel Addresses

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 14
Interfacing with 8086
Address buss A0-A15

OE# 8 BIT
STB LATCH
A0-A15 BUSEN
AEN A0-A3 A4-A7 CS/ ADSTB
HOLD HRQ
DB0-DB7
HOLDA HLDA I8237A
DREQ0-3
DACK0-3
CPU CLK RESET MEMR# MEMW# IOR# IOW#

CLOCK
RESET
MEMR#
MEMW#
IOR#
IOW#
Control buss
D0-D7
Sistem data buss

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 15
Interfacing with 8086

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 16
8259 PIC Architecture

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 17
Programming 8259

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 18
ICW 1

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 19
ICW 2

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 20
ICW 3

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 21
ICW 4

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 22
OCW 1

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 23
OCW 2

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 24
OCW 3

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 25
Modes

• Fully Nested mode


• Special Fully Nested mode
• Nonspecific Rotating
• Specific Rotating
• Special Mask
• Polling

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 26
Interfacing to 8086

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 27
Cascading of interrupt controller and its
importance

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 28
Cascading of interrupt controller and its importance

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 29
Serial data transfer schemes

• Communication Modes
• Simplex
• Half Duplex
• Full Duplex
• Transmission Modes
• Asynchronous Transmission
• Synchronous Transmission

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 30
Asynchronous Transmission

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 31
Synchronous Transmission

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 32
RS232C

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 33
RS232C Signal Definitions

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 34
Digital Data Transmission using MODEM

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 35
TTL to RS232C (MC1488) conversion

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 36
RS232C to TTL (MC1489) conversion

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 37
8251 USART Pin Diagram

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 38
8251 USART Architecture

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 39
Mode Instruction Format (Async)

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 40
Mode Instruction Format (Sync)

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 41
Command Instruction Format

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 42
Status Read Instruction Format

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 43
Interfacing

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 44
Interfacing

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 45
8255 PPI

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 46
8255 PPI

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 47
8255 PPI

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 48
8255 PPI

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 49
8255 PPI

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 50
8255 PPI

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 51
8255 PPI

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 52
8255 PPI

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 53
8255 PPI

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 54
8255 PPI

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 55
8255 PPI

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 56
8255 PPI

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 57
Pin Diagram of DAC 0800

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 58
Interfacing DAC0800 with 8086

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 59
Pin Diagram of AD7523

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 60
Interfacing AD7523 with 8086

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 61
Pin Diagram of ADC 0808/0809

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 62
Block Diagram of ADC 0808/0809

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 63
Timing Diagram Of ADC 0808

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 64
Interfacing ADC0808 with 8086

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 65
Stepper Motor

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 66
Stepper Motor

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 67
Seven Segment Display Interfacing

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 68
Seven Segment Display Interfacing

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 69
Keyboard Interfacing

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 70
Keyboard Interfacing

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 71
TUTORIAL
• Develop an ALP to display the message “Lbrce” on seven-segment display
unit and draw the interfacing diagram with 8086.
• Draw the Key board interfacing diagram with 8086 and develop an ALP to
detect the depression of a key.

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 72
TUTORIAL
• Develop an ALP to generate the Triangular waveform for 5 cycles and draw
the interfacing diagram of DAC with 8086.
• Develop an ALP to convert the Analog signal into Digital signal and draw the
interfacing diagram of ADC with 8086.

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 73
End

Friday, June 17, 2022 Department of Electronics and Communication Engineering, LBRCE 74

You might also like