ColdFire MCF5282 Universal Asynchronous Receiver/Transmitters (UARTs)

Slides:



Advertisements
Similar presentations
8259 Programmable Interrupt Controller
Advertisements

Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5 5 Device Management.
INPUT-OUTPUT ORGANIZATION
PROGRAMMABLE PERIPHERAL INTERFACE -8255
The 8051 Microcontroller Chapter 5 SERIAL PORT OPERATION.
Chapter 10 Input/Output Organization. Connections between a CPU and an I/O device Types of bus (Figure 10.1) –Address bus –Data bus –Control bus.
Serial I/O - Programmable Communication Interface
ECE 372 – Microcontroller Design Parallel IO Ports - Interrupts
1 Homework Reading –Review previous material on “interrupts” Machine Projects –MP4 Due today –Starting on MP5 (Due at start of Class 28) Labs –Continue.
Interrupts What is an interrupt? What does an interrupt do to the “flow of control” Interrupts used to overlap computation & I/O – Examples would be console.
Programmable Interrupt Timer Modules PIT0, PIT1, PIT2, PIT3.
Implementing interrupt driven IO. Why use interrupt driven IO? Positive points –Allows asynchronous operation of IO events –Good use of resources –Leads.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
Spring EE 316 Computer Engineering Junior Lab LCD modules, PROMs, Serial Ports.
NetBurner 5282 MCF5282 ColdFire MicroController Interrupt System.
Introduction An interrupt is an event which informs the CPU that its service (action) is needed. Sources of interrupts: internal fault (e.g.. divide by.
Chapter 7 Interupts DMA Channels Context Switching.
NetBurner 5282 MCF5282 ColdFire MicroController Interrupt System.
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
INPUT-OUTPUT ORGANIZATION
CHAPTER 10 Keyboard and Printer Interfacing. Matrix Keyboard.
ECE 265 – LECTURE 12 The Hardware Interface 8/22/ ECE265.
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
NetBurner MOD 5282 Network Development Kit MCF 5282 Integrated ColdFire 32 bit Microcontoller 2 DB-9 connectors for serial I/O supports: RS-232, RS-485,
V 0.91 Polled IO versus Interrupt Driven IO Polled Input/Output (IO) – processor continually checks IO device to see if it is ready for data transfer –Inefficient,
Introduction to Embedded Systems Buffering and DMA (Direct Memory Access) Lecture 11.
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Universal Asynchronous Receiver/Transmitter (UART)
ECE 353 Introduction to Microprocessor Systems Michael Schulte Week 13.
7/23 Interrupt Controller and Edge Port in Coldfire Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee.
Ethernet Driver Changes for NET+OS V5.1. Design Changes Resides in bsp\devices\ethernet directory. Source code broken into more C files. Native driver.
EE 316 Computer Engineering Junior Lab Serial Ports, LCD Displays & PROMs.
8259A PROGRAMMABLE INTERRUPT CONTROLLER. CONTINUE…. The 8259A consist of eight data bus lines from D0-D7 The data bus is the path over which data are.
CHAPTER 6 INTERRUPTS AND THE 8259 CHIP. What happens on interrupt? Micro automatically saves (on stack) the FR (flag register), IP (instruction pointer),
Universal Asynchronous Receiver/Transmitter (UART)
6-1 Infineon 167 Interrupts The C167CS provides 56 separate interrupt sources that may be assigned to 16 priority levels. The C167CS uses a vectored interrupt.
Programmable Interrupt Controller (PIC)
Chapter 5 - Interrupts.
Interrupt driven I/O Computer Organization and Assembly Language: Module 12.
 The Programmable Interrupt Controller (PlC) functions as an overall manager in an Interrupt-Driven system. It accepts requests from the peripheral equipment,
8255:Programmable Peripheral Interface
INTERRUPTS. Topics to be discussed  8088/86 Hardware Interrupts pins 8088/86 Hardware Interrupts pins   Pin description Pin description.
Introduction to Exceptions 1 Introduction to Exceptions ARM Advanced RISC Machines.
8251 USART.
Transmitter Interrupts Review of Receiver Interrupts How to Handle Transmitter Interrupts? Critical Regions Text: Tanenbaum
8255 Programmable Peripheral Interface
Homework Reading Machine Projects
Lecture 2 Interrupts.
Serial mode of data transfer
CS501 Advanced Computer Architecture
Introduction An interrupt is an event which informs the CPU that its service (action) is needed. Sources of interrupts: Internal fault (e.g.. divide by.
MCF5249 Software Examples Bootable example code for the MCF5249
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
BVM Engineering College Electrical Engineering Department : Microprocessor and Microcontroller Interfacing Interrupts of 8051 Prepared by:
I/O Interface and Interrupt Systems
8259-programmable interrupt controller
Homework Reading Machine Projects Labs
Presentation On 8259 Made by Md Shabbir Hasan.
Programmable Interrupt Controller 8259
Interrupt.
8259 Chip The Intel 8259 is a family of Programmable Interrupt Controllers (PIC) designed and developed for use with the Intel 8085 and Intel 8086 microprocessors.
Computer Organization and Design
8259 PROGRAMMABLE INTERRUPT CONTROLLER
8085 Microprocessor Architecture
8259 Programmable Interrupt Controller
Programmable Peripheral Interface
8259 PROGRAMMABLE INTERRUPT CONTROLLER
CNET 315 Microprocessor & Assembly Language
AVR UART The UART, or Universal Asynchronous Receiver Transmitter, provides hardware support for a serial port on AVR processors Signaling is compatible.
Presentation transcript:

ColdFire MCF5282 Universal Asynchronous Receiver/Transmitters (UARTs)

RS232 Interface Cable

Universal Asynchronous Receiver/Transmitters (UARTs)

RS232 Character transmission

Universal Asynchronous Receiver/Transmitters (UARTs)

From Header File..\mod5282\system\sim5282.h /* will become array uart[3] 0200->02bc */ typedef struct { /* uart modules */ vubyte umr; /* 8bit uart mode register */ vubyte pack00[3]; /* 24bit reserved */ vubyte usr; /* 8bit read: status register */ /* write: clock-select register */ vubyte pack01[3]; /* 24bit reserved */ vubyte ucr; /* 8bit read: do not access */ /* write: command register */ vubyte pack02[3]; /* 24bit reserved */ vubyte udb; /* 8bit read: recieve buffer */ /* write: transmit buffer */ vubyte pack03[3]; /* 24bit reserved */ vubyte iacr; /* 8bit read: input port change register */ /* write: auxiliary control register */ vubyte pack04[3]; /* 24bit reserved */ vubyte ir; /* 8bit read: interupt status register */ /* write: interupt mask register */ vubyte pack05[3]; /* 24bit reserved */ vubyte dur; /* 8bit read: do not access */ /* write: divider upper register */ vubyte pack06[3]; /* 24bit reserved */ vubyte dlr; /* 8bit read: do not access */ /* write: divider lower register */ vubyte pack07[23];/* 24bit reserved */ vubyte uip; /* 8bit read: input port register */ /* write: do not access */ vubyte pack08[3]; /* 24bit reserved */ vubyte ops; /* 8bit read: do not access */ /* write: output port bit set command register */ vubyte pack09[3]; vubyte opr; /* 8bit read: do not access */ /* write: output port bit reset commmand register */ vubyte pack0a[3]; } uartstruct ; Example Assignment: sim.uart[1].ucr = 0x0200 /* reset receiver */

Universal Asynchronous Receiver/Transmitters (UARTs) Example Assignment: sim.uart[1].ucr = 0x0200 /* reset receiver */

Universal Asynchronous Receiver/Transmitters (UARTs)

/* This function sets up the 5282 interrupt controller */ void SetIntc(int intc, /* Interrupt Controller Number */ long func, /* Address of Interrupt Service Routine */ int vector, /* Vector Table Number */ int level, /* Interupt Priority Level */ int prio /* Interrupt Priority Sub Level */ ); /* This macro implements the UART Interrupt Service Routine */ INTERRUPT(my_UART_func, /* Name of Interrupt Service Routine */ 0x2600 /* Mask - Enter Supervisor Mode, Set Interrupt Mask */ ) { /* You can add your ISR code here. - Do not call any RTOS function with pend or init in the function name - Do not call any functions that perform a system I/O read, write, prin }

Universal Asynchronous Receiver/Transmitters (UARTs) Interrupt Control Module

Universal Asynchronous Receiver/Transmitters (UARTs)