Top Banner
20
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Pci
Page 2: Pci

F e a t u r e s

• The Intel 8251 is an universal synchronous and

asynchronous communication controller.

• It supports standard asynchronous protocol with:

5 to 8 bit character format

Odd, even or no parity generation and detection

Baud rate of 19.2 KBaud

False start bit detection

Automatically break detect and handling

Break character generator

Page 3: Pci

• It has built in baud rate generator.

• It supports standard synchronous

protocol with:

5 to 8 bit character format

Internal and external character

synchronization

Automatic sync insertion

Baud rate of 64 KBaud

Page 4: Pci

• It allows full duplex transmission and

reception.

• It provider error detection logic, which

detects parity, overrun and framing errors.

• It has Modem Control Logic, which supports

basic data set control signals.

• It is compatible with an extended range of

Intel microprocessors.

Page 5: Pci

• It provides separate clock inputs for

receiver and transmitter sections, thus

providing an option of fixing different

baud rates for the transmitter and

receiver section.

• It is 28 pin IC package.

Page 6: Pci

P I N d i a g r a m

Page 7: Pci

p i n d e s c r i p t i o n

•D0 to D7 (I/O Terminal): This is

bidirectional data bus which

receive control words, transmits

data from the CPU, sends status

words and received data to CPU.

Page 8: Pci

• RESET (Input Terminal): A “High” on

this input forces the 8251 into “reset

status.” The device waits for the

writing of “mode instruction”

• CLK (Input Terminal): CLK signal is

used to generate internal device timing.

CLK signal is independent of RXC or

TXC.

Page 9: Pci

• WR (Input Terminal): This is the "active low"

input terminal which receives a signal for

writing transmit data and control words from

the CPU into the 8251.

• RD (Input Terminal): This is the "active low"

input terminal which receives a signal for

reading receive data and status words from

the 8251.

Page 10: Pci

• C/D (Input Terminal): This is an input terminal

which receives a signal for selecting data or

command words and status words when the 8251 is

accessed by the CPU. If C/D = low, data will be

accessed. If C/D = high, command word or status

word will be accessed.

• CS (Input Terminal): This is the "active low" input

terminal which selects the 8251 at low level when

the CPU accesses.

Page 11: Pci

• TXD (Output Terminal): This is an

output terminal for transmitting data

from which serial-converted data is

sent out.

• TXRDY (Output Terminal): This is an

output terminal which indicates that

the 8251 is ready to accept a

transmitted data character.

Page 12: Pci

• TXEMPTY (Output Terminal): This is an

output terminal which indicates that the 8251

has transmitted all the characters and had no

data character.

• TXC (Input Terminal): This is a clock input

signal which determines the transfer speed of

transmitted data. In "synchronous mode," the

baud rate will be the same as the frequency

of TXC.

Page 13: Pci

• RXD (Input Terminal): This is a terminal

which receives serial data.

• RXRDY (Output Terminal): This is a

terminal which indicates that the 8251

contains a character that is ready to READ.

• RXC (Input Terminal): This is a clock input

signal which determines the transfer speed of

received data. In "synchronous mode," the

baud rate is the same as the frequency of

RXC.

Page 14: Pci

• SYNDET (Sync Detect)/BRKDET (Break

Detect) (Input or Output Terminal): This

pin is used in synchronous mode for

detection of synchronous characters.

In asynchronous mode this pin goes high

to indicate a break in the data stream.

Page 15: Pci

• DSR (Data Set Ready) (Input Terminal):

This is an input port for MODEM

interface. The input status of the terminal

can be recognized by the CPU reading

status words.

• DTR (Data Terminal Ready) (Output

Terminal): This is an output port for

MODEM interface. It is possible to set

the status of DTR by a command.

Page 16: Pci

• CTS (Clear To Send) (Input Terminal):

This is an input terminal for MODEM

interface which is used for controlling a

transmit circuit.

• RTS (Request To Send) (Output

Terminal): This is an output port for

MODEM interface. It is possible to set

the status RTS by a command.

Page 17: Pci

B l o c k d i a g r a m

It includes:-

Data bus buffer

Read/Write control

logic

Modem Control

Transmit Buffer

Transmit Control

Receiver Buffer

Receiver Control

Page 18: Pci

P r o g r a m m i n g

Mode Register:-

7 6 5 4 3 2 1 0 Mode register

Number of

Stop bits

00: invalid

01: 1 bit

10: 1.5 bits

11: 2 bits

Parity

0: odd

1: even

Parity enable

0: disable

1: enable

Character length

00: 5 bits

01: 6 bits

10: 7 bits

11: 8 bits

Baud Rate

00: Syn. Mode

01: x1 clock

10: x16 clock

11: x64 clock

Page 19: Pci

Command Register:-

TxE: transmit enable

DTR: data terminal ready, DTR pin will be low

RxE: receiver enable

SBPRK: send break character

ER: error reset

RTS: request to send

IR: internal reset

EH: enter hunt mode

Page 20: Pci

Status Register:-

TxRDY: transmit ready

RxRDY: receiver ready

TxEMPTY: transmitter empty

PE: parity error

OE: overrun error

FE: framing error

SYNDET: sync. character detected

DSR: data set ready

DSR SYNDET FE OE PE TxEMPTY RxRDY TxRDY