UQC113S2 – Embedded Systems

Slides:



Advertisements
Similar presentations
11-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL I/O System Design.
Advertisements

Review: Interrupts & Timers
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
ECT 357 Ch 18 UART. Today’s Quote: Be careful that your marriage doesn’t become a duel instead of a duet. Be careful that your marriage doesn’t become.
The 8051 Microcontroller Chapter 5 SERIAL PORT OPERATION.
HIGH-LEVEL DATA LINK CONTROL (HDLC) HDLC was defined by ISO for use on both point-to-point and multipoint data links. It supports full-duplex communication.
Serial I/O - Programmable Communication Interface
Hierarchy of I/O Control Devices
Starting with serial Chapter Ten 10.1, 10.2,
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
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.
Network and Systems Laboratory nslab.ee.ntu.edu.tw.
ECE/CS-352: Embedded Microcontroller Systems Embedded Microcontroller 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.
S4525A Peripherals & Enhanced FLASH 1 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 1 Peripherals.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
Universal Asynchronous Receiver/Transmitter (UART)
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
NS Training Hardware. Serial Controller - UART.
FPGA firmware of DC5 FEE. Outline List of issue Data loss issue Command error issue (DCM to FEM) Command lost issue (PC with USB connection to GANDALF)
Serial Communications Interface Module Slide #1 of 19 MC68HC908GP20 Training PURPOSE -To explain how to configure and use the Serial Communications Interface.
© 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.
Example 1 Program the divisor Latch for 300 baud. Assume Xin=1.8432MHz The Base Address: 0x3F8 0RX_TX / Divisor.low 1IER: Interrupt Enable Reg. / Divisor.high.
Tiva C TM4C123GH6PM UART Embedded Systems ECE 4437 Fall 2015 Team 2:
 The LPC2xxx devices currently have two on- chip UARTS.  Except UART1 has additional modem support.
Chip Config & Drivers – Required Drivers:
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.
Embedded Microcontroller Systems
PowerPC SCC port and EC/ECP HDLC controller Communication
Lecture 2 Interrupts.
Serial mode of data transfer
INT. TO EMBEDDED SYSTEMS DEVELOPMENT
COURSE OUTCOMES OF Microprocessor and programming
CS-401 Computer Architecture & Assembly Language Programming
Embedded Microcontroller Systems
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
Input/Output and Communication
Programming the I/O Hardware
SERIAL PORT PROGRAMMING
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
UART and UART Driver B. Ramamurthy.
SPI Protocol and DAC Interfacing
E3165 DIGITAL ELECTRONIC SYSTEM
Keyboard/Display Controller INTEL 8279
HIBI_PE_DMA ver author: Ari Kulmala documentation: Juha Arvio Modified: Lasse Lehtonen Last modification:
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Computer Organization and Design
Source: Serial Port Source:
Programming the I/O Hardware
UART and UART Driver B. Ramamurthy.
Serial Communication Interface: Using 8251
8251A UNIVERSAL SYNCHRONOUS ASYNCHRONOUS RECEIVER TRANSMITTER
11. Input-Output Organization
UART Protocol Chapter 11 Sepehr Naimi
Timers.
INPUT-OUTPUT ORGANIZATION
COMP3221: Microprocessors and Embedded Systems
Преглед Начин функционисања Имплементације
Configuration and Programming
NS Training Hardware.
Keyboard/Display Controller (8279)
Programmable Data Communication Blocks
8051 Micro Controller.
Source: Serial Port Source:
Serial Communication 19th Han Seung Uk.
Prof Afonso Ferreira Miguel
Source: Serial Port Source:
Presentation transcript:

UQC113S2 – Embedded Systems Z85C30 Serial Communication Controller

FM-200 Board The FM-200 board has 3 serial ports The 68307 has a built in UART – part of the Motorola 68681 It also has a Zilog Z80C30 SCC USART 2 channels Lots of protocol support Bisync, SDLC, HDLC

Z85C30 SCC Block Diagram Channel A Channel B Internal Control Logic Channel A Register Channel A Databus CPU &DMA Bus interface Control /INT /INT ACK IEI IEO Interrupt Control Logic Channel B Channel B Register

Z85C30 Write Registers REG Description WR0 Reg Pointer –init WR1 TX/RX interrupt enable WR2 Interrupt Vector WR3 RX para Ctrl modes WR4 TX RX para modes WR5 TX para Ctrl modes WR6 SYNC SDLC addr WR7 SYNC SDLC flag WR8 TX buffer WR9 Mst Int control/reset WR10 Misc TX/RX control bits WR11 Clk ctrl RX/TX WR12 Baud Rate LSB WR13 Baud Rate MSB WR14 Misc control bits WR15 Ext sts Interrupt enable/control

Z85C30 Write Registers TX/RX registers WR3 WR4 WR5 WR8 WR11/12/13 RX enable/disable, RX bits per character WR4 Parity, Stop and clock modes WR5 TX enable/disable, TX bits per character WR8 Transmit register WR11/12/13 Clock and baud rate

Z85C30 Write Registers Interrupt Registers WR1 WR2 WR9 WR15 TX/RX int enable/disable, DMA control WR2 Interrupt Vector WR9 Interrupt ack, int status, enable master int WR15 External status

Z85C30 Read Registers REG Description RR0 RX/TX stat Ext stat RR1 Spec RX status RR2 Int Vect (mod B /Umod B) RR3 Int pending Channel A RR4 TX RX para modes RR5 TX para Ctrl modes RR6 SDLC FIFO counter LSB RR7 SDLC FIFO counter MSB RR8 RX buffer RR9 RX para & Ctrl modes RR10 Misc status bits RR11 Misc TX/RX contrl bits RR12 Baud Rate LSB time constant RR13 Baud Rate MSB time constant RR14 Ext feature & FIFO contro RR15 Ext status Interrupt info

Z85C30 Read Registers TX/RX RR0 RR1 RR8 RR10 TX/RX status Special RX conditions status RR8 RX register RR10 Miscellaneous status bits

SCC BiSync Mode The Z85C30 can operate in automatic BiSync synchronous mode WR4 selects mono or bisync modes WR6/7 – holds sync char(s) WR3 – RX CRC checking WR5 – TX CRC checking

SDLC/HDLC The SDLC/HDLC modes are WR4 – SDLC mode use 01111110 WR5 – SDLC polynomial selected WR7 – write 01111110 WR6 – SDLC address

SDLC/HDLC frame format bits 8 8 8 >0 16 8 0111110 address control data checksum 0111110

SCC SDLC/HDLC frame types Bits 1 3 1 3 P/F Seq Next information 1 Type P/F Next supervisory Type 1 1 P/F Modifier unnumbered

Minos Serial Port programming It is possible to program the SCC in assembly language using the above registers or in C using MINOS calls It requires the device name – use the mdir call Then use the open or fopen calls Using the returned file pointer with read and write calls

Minos Serial Port programming #include <stdio.h> FILE *fopen(char *, char*); int fwrite(char *, int, int, FILE *); main() { int nbytes,count; FILE * fp; char buff[512]; fp=fopen("TERM","r"); nbytes=fwrite(buff,sizeof(char),sizeof(buff),fp); } #include <stdio.h> main() { int fp, nbytes,count; char buffer[512]; fp=open("TERM",O_RDONLY); nbytes=read(fp,buffer,count); }