NS9750 - Training Hardware. Serial Controller - UART.

Slides:



Advertisements
Similar presentations
Serial Interface Dr. Esam Al_Qaralleh CE Department
Advertisements

EUSART Serial Communication.
11-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL I/O System Design.
4-1 Timers Timers can be used for  timing  event counting  pulse width measurement  pulse generation  frequency multiplication There are 8 Timers.
The 8051 Microcontroller Chapter 5 SERIAL PORT OPERATION.
Serial Input/Output Interface Outline –Serial I/O –Asynchronous serial I/O –6850 ACIA –68681 DUART –Synchronous serial I/OInterface Standards –68000 Serial.
Eng. Husam Alzaq The Islamic Uni. Of Gaza
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
1 The 9-Pin Connector Pin abbreviations (numbers in parentheses are the 25D pin numbers): 1. CD (8) 2. RD (Rx) (3) 3. TD (Tx) (2) 4. DTR (20) 5. SG (Ground)
Chapter 6 Serial Communications Objectives Introduce the RS232 standard and position it within the crowded field of serial communications standards. Configure.
ECE 371- Unit 11 Introduction to Serial I/O. TWO MAJOR CLASSES OF SERIAL DATA INTERFACES ASYNCHRONOUS SERIAL I/O - USES “FRAMING BITS” (START BIT AND.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 13.
NS Training Hardware. System Controller Module.
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
MSP432™ MCUs Training Part 5: Digital Peripherals
Serial Peripheral Interface Module MTT M SERIAL PERIPHERAL INTERFACE (SPI)
The 8051 Microcontroller and Embedded Systems
Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.
SC200x Peripherals Broadband Entertainment Division DTV Source Applications July 2001.
UART and UART Driver B. Ramamurthy.
Lecture 7 Universal Asynchronous Receiver/Transmitter (UART) NCHUEE 720A Lab Prof. Jichiang Tsai.
Lecture Set 9 MCS-51 Serial Port.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
1 Microprocessor-based Systems Course 9 Design of the input/output interfaces (continue)
Lecture 14 DMA Controller & Serial Communications Interface (UART)
“Describe the overview of hardware interfacing and the serial communication interface. Describe the PIC18 connections to RS232. Explain the serial port.
Universal Asynchronous Receiver/Transmitter (UART)
ECE 353 Introduction to Microprocessor Systems Michael Schulte Week 13.
Microprocessors 2 lesson Subjects lesson 7 Planning Interrupts Serial communication /USART Questions.
Serial Communications
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
Example. SBUF Register SCON Register(1) SCON Register(2)
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
MCS51 - lecture 4. Lecture 3 1/27 Serial ports MCS51 Standard SIO Some extensions and modifications.
NS Training Hardware.
Universal Asynchronous Receiver/Transmitter (UART)
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Interfaces and Synchronization Martin Weiss. EIA 232D Interface Standard u Synonymous with ITU V.24 u Asynchronous interface u Up to 19.2kbps u 50 foot.
7 - 1 Texas Instruments Incorporated Module 7 : Serial Peripheral Interface C28x 32-Bit-Digital Signal Controller TMS320F2812.
1 Asynchronous voice band modem for IP data protocols overview features.
Serial Communications Interface Module Slide #1 of 19 MC68HC908GP20 Training PURPOSE -To explain how to configure and use the Serial Communications Interface.
NS Training Hardware Traffic Flow Note: Traffic direction in the 1284 is classified as either forward or reverse. The forward direction is.
Extended Uart The High Speed Digital Systems Laboratory, Electrical Engineering Faculty, Technion By: Marganit Fina Supervisor: Rivkin Ina Winter 2007/8.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.
GBT SCA overview Slide 1-5 Work status Slide 6-10 Shuaib Ahmad Khan.
Communicating. The ATmega16 communicates through one of the following ways: Serial Peripheral Interface (SPI) Universal Synchronous and Asynchronous serial.
8251 USART.
Tiva C TM4C123GH6PM UART Embedded Systems ECE 4437 Fall 2015 Team 2:
Lecture 15. Modem Controller Register 4310 DTR 0 = Polling Operator 1 = Interrupts Enabled RTS 1 =Self Test 0 =Normal.
 The LPC2xxx devices currently have two on- chip UARTS.  Except UART1 has additional modem support.
The HCS12 SCI Subsystem A HCS12 device may have one or two serial communication interface. These two SCI interfaces are referred to as SCI0 and SCI1. The.
Serial mode of data transfer
UART Serial Port Programming
Source: Serial Port Source:
NS Training Hardware.
UQC113S2 – Embedded Systems
SERIAL PORT PROGRAMMING
UART Serial Port Programming
Serial Communication Interface: Using 8251
Serial Communication Interface
NS Training Hardware.
Programmable Data Communication Blocks
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
EUSART Serial Communication.
Serial Communication 19th Han Seung Uk.
Prof Afonso Ferreira Miguel
Source: Serial Port Source:
PIC Serial Port Interfacing
PIC Serial Port Interfacing
Introduction Communication Modes Transmission Modes
Presentation transcript:

NS Training Hardware

Serial Controller - UART

UART Overview 4 Serial Controller Channels (A,B,C,D) External GPIO connections via TXD, RXD, RTS, CTS, DTR, DSR, DCD, RI

UART Hardware Based upon NS7520 Serial Controller design with minor enhancements and bug fixes. –Improved data capture and status reporting for Receive Buffer Closed conditions, for example. Bit-Rate generation from internal or external clocking source, supporting baud rates from 75 to 1,843,200 (x8 mode only) Data support via DMA or BBus Interrupt

UART Hardware Four 8-bit Character Match registers SW/HW Initiated XON/XOFF based on Character Match for Flow Control Flow Control Force Register –to disable transmit state machine –to transmit specified Character while TX_IDLE Error detection: –FIFO overrun, Break, Parity or Frame Errors

UART Configuration Initialize per-channel Bit Rate Register to –Enable EBIT –Set TMODE = 1 and TCDR=RCDR (x8, x16, or x32) for asynchronous operation –Set ClkMux to select the oscillator as the source –Set N-value for desired Baud Rate (refer to Hardware Ref. Manual) Initialize Character Gap or Buffer Gap Timers

UART Configuration Initialize Control Register A for –Channel Enable, Word Size, Stop Bits, Parity Enable, Break, RTS, DTR, Rx/Tx Interrupt or DMA Enables Initialize Control Register B for –UART Mode, Char. Match, Enable Character or Buffer Gap Timers, RTS Flow Control Initialize BBus Utility GPIO Config registers to enable desired UART interface pins

Serial Controller SPI

SPI Overview 4 Serial Controller Channels (A,B,C,D) External GPIO connections via TXD, RXD, SPI Enable, SPI Clk

SPI Hardware Based upon NS7520 Serial Controller design with minor enhancements and bug fixes. –All four SPI Clocking modes are functional as opposed to only Clk0 and Clk1 in the NS7520, for example Bit-Rate generation from internal or external clocking source Data support via DMA or BBus Interrupt

SPI Hardware Four 8-bit Character Match registers Flow Control Force Register –to disable transmit state machine –to transmit specified Character while TX_IDLE Error detection: –FIFO overrun SPI-EEPROM Boot from SDRAM following powerup (Serial ChanA only.)

SPI Master Configuration Initialize per-channel Bit Rate Register to –Enable EBIT –Set TMODE=1 and TCDR=RCDR=0 for synchronous (x1) operation –Enable TXEXT to drive transmit clock via GPIOs –Set ClkMux to select BCLK as the source –Set SPCPOL, RXCINV, TXCINV to select the desired SPI Clock Mode (refer to Hardware Ref. Manual) –Set N-value for desired Bit Rate (refer to Hardware Ref. Manual)

SPI Master Configuration Initialize Control Register A for –Channel Enable, Word Size, Rx/Tx Interrupt or DMA Enables Initialize Control Register B for –SPI Master Mode, SPI Enable Polarity, Bit Order, Character Match, and Character or Buffer Gap Timers Enables Initialize Character Gap or Buffer Gap Timers Initialize BBus Utility GPIO Config registers to enable desired SPI Master interface pins

Serial Controller HDLC

HDLC Overview 4 Serial Controller Channels (A,B,C,D) External GPIO connections to TxD, TxClk, RxD, RxClk per channel

HDLC Overview Layer 2/Layer 3 HDLC protocol support –8- or 16-bit address and control fields –16- or 32-bit CRC-CCITT generation/checking –Flag/abort/idle generation and detection –Programmable Flags between frames (1-15) –Automatic bit stuffing and deletion –Programmable Preamble Length and Pattern –Refer to ISO/IEC for more information

HDLC Overview NS9750 Hardware Features –Bit-Rate generation from internal or external clocking source. –Maximum HDLC frequency (BBusClk / 8) –Data support via DMA or layered BBus Interrupt –Four 8-bit or two 16-bit address comparison registers, allowing for Receive Addr. filtering

HDLC Overview NS9750 Hardware Features, continued –Transmit Handshake via CTS (Clear To Send) signal –Counter for Discarded Frames due to CRC Errors or non-matching frame address fields –Error detection: Misaligned (non-octet) Frames Frame Length Exceeds Max Buffer Size Receive CRC Errors FIFO underrun/overrun

HDLC Configuration Initialize per-channel Bit Rate Register to –Enable EBIT –Set TMODE = 1 and TCDR=RCDR=0 for synchronous (x1) operation –Enable RXSRC for receive clock via GPIOs –Enable TXEXT to drive transmit clock via GPIOs –Set ClkMux to select BCLK as the source –Set RXCINV, TXCINV =1 to compensate for output buffer delays –Set desired N-value (refer to Hardware Ref. Manual)

HDLC Configuration Initialize Control Register A for –Channel Enable, 8-bit Words, Rx and Tx Interrupt or DMA Enables Initialize Control Register B for –HDLC Mode, Address Matching, Preamble Length and Preamble Pattern Initialize Control Register C for –# of Flag/Marks, CRC generation/checking Initialize BBus Utility GPIO Config registers to enable desired HDLC interface pins

Hints & Kinks Can back-to-back HDLC frames share a single idle/mark flag? –No, there must be at least one unique idle/mark flag at the start and finish of each HDLC receive frame.