SlideShare a Scribd company logo
1 of 10
Peripheral 8245
The 8254 programmable interval timer consists of three independent 16-bit programmable
counters(timers). Each counter is capable of counting in binary or binary-coded decimal
(BCD). The maximum allowable input frequency to any counter is 10 MHz. This device is
useful wherever the microprocessor must control real-time events.
This timer also appears in the personal computer decoded at ports 40H–43H to do the
following:
1. Generate a basic timer interrupt that occurs at approximately 18.2 Hz.
2. Cause the DRAM memory system to be refreshed.
3. Provide a timing source to the internal speaker and other devices. The timer in the
personal computer is an 8253 instead of an 8254.
8254 Functional Description: Each timer contains a CLK input, a gate input, and an
output(OUT) connection. The CLK input provides the basic operating frequency to the timer,
the gate pin controls the timer in some modes, and the OUT pin is where we obtain the
output of the timer. The signals that connect to the microprocessor are the data bus pins
(D7–D0), , , ,and address inputs A1 and A0. The address inputs are present to select any of
the four internal registers used for programming, reading, or writing to a counter.
MODE 0 : Allows the 8254 counter to be used as an events counter. In this mode, the output becomes a
logic 0 when the control word is written and remains there until N plus the number of programmed
counts. For example, if a count of 5 is programmed, the output will remain a logic 0 for 6 counts
beginning with N. Note that the gate (G) input must be a logic 1 to allow the counter to count. If G
becomes a logic 0 in the middle of the count, the counter will stop until G again becomes a logic 1.
MODE 1 Causes the counter to function as a retriggerable, monostable multivibrator (one-shot). In this
mode the G input triggers the counter so that it develops a pulse at the OUT connection that becomes a
logic 0 for the duration of the count. If the count is 10, then the OUT connection goes low for 10 clocking
periods when triggered. If the G input occurs within the duration of the output pulse, the counter is again
reloaded with the count and the OUT connection continues for the total length of the count
Mode2 Allows the counter to generate a series of continuous pulses that are one clock pulse wide. The
separation between pulses is determined by the count. For example, for a count of 10, the output is a
logic 1 for nine clock periods and low for one clock period. This cycle is repeated until the counter is
programmed with a new count or until the G pin is placed at a logic 0 level. The G input must be a logic 1
for this mode to generate a continuous series of pulses.
MODE 3 Generates a continuous square wave at the OUT connection, provided that the G pin is a logic 1.
If the count is even, the output is high for one half of the count and low for one half of the count. If the
count is odd, the output is high for one clocking period longer than it is low. For example, if the counter
is programmed for a count of 5, the output is high for three clocks and low for two clocks.
MODE 4 Allows the counter to produce a single pulse at the output. If the count is programmed as a 10,
the output is high for 10 clocking periods and low for one clocking period. The cycle does not begin until
the counter is loaded with its complete count. This mode operates as a software triggered oneshot.As
with modes 2 and 3, this mode also uses the G input to enable the counter. The G input must be a logic
1 for the counter to operate for these three modes.
MODE 5 A hardware triggered one-shot that functions as mode 4, except that it is started by a trigger
pulse on the G pin instead of by software. This mode is also similar to mode 1 because it is retriggerable.
Reading Counter: Each counter has an internal latch that is read with the read counter port
operation. These latches will normally follow the count. If the contents of the counter are
needed, then the latch can remember the count by programming the counter latch control
word which causes the contents of the counter to be held in a latch until they is read. When
it is necessary for the contents of more than one counter to be read at the same time, we
use the read-back control word, illustrated in Figure 11–38. With the read-back control
word, the bit is a logic 0 to cause the counters selected by CNT0, CNT1, and CNT2 to be
latched. If the status register is to be latched, then the bit is placed at a logic
The 16550 is a universal asynchronous receiver/transmitter (UART) that is fully compatible with the
Intel microprocessors. The 16550 is capable of operating at 0–1.5 M baud. Baud rate is the number of
bits transferred per second(bps), including start, stop, data, and parity (Bps is bytes per second and bps
are bits per second).The 16550 also includes a programmable baud rate generator and separate FIFOs for
input and output data to ease the load on the microprocessor. Each FIFO contains 16 bytes of
storage.This is the most common communications interface found in modem microprocessor-based
equipment.
Asynchronous serial data are transmitted and received without a clock or timing signal. Each frame
contains a start bit, seven data bits, parity, and one stop bit.
The contents of the 16550 line control register
The operation of the ST and parity bits
the baud rate=18.432 MHz/(16 × divisor value)
the divisor value=18.432 MHz ÷(16× baud rate)
An asynchronous system requires seven data bits, odd parity a baud rate of 9600, and one stop bit.Write
a procedure that initializes the 16550 to function in this manner.
Baud rate 9600, 7 data, odd parity, 1 stop
LINE EQU 0F3H
LSB EQU 0F0H
MSB EQU 0F1H
FIFO EQU 0F2H
START PROC NEAR
MOV AL,10001010B ;enable baud rate divisor
OUT LINE,AL
MOV AL,120 ;program baud 9600
OUT LSB,AL
MOV AL,0
OUT MSB,AL
MOV AL,00001010B ;program 7 data, odd
OUT LINE,AL ;parity, 1 stop
MOV AL,00000111B ;enable transmitter and
OUT FIFO,AL ;receiver
RET
START ENDP
Sending Serial Data: A procedure that transmits AH via the 16650 UART
LSTAT EQU 0F5H ;line status port
DATA EQU 0F0H ;data port
SEND PROC NEAR
PUSH AX ;save AX
IN AL,LSTAT ;get line status register
TEST AL,20H ;test TH bit
JZ SEND ;if transmitter not ready
MOV AL,AH ;get data
OUT DATA,AL ;transmit data
POP AX ;restore AX
RET
SEND ENDP
Receive Serial Data:A procedure that receives data from the 16550 UART and returns it in AL.
LSTAT EQU 0F5H ;line status port
DATA EQU 0F0H ;data port
RECV PROC NEAR
IN AL,LSTAT ;get line status register
TEST AL,1 ;test DR bit
JZ RECV ;if no data in receiver
TEST AL,0EH ;test all 3 error bits
JNZ ERR ;for an error
IN AL,DATA ;read data from 16550
RET
ERR:
MOV AL,’?’ ;get question mark
RET
RECV ENDP
UART Errors: The types of errors detected by the 16550 are parity error, framing error, and overrun error.
A parity error indicates that the received data contain the wrong parity. A framing error indicates that the
start and stop bits are not in their proper places. An overrun error indicates that data have overrun the
internal receiver FIFO buffer. These errors should not occur during normal operation. If a parity error
occurs, it indicates that noise was encountered during reception. A framing error occurs if the receiver is
receiving data at an incorrect baud rate. An overrun error occurs only if the software fails to read the data
from the UART before the receiver FIFO is full. This example does not test the BI (break indicator bit) for a
break condition. Note that a break is two consecutive frames of logic 0s on the SIN pin of the UART.
FIFO Control Register
Line Status Register
THE 8237 DMA CONTROLLER
InternalRegisters
CAR The currentaddress register is used to hold the 16-bit memory address used forthe DMA
transfer. Each channel has its own current address registerfor this purpose.When a byte of data is transferred
during a DMA operation, the CAR is either incremented or decremented, depending on how it is programmed.
CWCR The currentword countregister programs a channel for the number of bytes (up to 64K)
transferred during a DMA action. The number loaded into this registeris one less than the number of bytes
transferred. For example, if a 10 is loaded into the CWCR,then 11 bytes are transferred during the DMA action.
BA and BWC The base address (BA)and base word count (BWC)registers are used when auto-initialization is
selected fora channel. In the auto-initialization mode,these registers are used to reload both the CAR and CWCR
after the DMA action is completed.This allows the same count and address to be used to transfer data from the
same memoryarea.
Peripheral 8245,16550&8237 dma controller

More Related Content

What's hot

Microprocessor Part 3
Microprocessor    Part  3Microprocessor    Part  3
Microprocessor Part 3Sajan Agrawal
 
8051 microcontroller notes continuous
8051 microcontroller notes continuous 8051 microcontroller notes continuous
8051 microcontroller notes continuous THANDAIAH PRABU
 
8051 Programming Instruction Set
 8051 Programming Instruction Set 8051 Programming Instruction Set
8051 Programming Instruction SetShreyans Pathak
 
Microcontroller Instruction Set atmel
Microcontroller Instruction Set atmelMicrocontroller Instruction Set atmel
Microcontroller Instruction Set atmelRuderocker Billy
 
8051 training an interactive tutorial
8051 training an interactive tutorial8051 training an interactive tutorial
8051 training an interactive tutorialFutura infotech
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...NimeshSingh27
 
Architecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerArchitecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerSudhanshu Janwadkar
 
Unit iv microcontrollers final
Unit iv microcontrollers finalUnit iv microcontrollers final
Unit iv microcontrollers finalSARITHA REDDY
 
AVR programming - BASICS
AVR programming - BASICSAVR programming - BASICS
AVR programming - BASICSRobotix 2011
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing ModesSenthil Kumar
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction setprakash y
 

What's hot (20)

Microprocessor Part 3
Microprocessor    Part  3Microprocessor    Part  3
Microprocessor Part 3
 
8051 Presentation
8051 Presentation8051 Presentation
8051 Presentation
 
Avr report
Avr reportAvr report
Avr report
 
8051 microcontroller notes continuous
8051 microcontroller notes continuous 8051 microcontroller notes continuous
8051 microcontroller notes continuous
 
Lec14
Lec14Lec14
Lec14
 
8051 Timers
8051 Timers8051 Timers
8051 Timers
 
8051 Programming Instruction Set
 8051 Programming Instruction Set 8051 Programming Instruction Set
8051 Programming Instruction Set
 
Ec8791 lpc2148 timer unit
Ec8791 lpc2148 timer unitEc8791 lpc2148 timer unit
Ec8791 lpc2148 timer unit
 
Microcontroller Instruction Set atmel
Microcontroller Instruction Set atmelMicrocontroller Instruction Set atmel
Microcontroller Instruction Set atmel
 
Interfacing 8255
Interfacing 8255Interfacing 8255
Interfacing 8255
 
8051 training an interactive tutorial
8051 training an interactive tutorial8051 training an interactive tutorial
8051 training an interactive tutorial
 
I/O Ports
I/O Ports I/O Ports
I/O Ports
 
8051 microprocessor
8051 microprocessor8051 microprocessor
8051 microprocessor
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
 
8051 microcontrollers ch3
8051 microcontrollers ch38051 microcontrollers ch3
8051 microcontrollers ch3
 
Architecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerArchitecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 Microcontroller
 
Unit iv microcontrollers final
Unit iv microcontrollers finalUnit iv microcontrollers final
Unit iv microcontrollers final
 
AVR programming - BASICS
AVR programming - BASICSAVR programming - BASICS
AVR programming - BASICS
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing Modes
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
 

Viewers also liked

Viewers also liked (7)

Thunderbolt by amit
Thunderbolt by amitThunderbolt by amit
Thunderbolt by amit
 
Dma
DmaDma
Dma
 
Thunderbolt
ThunderboltThunderbolt
Thunderbolt
 
07 Input Output
07  Input  Output07  Input  Output
07 Input Output
 
Thunderbolt
ThunderboltThunderbolt
Thunderbolt
 
Thunderbolt Technology : The Transformational PC I/O
Thunderbolt Technology: The Transformational PC I/OThunderbolt Technology: The Transformational PC I/O
Thunderbolt Technology : The Transformational PC I/O
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 

Similar to Peripheral 8245,16550&8237 dma controller

unit 2 lect 6 AND 7 8254.pptx
unit 2 lect 6 AND 7 8254.pptxunit 2 lect 6 AND 7 8254.pptx
unit 2 lect 6 AND 7 8254.pptxDrVikasMahor
 
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. KawareMicroprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. KawareProf. Swapnil V. Kaware
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085ShivamSood22
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notesDr.YNM
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollersgomathy S
 
8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.pptkhushiduppala
 
EC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdfEC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdfSPonmalar1
 
8254 timer - Microprocessor and interfacing
8254 timer - Microprocessor and interfacing8254 timer - Microprocessor and interfacing
8254 timer - Microprocessor and interfacingAmitabh Shukla
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecturedeval patel
 
8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijayVijay Kumar
 
Advanced Embedded Automatic Car Parking System
	Advanced Embedded Automatic Car Parking System	Advanced Embedded Automatic Car Parking System
Advanced Embedded Automatic Car Parking Systemtheijes
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)Vasu Ch
 
janakiraman I msc 4 unit
janakiraman I msc 4 unitjanakiraman I msc 4 unit
janakiraman I msc 4 unitjanakiramang6
 
janakiraman egsp collage I msc 4 unit
janakiraman egsp collage  I msc 4 unitjanakiraman egsp collage  I msc 4 unit
janakiraman egsp collage I msc 4 unitjanakiramang6
 
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 CoverterTejas Shetye
 
moving message display of lcd
 moving message display of lcd moving message display of lcd
moving message display of lcdabhishek upadhyay
 

Similar to Peripheral 8245,16550&8237 dma controller (20)

unit 2 lect 6 AND 7 8254.pptx
unit 2 lect 6 AND 7 8254.pptxunit 2 lect 6 AND 7 8254.pptx
unit 2 lect 6 AND 7 8254.pptx
 
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. KawareMicroprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
8155 GPPI
8155 GPPI8155 GPPI
8155 GPPI
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
 
Assembler4
Assembler4Assembler4
Assembler4
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollers
 
8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt
 
EC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdfEC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdf
 
8254 timer - Microprocessor and interfacing
8254 timer - Microprocessor and interfacing8254 timer - Microprocessor and interfacing
8254 timer - Microprocessor and interfacing
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
 
8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay
 
Advanced Embedded Automatic Car Parking System
	Advanced Embedded Automatic Car Parking System	Advanced Embedded Automatic Car Parking System
Advanced Embedded Automatic Car Parking System
 
8253,8254
8253,8254 8253,8254
8253,8254
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)
 
NAVEEN UART BATCH 43
NAVEEN UART BATCH 43NAVEEN UART BATCH 43
NAVEEN UART BATCH 43
 
janakiraman I msc 4 unit
janakiraman I msc 4 unitjanakiraman I msc 4 unit
janakiraman I msc 4 unit
 
janakiraman egsp collage I msc 4 unit
janakiraman egsp collage  I msc 4 unitjanakiraman egsp collage  I msc 4 unit
janakiraman egsp collage I msc 4 unit
 
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
 
moving message display of lcd
 moving message display of lcd moving message display of lcd
moving message display of lcd
 

Recently uploaded

VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 

Recently uploaded (20)

VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 

Peripheral 8245,16550&8237 dma controller

  • 1. Peripheral 8245 The 8254 programmable interval timer consists of three independent 16-bit programmable counters(timers). Each counter is capable of counting in binary or binary-coded decimal (BCD). The maximum allowable input frequency to any counter is 10 MHz. This device is useful wherever the microprocessor must control real-time events. This timer also appears in the personal computer decoded at ports 40H–43H to do the following: 1. Generate a basic timer interrupt that occurs at approximately 18.2 Hz. 2. Cause the DRAM memory system to be refreshed. 3. Provide a timing source to the internal speaker and other devices. The timer in the personal computer is an 8253 instead of an 8254. 8254 Functional Description: Each timer contains a CLK input, a gate input, and an output(OUT) connection. The CLK input provides the basic operating frequency to the timer, the gate pin controls the timer in some modes, and the OUT pin is where we obtain the output of the timer. The signals that connect to the microprocessor are the data bus pins (D7–D0), , , ,and address inputs A1 and A0. The address inputs are present to select any of the four internal registers used for programming, reading, or writing to a counter.
  • 2. MODE 0 : Allows the 8254 counter to be used as an events counter. In this mode, the output becomes a logic 0 when the control word is written and remains there until N plus the number of programmed counts. For example, if a count of 5 is programmed, the output will remain a logic 0 for 6 counts beginning with N. Note that the gate (G) input must be a logic 1 to allow the counter to count. If G becomes a logic 0 in the middle of the count, the counter will stop until G again becomes a logic 1. MODE 1 Causes the counter to function as a retriggerable, monostable multivibrator (one-shot). In this mode the G input triggers the counter so that it develops a pulse at the OUT connection that becomes a logic 0 for the duration of the count. If the count is 10, then the OUT connection goes low for 10 clocking periods when triggered. If the G input occurs within the duration of the output pulse, the counter is again reloaded with the count and the OUT connection continues for the total length of the count Mode2 Allows the counter to generate a series of continuous pulses that are one clock pulse wide. The separation between pulses is determined by the count. For example, for a count of 10, the output is a logic 1 for nine clock periods and low for one clock period. This cycle is repeated until the counter is programmed with a new count or until the G pin is placed at a logic 0 level. The G input must be a logic 1 for this mode to generate a continuous series of pulses.
  • 3. MODE 3 Generates a continuous square wave at the OUT connection, provided that the G pin is a logic 1. If the count is even, the output is high for one half of the count and low for one half of the count. If the count is odd, the output is high for one clocking period longer than it is low. For example, if the counter is programmed for a count of 5, the output is high for three clocks and low for two clocks. MODE 4 Allows the counter to produce a single pulse at the output. If the count is programmed as a 10, the output is high for 10 clocking periods and low for one clocking period. The cycle does not begin until the counter is loaded with its complete count. This mode operates as a software triggered oneshot.As with modes 2 and 3, this mode also uses the G input to enable the counter. The G input must be a logic 1 for the counter to operate for these three modes. MODE 5 A hardware triggered one-shot that functions as mode 4, except that it is started by a trigger pulse on the G pin instead of by software. This mode is also similar to mode 1 because it is retriggerable. Reading Counter: Each counter has an internal latch that is read with the read counter port operation. These latches will normally follow the count. If the contents of the counter are needed, then the latch can remember the count by programming the counter latch control word which causes the contents of the counter to be held in a latch until they is read. When it is necessary for the contents of more than one counter to be read at the same time, we use the read-back control word, illustrated in Figure 11–38. With the read-back control word, the bit is a logic 0 to cause the counters selected by CNT0, CNT1, and CNT2 to be latched. If the status register is to be latched, then the bit is placed at a logic
  • 4. The 16550 is a universal asynchronous receiver/transmitter (UART) that is fully compatible with the Intel microprocessors. The 16550 is capable of operating at 0–1.5 M baud. Baud rate is the number of bits transferred per second(bps), including start, stop, data, and parity (Bps is bytes per second and bps are bits per second).The 16550 also includes a programmable baud rate generator and separate FIFOs for input and output data to ease the load on the microprocessor. Each FIFO contains 16 bytes of storage.This is the most common communications interface found in modem microprocessor-based equipment. Asynchronous serial data are transmitted and received without a clock or timing signal. Each frame contains a start bit, seven data bits, parity, and one stop bit.
  • 5. The contents of the 16550 line control register The operation of the ST and parity bits the baud rate=18.432 MHz/(16 × divisor value)
  • 6. the divisor value=18.432 MHz ÷(16× baud rate) An asynchronous system requires seven data bits, odd parity a baud rate of 9600, and one stop bit.Write a procedure that initializes the 16550 to function in this manner. Baud rate 9600, 7 data, odd parity, 1 stop LINE EQU 0F3H LSB EQU 0F0H MSB EQU 0F1H FIFO EQU 0F2H START PROC NEAR MOV AL,10001010B ;enable baud rate divisor OUT LINE,AL MOV AL,120 ;program baud 9600 OUT LSB,AL MOV AL,0 OUT MSB,AL MOV AL,00001010B ;program 7 data, odd OUT LINE,AL ;parity, 1 stop MOV AL,00000111B ;enable transmitter and OUT FIFO,AL ;receiver RET START ENDP Sending Serial Data: A procedure that transmits AH via the 16650 UART LSTAT EQU 0F5H ;line status port DATA EQU 0F0H ;data port
  • 7. SEND PROC NEAR PUSH AX ;save AX IN AL,LSTAT ;get line status register TEST AL,20H ;test TH bit JZ SEND ;if transmitter not ready MOV AL,AH ;get data OUT DATA,AL ;transmit data POP AX ;restore AX RET SEND ENDP Receive Serial Data:A procedure that receives data from the 16550 UART and returns it in AL. LSTAT EQU 0F5H ;line status port DATA EQU 0F0H ;data port RECV PROC NEAR IN AL,LSTAT ;get line status register TEST AL,1 ;test DR bit JZ RECV ;if no data in receiver TEST AL,0EH ;test all 3 error bits JNZ ERR ;for an error IN AL,DATA ;read data from 16550 RET ERR: MOV AL,’?’ ;get question mark RET RECV ENDP UART Errors: The types of errors detected by the 16550 are parity error, framing error, and overrun error. A parity error indicates that the received data contain the wrong parity. A framing error indicates that the start and stop bits are not in their proper places. An overrun error indicates that data have overrun the internal receiver FIFO buffer. These errors should not occur during normal operation. If a parity error occurs, it indicates that noise was encountered during reception. A framing error occurs if the receiver is receiving data at an incorrect baud rate. An overrun error occurs only if the software fails to read the data from the UART before the receiver FIFO is full. This example does not test the BI (break indicator bit) for a break condition. Note that a break is two consecutive frames of logic 0s on the SIN pin of the UART.
  • 8. FIFO Control Register Line Status Register THE 8237 DMA CONTROLLER
  • 9. InternalRegisters CAR The currentaddress register is used to hold the 16-bit memory address used forthe DMA transfer. Each channel has its own current address registerfor this purpose.When a byte of data is transferred during a DMA operation, the CAR is either incremented or decremented, depending on how it is programmed. CWCR The currentword countregister programs a channel for the number of bytes (up to 64K) transferred during a DMA action. The number loaded into this registeris one less than the number of bytes transferred. For example, if a 10 is loaded into the CWCR,then 11 bytes are transferred during the DMA action. BA and BWC The base address (BA)and base word count (BWC)registers are used when auto-initialization is selected fora channel. In the auto-initialization mode,these registers are used to reload both the CAR and CWCR after the DMA action is completed.This allows the same count and address to be used to transfer data from the same memoryarea.