Motoro a emicon uctor. cto er Document revi ion 1 anuar 199

Size: px
Start display at page:

Download "Motoro a emicon uctor. cto er Document revi ion 1 anuar 199"

Transcription

1 3xx euron i M Driver Motoro a emicon uctor cto er 1993 Document revi ion 1 anuar 199 The accompanying software package interfaces a Motorola 683xx family microcontroller to the LO W O Neuron Chip MIP interface. The actual driver and accompanying example use the MC68332 microcontroller, however, with minor modifications any 683xx family member may be used. With additional hardware and minor software modifications a 680x0 microprocessor may be used. Appendix discusses files available for the MC68340 microcontroller. Appendix C discusses files available for the MC68360 microcontroller. The appendices are followed by sample schematics. ve v e The Microprocessor Interface Program (MIP) is special system firmware, available from Echelon Corp., for the Neuron Chip that transforms it into a communications coprocessor for an attached host processor. The MIP moves the upper layers of the LonTalk protocol (part of layer 5 to layer ) to the host. The MIP is used to provide a higher data throughput than the standard parallel I/O interface model. In addition a MIP based application can work with up to 40 6 network variables as compared to the 62 limit allowed with a standalone Neuron. Two versions of the MIP are available from Echelon. The P20/P50 version implements a direct connection to the host interface of a Neuron Chip while the DPS version implements a dual ported S RAM connection to the host interface. A sample DOS driver is available from Echelon for connection of the MIP to a DOS based host computer. The driver presented here modifies this DOS driver for connection to the 683xx microcontroller system. The driver with minor exceptions is written in C. (Routines for enabling and disabling interrupts are written in assembly language). It should be noted as a result of modifying the sample DOS driver some residual DOS code or definitions may remain, but they should not interfere with proper 683xx operation. Page

2 IP Inter e vervie This software uses the chelon MIP interface and implements the driver for the P50 version (for use with the MC Neuron Chip). Currently the DP version of the MIP is not supported. This interface shown in the accompanying hardware schematic, uses all 11 pins of the Neuron Chip's I/O port for connection to a host via a 8 bit data bus,, chip select and either an address pin or a handshake pin. IO_8 usage depends upon selection of the Neuron Chip MIP configuration of either slave mode A or slave mode B. In the following example Mode B is used which causes IO_8 to become a register select pin. This allows the Neuron Chip to occupy two memory locations in the memory map of the host processor. These memory locations are used for selection of a data transfer memory location and a handshake memory location. ost P stem Requirements To implement the MIP driver with the family the following software and hardware features are required a) A CPU with a Motorola instruction set b) Memory map chip select logic for enabling the Neuron Chip. This logic may either be contained in the CPU as it is in the MC68332 or may be provided by external hardware c) A periodic interval timer, (tick), capable of generating an interrupt to the CPU. The time period of this timer should be in the range of 30 to 200 ms d) ardware for detecting and latching reset from the Neuron Chip plus a single bit I/O port from the processor to clear this latch. e) A single bit I/O port from the processor for activating the Neuron Chip's reset line f) Time-out or watchdog timer hardware with a time period of 1 to 4 seconds (optional). This is used to abort transactions between the host CPU and the Neuron Chip should a hardware failure occur between the host and the Neuron Chip g) Driver AM size approx. 5-6kbased upon a total of 1 buffers h) Driver program size approx. 3 k evelo ment ools Requirements The 68 C compiler and linker used to create the ob ect file for the MIP driver was release 8.2 available from Intermetrics. Although the C programming language is somewhat universal, data sizes, methods of dealing with interrupt routines, and embedded assembly language may differ with other C compilers. Therefore modifications may be required to adapt to other compilers. Page2

3 ile Contents The files provided for the driver consist of the following mip_exec.c Main executable code for driver. This file contains the application callable functions of open, close, read and write. mip_332.c hardware specific interface software mdv_time.c Time-out timer (see time-out timer options) neuron.h C language header file describing registers for the Neuron Chip m332sim.h C language header file describing SIM (System Integration Module) registers. 332.bat D S batch file containing command lines for compiling C language source header files and linking compiler output modules to single relocatable object module. esultant relocatable object module must then be linked with user application code null_time.c ll time-out timer functions provide null operation 332drvr.ln Driver compiled and ready to be linked to application, null time-out timer used o t a e ptions at Compile ime The following software options may be selected at compile time by modifying variable initial values, define statement values or lines of code. or an understanding of MC68332 register initiali ation values refer to MC68332 user manual. The number of read and write queues may be set by modifying the file of mip_exec.c variable name of river_len. To set 68K exception interrupt levels for the tick timer and Neuron Chip reset detection circuitry, modify file mip_332.c, the macro enable_interrupts, the 68K instruction immediate data field of "or d1". to move the interrupt mask up or down as required by the interrupt levels that need to be enabled. In addition the file of mip_332.c function of pio_init, C source line of mcsim.picr = 0x0 1c should be modified as required to select the interrupt level generated by the periodic interval timer. To select the periodic interval timer interrupt period modify file mip_332.c, function pio_init, C source line of mcsim.pitr = 12. Note that file m sim.h contains several predefined values for ease in setting this time period. Page3

4 To select the location of the Neuron Chip in the memory map modify file mip_332.c, function pio_init, C source statement of mcsim.csbar3 _ 3. Retain the 2k block size during this modification. imilar changes for mcsim.csbar and mcsim.csbar may be used to change the memory mapped addresses of the location of the reset latch clearing hardware and the Neuron Chip reset logic. 683xx ri er sage For overall usage of the MIP driver please refer to the Lon uilder Microprocessor nter ace Program ser's Guide and the LON W ORKS Host Application Programmer's Guide. Usage of the MIP driver provides 4 function calls for the application program. These four function calls are open Used for allocation resources required for operation of driver and prepare the MIP interface to transfer data close Deallocate resources used by the MIP driver read Read a message from the Neuron Chip via the MIP interface rite rite a message to the Neuron Chip via the interface Formats of the data field being passed from or to the Neuron Chip are outlined in the LON W ORKS Host Application Programmer's Guide. Additional information on network management commands and addressing structure formats are in the MC MC euron C ip istri uted Communications and Control Processors data sheet appendix A. rogram Mo ifi a io for Mem ers of 683xx ami In order to adapt this driver to other members of the 683xx family modifications should be made in the files of mip_332.c, mdv_timer.c and associated header files for these C language source files. In the file mip_332.c the following routines may need to be modified. Note that the first three routines are not callable functions but are Intermetrics C compiler macros and are used for code substitution later in the file. These three macros contain the only 68 assembly language in the driver. The macro of vector_init is used to initialize autovect 4 exception vector to the address of routine pit and initialize autovect to the address of the routine ir. Neither of these operations would be required in a R M based application but are used for convenience in a RAM based development environment. Also this function is used to lower the interrupt mask level which in this example is 3. The interrupt level should be one less than the lowest system interrupt level desired. The macro of enable_interr ptsreads the existing interrupt level and sets a new interrupt mask level. This should set the interrupt level to the same value as in the macro vector_init. Page4

5 The macro disab e_interr pts sets interrupt level to the highest exception level. This operation disables all interrupts except level. The function of reset_mip has no operation at this time. The function of read_isr, reads the Neuron Chip reset generated interrupt status. This is done by temporarily making port f of the into an I/O port and reading the I/O pin. After reading the I/O pin, the pin is restored to its original configuration of an interrupt pin. The function returns the value true if a reset interrupt is true. The function also clears the reset logic by activation of a chip select line on the The chip select line used in this example is CS3. The function of pio_init initializes the MC68332 chip select logic, the periodic interrupt timer, and through the use of the macro vector_init the interrupt vectors. The chip select logic must be initialized to desired port size, start address and block size, and option values. Option values consist of upper or lower byte on data bus, read/write and bus cycle wait states. Currently three chip select lines are used for the MIP interface. CS is used to access the Neuron Chip which consists of two memory locations in a 2 byte memory block starting at address 0x These two memory locations represent data and handshake. CS3 is used to clear the reset latch. CS is used for the autovector selection for reset detection of interrupt. Also the periodic interrupt timer is initialized in this function. This timer is used as the tick timer for the driver. As shown the timer interrupts the CP on level using vector 28 with a time interval of 25ms. This time interval may be increased or decreased for a tweak on overall system performance. aster tick timer values emphasize moving data between the host processor and the Neuron Chip. Slower tick times emphasize host processor compute power. Note Although the user of this driver would not make changes to the functions pit and ir, they are interrupt service routines, not normal C functions. The Intermetrics C compiler uses the _ preceding the function name to indicate to the compiler that this function is an interrupt handler, and to replace the normal RTS (return form subroutine) instruction that occurs at the end of the function with a RT (return from exception) instruction. i i e ri er To ease the process of compiling and linking the MIP driver, a DOS batch file, 332.bat, is included. If changes are made to any of the three source files, mip_exec.c, mip_332.c and mdv_time.c, then the batch file should be executed. The result of the batch file is a relocatable ob ect module that will be linked to the desired host application. Page5

6 Appen i A Appli ation le el programming or t e At the application level the user of MIP must handle some network management commands. The user must save data passed in some of these commands and also respond to the Network Manager with the information re uested by other network management commands. In order to send a message over the MIP interface the data must be enclosed with appropriate MIP header information. The header information includes length of the data and the addressing information for the message destination. The code to handle these network management commands format data to be passed over the MIP interface must also be written by the user. To make this operation easier one may utilize a example provided by Echelon to handle this operation. This example is included with the MIP product and also is available on the LonLink bulletin board service. The example consists of a series of C source code files starting with HA.C. The file HA.C is implements a very specific example for updating and displaying network variables, sending and receiving messages and binding to other nodes by a D based console. owever some of the other source files called by HA.C may be used in a user application with some modification. Files NI_MSG.C and APPLMSG.C may be modified, compiled and linked with user code. The file NI_MSG.C contains user callable functions of ni_init, ni_send_msg_ ait, ni_receive_msgand ni_send_response. As their name implies these functions may be used to initialize the network interface, send a properly formatted message over the interface, receive a message over the interface and send a response over the MIP interface. The file APPLMSG.C contains code to handle the network management commands that the host computer must respond to. These commands are query_nv_config, nv_fetc, update_nv_config, query_snvt and set_node_mode. sed with the above mentioned files are two C header files. These are NI_MSG.H and NI_MGM.H. These files contain structure definitions and must be included in your C source file. Note that the data type definitions of bits is for little endian bit ordering and must be reversed to big endian bit ordering for Motorola microcontroller designs. For additional detail of this Echelon provided example, consult the O O ost pp i atio ro rammer s i e. MC6 xx Neuron Chip MIP Driver Page6

7 ppe i M M ri er In addition to the MC68332 files are source, header and batch files to use MIP with the MC The MC68340 is similar to the MC68332 with a System Integration Module(SIM) providing chip select pins. hile there are similarities in the SIM modules on the MC68332 and the MC68340 system integration module on the MC68340 is programmed differently than the MC68332 SIM. The SIM on the has 4 chip select lines and the programming for the address range and block si e are slightly different. The programmable registers of the periodic interrupt timer(pit) on the MC68340 is identical to that of the MC68332 however the address in the SIM memory map is different. dditional files included for MC68340 support are mi _340.c hardware specific interface software m340 im.h C language header file describing SIM (System Integration Module) registers. n r n_c.h C language header file describing registers for the Neuron Chip with locations for reset latch clear and host initiated reset logic 340. D S batch file containing command lines for compiling C language source header files and linking compiler output modules to single relocatable object module. esultant relocatable object module (340drvr.ln) must then be linked with user application code 340drvr.ln Driver compiled and ready to be linked to application, null time out timer used Due to the fact that the MC68340 has only a total of 4 chip selects additional hardware is used to further decode a single chip select line to include all of the functions associated with the addition of a MIP based Neuron Chip to a MC The chip select with additional address lines select the Neuron Chip s data and handshake register, the reset latch clear line and the host initiated reset logic. Page

8 ppe i C: MC6 6 M Dri er Also included are source, header and batch files to use MIP with the MC Additional files included for MC68360 support are mi _360.c hardware specific interface software m360 im.h C language header file describing SIM (System Integration Module) registers. n r n_c.h C language header file describing registers for the Neuron Chip with locations for reset latch clear and host initiated reset logic 360. D S batch file containing command lines for compiling C language source header files and linking compiler output modules to single relocatable object module. esultant relocatable object module (360drvr.ln) must then be linked with user application code 360drvr.ln Driver compiled and ready to be linked to application, null time out timer used. Di i er: Although this software has been carefully reviewed and is believed to be reliable, neither Motorola, nor the author assume any liability arising from its use. his driver software may be freely used, modified or distributed with user end product(s) at no cost obligation to the user. Page8

9 MC xx e r C i M P ri er P e

10 MC MC68340 MC xx e r C i M P ri er P e

11 MC MC68360 MC xx e r C i M P ri er P e 11

THE 8051 MICROCONTROLLER

THE 8051 MICROCONTROLLER SECOND EDITION THE 8051 MICROCONTROLLER I. Scott MacKenzie University of Guelph Guelph, Ontario 'v ' ' Prentice Hall, Upper Saddle River, New Jersey 07458 INTRODUCTION TO MICROCONTROLLERS 1 1.1 Introduction

More information

UNIT II PROCESSOR AND MEMORY ORGANIZATION

UNIT II PROCESSOR AND MEMORY ORGANIZATION UNIT II PROCESSOR AND MEMORY ORGANIZATION Structural units in a processor; selection of processor & memory devices; shared memory; DMA; interfacing processor, memory and I/O units; memory management Cache

More information

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers Lecture (4) Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers Prof. Kasim M. Al-Aubidy Philadelphia University-Jordan DERTS-MSc, 2015 Prof. Kasim Al-Aubidy 1 Lecture Outline:

More information

THE 8051 MICROCONTROLLER

THE 8051 MICROCONTROLLER THIRD EDITION THE 8051 MICROCONTROLLER I. Scott MacKenzie University of Guelph Prentice Hall Upper Saddle River, New Jersey Columbus, Ohio 1 INTRODUCTION TO MICROCONTROLLERS 1 1.1 Introduction 1 1.2 Terminology

More information

4) In response to the the 8259A sets the highest priority ISR, bit and reset the corresponding IRR bit. The 8259A also places

4) In response to the the 8259A sets the highest priority ISR, bit and reset the corresponding IRR bit. The 8259A also places Lecture-52 Interrupt sequence: The powerful features of the 8259A in a system are its programmability and the interrupt routine address capability. It allows direct or indirect jumping to the specific

More information

How to Implement I 2 C Serial Communication Using Intel MCS-51 Microcontrollers

How to Implement I 2 C Serial Communication Using Intel MCS-51 Microcontrollers APPLICATION NOTE How to Implement I 2 C Serial Communication Using Intel MCS-51 Microcontrollers SABRINA D QUARLES APPLICATIONS ENGINEER April 1993 Order Number 272319-001 Information in this document

More information

Product Brief M68340EVS EVALUATION SYSTEM

Product Brief M68340EVS EVALUATION SYSTEM Order this document by M68340EVS Product Brief M68340EVS EVALUATION SYSTEM The M68340EVS evaluation system (EVS) is a board set designed to provide a low-cost method of evaluating the MC68340 integrated

More information

8086 Interrupts and Interrupt Responses:

8086 Interrupts and Interrupt Responses: UNIT-III PART -A INTERRUPTS AND PROGRAMMABLE INTERRUPT CONTROLLERS Contents at a glance: 8086 Interrupts and Interrupt Responses Introduction to DOS and BIOS interrupts 8259A Priority Interrupt Controller

More information

3. The MC6802 MICROPROCESSOR

3. The MC6802 MICROPROCESSOR 3. The MC6802 MICROPROCESSOR This chapter provides hardware detail on the Motorola MC6802 microprocessor to enable the reader to use of this microprocessor. It is important to learn the operation and interfacing

More information

Microcontroller basics

Microcontroller basics FYS3240 PC-based instrumentation and microcontrollers Microcontroller basics Spring 2017 Lecture #4 Bekkeng, 30.01.2017 Lab: AVR Studio Microcontrollers can be programmed using Assembly or C language In

More information

SECTION 1 QUICC/POWERQUICC DIFFERENCES

SECTION 1 QUICC/POWERQUICC DIFFERENCES SECTION 1 QUICC/POWERQUICC DIFFERENCES The following section describes how to move applications from the MC68360 QUICC environment to the MPC860 PowerQUICC environment. It is assumed that the user is familiar

More information

Design with Microprocessors

Design with Microprocessors Design with Microprocessors Year III Computer Science 1-st Semester Lecture 11: I/O transfer with x86 I/O Transfer I/O Instructions We discussed IN, OUT, INS and OUTS as instructions for the transfer of

More information

DeviceNet Example Code (Cat. No DNEXP) Release 1.4 User Manual

DeviceNet Example Code (Cat. No DNEXP) Release 1.4 User Manual User Manual Because of the variety of uses for the products described in this publication, those responsible for the application and use of this control equipment must satisfy themselves that all necessary

More information

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085. (1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic

More information

Module 3. Embedded Systems I/O. Version 2 EE IIT, Kharagpur 1

Module 3. Embedded Systems I/O. Version 2 EE IIT, Kharagpur 1 Module 3 Embedded Systems I/O Version 2 EE IIT, Kharagpur 1 Lesson 15 Interrupts Version 2 EE IIT, Kharagpur 2 Instructional Objectives After going through this lesson the student would learn Interrupts

More information

8255 Programmable Peripheral Interface Architecture MCT/UNIT III/NARASIMHARAJ/LECTURE NOTES /IV MECH A

8255 Programmable Peripheral Interface Architecture MCT/UNIT III/NARASIMHARAJ/LECTURE NOTES /IV MECH A 8255 Programmable Peripheral Interface Architecture 8255 PPI Architecture The parallel input-output port chip 8255 is also called as programmable peripheral input- output port. The Intel s 8255 is designed

More information

These three counters can be programmed for either binary or BCD count.

These three counters can be programmed for either binary or BCD count. S5 KTU 1 PROGRAMMABLE TIMER 8254/8253 The Intel 8253 and 8254 are Programmable Interval Timers (PTIs) designed for microprocessors to perform timing and counting functions using three 16-bit registers.

More information

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS UNIT I INTRODUCTION TO 8085 8085 Microprocessor - Architecture and its operation, Concept of instruction execution and timing diagrams, fundamentals of

More information

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly. Unit I 8085 and 8086 PROCESSOR Introduction to microprocessor A microprocessor is a clock-driven semiconductor device consisting of electronic logic circuits manufactured by using either a large-scale

More information

Fredrick M. Cady. Assembly and С Programming forthefreescalehcs12 Microcontroller. шт.

Fredrick M. Cady. Assembly and С Programming forthefreescalehcs12 Microcontroller. шт. SECOND шт. Assembly and С Programming forthefreescalehcs12 Microcontroller Fredrick M. Cady Department of Electrical and Computer Engineering Montana State University New York Oxford Oxford University

More information

6 Direct Memory Access (DMA)

6 Direct Memory Access (DMA) 1 License: http://creativecommons.org/licenses/by-nc-nd/3.0/ 6 Direct Access (DMA) DMA technique is used to transfer large volumes of data between I/O interfaces and the memory. Example: Disk drive controllers,

More information

S3012 User s Manual. Copyright 1990 Systems Engineering Associates, Inc. Revision 1, December All Rights Reserved!

S3012 User s Manual. Copyright 1990 Systems Engineering Associates, Inc. Revision 1, December All Rights Reserved! S3012 User s Manual Systems Engineering Associates, Inc. 14989 West 69th Avenue Arvada, Colorado 80007 U.S.A. Telephone: (303) 421-0484 Fax: (303) 421-8108 www.sea-seg.com 02/2004 S3012 User s Manual Copyright

More information

Z Z-280 MT8930, MT8992/3/4/5 MT8880 MT8888 MT8889 MT8980/1 MT8985, MT8986 (DIP-40) MT8986 (PLCC-44) MT8920B MT8952B

Z Z-280 MT8930, MT8992/3/4/5 MT8880 MT8888 MT8889 MT8980/1 MT8985, MT8986 (DIP-40) MT8986 (PLCC-44) MT8920B MT8952B MSAN-145 How to Interface Mitel Components to Parallel Bus CPUs TABL OF CONTNTS Introduction ISSU 1 August 1993 1.0 Group 1 Components 1.1 Interfacing to the 6802 1.2 Interfacing to the 6809 1.3 Interfacing

More information

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, CISC and RISC processors etc. Knows the architecture and

More information

Lecture-51 INTEL 8259A Programmable Interrupt Controller

Lecture-51 INTEL 8259A Programmable Interrupt Controller Lecture-51 INTEL 8259A Programmable Interrupt Controller The 8259A is a programmable interrupt controller designed to work with Intel microprocessor 8080 A, 8085, 8086, 8088. The 8259 A interrupt controller

More information

Memory Organization. Program Memory

Memory Organization. Program Memory Memory Organization The 8051 has two types of memory and these are Program Memory and Data Memory. Program Memory (ROM) is used to permanently save the program being executed, while Data Memory (RAM) is

More information

Introduction to Microcontrollers

Introduction to Microcontrollers Introduction to Microcontrollers Embedded Controller Simply an embedded controller is a controller that is embedded in a greater system. One can define an embedded controller as a controller (or computer)

More information

INTERFACING THE ISCC TO THE AND 8086

INTERFACING THE ISCC TO THE AND 8086 APPLICATION NOTE INTERFACING THE ISCC TO THE 68 AND 886 INTRODUCTION The ISCC uses its flexible bus to interface with a variety of microprocessors and microcontrollers; included are the 68 and 886. The

More information

sequence is not needed. (ROM space). Another application is to use the poll mode to expand the number of priority levels to more than 64.

sequence is not needed. (ROM space). Another application is to use the poll mode to expand the number of priority levels to more than 64. Lecture-55 Poll Command: In this mode the INT output is not used for the microprocessor internal interrupt enable F/F is reset, disabling its interrupt input, service to device is achieved by software

More information

APPLICATION NOTE 3575 In-Application Programming (IAP) of the MAXQ7665 Sector-Erasable Program and Data Flash

APPLICATION NOTE 3575 In-Application Programming (IAP) of the MAXQ7665 Sector-Erasable Program and Data Flash Maxim > Design Support > Technical Documents > Application Notes > Automotive > APP 3575 Maxim > Design Support > Technical Documents > Application Notes > Basestations/Wireless Infrastructure > APP 3575

More information

MA Unit 4. Question Option A Option B Option C Option D

MA Unit 4. Question Option A Option B Option C Option D Matoshri College of Engineering & Research Centre Nashik Department of Computer Engineering Class :- Second Year Computer Engineering Sem - 1 Subject :- MICROPROCESSOR ARCHITECTURE UNIT-IV 1 Accumulator

More information

Microcomputer Architecture and Programming

Microcomputer Architecture and Programming IUST-EE (Chapter 1) Microcomputer Architecture and Programming 1 Outline Basic Blocks of Microcomputer Typical Microcomputer Architecture The Single-Chip Microprocessor Microprocessor vs. Microcontroller

More information

Interfacing to the Motorola MCF5307 Microprocessor

Interfacing to the Motorola MCF5307 Microprocessor ENERGY SAVING Color Graphics LCD/CRT Controller Interfacing to the Motorola MCF5307 Microprocessor Document Number: X00A-G-002-03 Copyright 1998 Seiko Epson Corp. All rights reserved. The information in

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within up to carry out the instruction, which has been decoded. In reality causes certain connections between blocks of the

More information

3. (a) Explain the steps involved in the Interfacing of an I/O device (b) Explain various methods of interfacing of I/O devices.

3. (a) Explain the steps involved in the Interfacing of an I/O device (b) Explain various methods of interfacing of I/O devices. Code No: R05320202 Set No. 1 1. (a) Discuss the minimum mode memory control signals of 8086? (b) Explain the write cycle operation of the microprocessor with a neat timing diagram in maximum mode. [8+8]

More information

LONMANAGER NSS-10 MODEL

LONMANAGER NSS-10 MODEL LONMANAGER NSS-10 MODEL 34000-100 FEATURES Host processor and operating system independent design Register-based host interface provides high packet throughput for system-level monitoring and control applications

More information

EE 3170 Microcontroller Applications

EE 3170 Microcontroller Applications EE 317 Microcontroller Applications Lecture 5 : Instruction Subset & Machine Language: Introduction to the Motorola 68HC11 - Miller 2.1 & 2.2 Based on slides for ECE317 by Profs. Davis, Kieckhafer, Tan,

More information

INTERRUPTS in microprocessor systems

INTERRUPTS in microprocessor systems INTERRUPTS in microprocessor systems Microcontroller Power Supply clock fx (Central Proccesor Unit) CPU Reset Hardware Interrupts system IRQ Internal address bus Internal data bus Internal control bus

More information

Lecture 10 Exceptions and Interrupts. How are exceptions generated?

Lecture 10 Exceptions and Interrupts. How are exceptions generated? Lecture 10 Exceptions and Interrupts The ARM processor can work in one of many operating modes. So far we have only considered user mode, which is the "normal" mode of operation. The processor can also

More information

FE Review Computer Terms

FE Review Computer Terms FE Review Computer Terms 2/2/2011 1 Computers sizes Supercomputers Mainframe centralized, large memory, large peripherals Mini-computers Less memory, smaller Microcomputers smaller still few peripherals,

More information

INEL4206: Microprocessors 1 Problem Set #5 Interrupt-Driven Memory-Mapped I/O in SPIM/XSPIM

INEL4206: Microprocessors 1 Problem Set #5 Interrupt-Driven Memory-Mapped I/O in SPIM/XSPIM University of Puerto Rico Mayagüez Department of Electrical and Computer Engineering INEL4206: Microprocessors 1 Problem Set #5 Interrupt-Driven Memory-Mapped I/O in SPIM/XSPIM Due Friday, May 17, 2002

More information

Mobile Operating Systems Lesson 01 Operating System

Mobile Operating Systems Lesson 01 Operating System Mobile Operating Systems Lesson 01 Operating System Oxford University Press 2007. All rights reserved. 1 Operating system (OS) The master control program Manages all software and hardware resources Controls,

More information

September 1986 Order Number:

September 1986 Order Number: isbc 552A AND isxmtm 552A IEEE 802.3 COMPATIBLE COMMUNICATIONS ENGINE PRODUCTS MEMBER OF THE OpenNETTM PRODUCT FAMILY Provides High-Performance Network Front-End Processing for All MUL TIBUS I Systems

More information

Character LCD Interface for ez80acclaim! MCUs

Character LCD Interface for ez80acclaim! MCUs Application Note Character LCD Interface for ez80acclaim! MCUs AN015902-0708 Abstract This Application Note provides Character LCD driver routines, coded in ANSI C, for Zilog s ez80acclaim! Flash microcontroller-based

More information

MOS INTEGRATED CIRCUIT

MOS INTEGRATED CIRCUIT DATA SHEET MOS INTEGRATED CIRCUIT µpd6708 IEBus (Inter Equipment Bus ) PROTOCOL CONTROL LSI DESCRIPTION The µpd6708 is a peripheral LSI for microcontrollers that controls the protocol of the IEBus. This

More information

ELC4438: Embedded System Design ARM Cortex-M Architecture II

ELC4438: Embedded System Design ARM Cortex-M Architecture II ELC4438: Embedded System Design ARM Cortex-M Architecture II Liang Dong Electrical and Computer Engineering Baylor University Memory system The memory systems in microcontrollers often contain two or more

More information

Northern India Engineering College, Delhi (GGSIP University) PAPER I

Northern India Engineering College, Delhi (GGSIP University) PAPER I PAPER I Q1.Explain IVT? ANS. interrupt vector table is a memory space for storing starting addresses of all the interrupt service routine. It stores CS:IP PAIR corresponding to each ISR. An interrupt vector

More information

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1 M68HC08 Microcontroller The MC68HC908GP32 Babak Kia Adjunct Professor Boston University College of Engineering Email: bkia -at- bu.edu ENG SC757 - Advanced Microprocessor Design General Description The

More information

8051 Microcontrollers

8051 Microcontrollers 8051 Microcontrollers Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu March 8, 2016 Controller vs Processor Controller vs Processor Introduction to 8051 Micro-controller In 1981,Intel corporation

More information

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter C8051F38X DEVELOPMENT KIT USER S GUIDE 1. Kit Contents The C8051F38x Development Kit contains the following items: C8051F380 Target Board C8051Fxxx Development Kit Quick-start Guide Silicon Laboratories

More information

SECTION 7 SYSTEM INTEGRATION MODULE

SECTION 7 SYSTEM INTEGRATION MODULE SECTION SYSTEM INTEGRATION MODULE. INTRODUCTION This subsection details the operation and programming model of the System Integration Module (SIM) registers, including the interrupt controller and system-protection

More information

EXPERIMENT #7 PARALLEL INTERFACING USING THE PERIPHERAL INTERFACE ADAPTER (PIA)

EXPERIMENT #7 PARALLEL INTERFACING USING THE PERIPHERAL INTERFACE ADAPTER (PIA) EXPERIMENT #7 PARALLEL INTERFACING USING THE PERIPHERAL INTERFACE ADAPTER (PIA) 1.0 Procedure The purpose of this experiment is to introduce the student to the following topics: the Peripheral Interface

More information

MP Assignment III. 1. An 8255A installed in a system has system base address E0D0H.

MP Assignment III. 1. An 8255A installed in a system has system base address E0D0H. MP Assignment III 1. An 8255A installed in a system has system base address E0D0H. i) Calculate the system addresses for the three ports and control register for this 8255A. System base address = E0D0H

More information

Getting Started with the MSP430 IAR Assembly

Getting Started with the MSP430 IAR Assembly Getting Started with the MSP430 IAR Assembly by Alex Milenkovich, milenkovic@computer.org Objectives: This tutorial will help you get started with the MSP30 IAR Assembly program development. You will learn

More information

Creating Flash Algorithms with Eclipse

Creating Flash Algorithms with Eclipse Application Note 190 Released on: August, 2007 Copyright 2007. All rights reserved. DAI0190A Creating Flash Algorithms with Eclipse Application Note 190 Copyright 2007. All rights reserved. Release Information

More information

Calendar Description

Calendar Description ECE212 B1: Introduction to Microprocessors Lecture 1 Calendar Description Microcomputer architecture, assembly language programming, memory and input/output system, interrupts All the instructions are

More information

EE 308: Microcontrollers

EE 308: Microcontrollers EE 308: Microcontrollers AVR Architecture Aly El-Osery Electrical Engineering Department New Mexico Institute of Mining and Technology Socorro, New Mexico, USA January 23, 2018 Aly El-Osery (NMT) EE 308:

More information

CS399 New Beginnings. Jonathan Walpole

CS399 New Beginnings. Jonathan Walpole CS399 New Beginnings Jonathan Walpole Memory Management Memory Management Memory a linear array of bytes - Holds O.S. and programs (processes) - Each cell (byte) is named by a unique memory address Recall,

More information

University of Florida EEL 3744 Spring 2018 Dr. Eric M. Schwartz. Good luck!

University of Florida EEL 3744 Spring 2018 Dr. Eric M. Schwartz. Good luck! Page 1/13 Exam 2 Relax! Go Gators! Good luck! First Name Instructions: Turn off all cell phones and other noise making devices and put away all electronics. Show all work on the front of the test papers.

More information

4. (a) With a neat sketch explain 8237 DMA controller and its operation? (b) With the help of basic cell explain SRAM and DRAM?

4. (a) With a neat sketch explain 8237 DMA controller and its operation? (b) With the help of basic cell explain SRAM and DRAM? Code No: R05220504 Set No. 1 II B.Tech II Semester Regular Examinations, Apr/May 2008 MICROPROCESSORS AND INTERFACING ( Common to Computer Science & Engineering, Information Technology and Computer Science

More information

RX Family APPLICATION NOTE. Simple I 2 C Module Using Firmware Integration Technology. Introduction. Target Device.

RX Family APPLICATION NOTE. Simple I 2 C Module Using Firmware Integration Technology. Introduction. Target Device. APPLICATION NOTE RX Family R01AN1691EJ0220 Rev. 2.20 Introduction This application note describes the simple I 2 C module using firmware integration technology (FIT) for communications between devices

More information

PC Interrupt Structure and 8259 DMA Controllers

PC Interrupt Structure and 8259 DMA Controllers ELEC 379 : DESIGN OF DIGITAL AND MICROCOMPUTER SYSTEMS 1998/99 WINTER SESSION, TERM 2 PC Interrupt Structure and 8259 DMA Controllers This lecture covers the use of interrupts and the vectored interrupt

More information

MICROPROCESSOR TECHNOLOGY

MICROPROCESSOR TECHNOLOGY MICROPROCESSOR TECHNOLOGY Assis. Prof. Hossam El-Din Moustafa Lecture 13 Ch.6 The 80186, 80188, and 80286 Microprocessors 21-Apr-15 1 Chapter Objectives Describe the hardware and software enhancements

More information

Keywords: maxq microcontrollers, data flash, in-application programming, in circuit programming, flash, microcontroller, MAXQ7663, MAXQ7664

Keywords: maxq microcontrollers, data flash, in-application programming, in circuit programming, flash, microcontroller, MAXQ7663, MAXQ7664 Maxim > Design Support > Technical Documents > Application Notes > Microcontrollers > APP 3569 Keywords: maxq microcontrollers, data flash, in-application programming, in circuit programming, flash, microcontroller,

More information

SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013)

SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013) SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013) UNIT I THE 8086 MICROPROCESSOR PART A (2 MARKS) 1. What are the functional

More information

Programming the 8259 PIC: A Tech-Tip Example and Boilerplate

Programming the 8259 PIC: A Tech-Tip Example and Boilerplate Programming the 8259 PIC: A Tech-Tip Example and Boilerplate Thomas W. Associate Professor, New Mexico State University, Department of Engineering Technology PO Box 3001, MSC 3566, Las Cruces, NM 88003-8001,

More information

The Embedded Computing Platform

The Embedded Computing Platform The Embedded Computing Platform I/O Interfaces and Service José Costa Software for Embedded Systems Department of Computer Science and Engineering (DEI) Instituto Superior Técnico Adapted from the overheads

More information

Part I Overview Chapter 1: Introduction

Part I Overview Chapter 1: Introduction Part I Overview Chapter 1: Introduction Fall 2010 1 What is an Operating System? A computer system can be roughly divided into the hardware, the operating system, the application i programs, and dthe users.

More information

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING QUESTION BANK Subject Code : EC307 Subject Name : Microprocessor and Interfacing Year & Sem : III Year, V Sem

More information

Serial I-O for Dinesh K. Sharma Electrical Engineering Department I.I.T. Bombay Mumbai (version 14/10/07)

Serial I-O for Dinesh K. Sharma Electrical Engineering Department I.I.T. Bombay Mumbai (version 14/10/07) Serial I-O for 8051 Dinesh K. Sharma Electrical Engineering Department I.I.T. Bombay Mumbai 400 076 (version 14/10/07) 1 Motivation Serial communications means sending data a single bit at a time. But

More information

The x86 Microprocessors. Introduction. The 80x86 Microprocessors. 1.1 Assembly Language

The x86 Microprocessors. Introduction. The 80x86 Microprocessors. 1.1 Assembly Language The x86 Microprocessors Introduction 1.1 Assembly Language Numbering and Coding Systems Human beings use the decimal system (base 10) Decimal digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Computer systems use the

More information

Interrupts Peter Rounce - room 6.18

Interrupts Peter Rounce - room 6.18 Interrupts Peter Rounce - room 6.18 P.Rounce@cs.ucl.ac.uk 20/11/2006 1001 Interrupts 1 INTERRUPTS An interrupt is a signal to the CPU from hardware external to the CPU that indicates than some event has

More information

APPLICATION NOTE PACE P1754 PIC SYSTEM TEST

APPLICATION NOTE PACE P1754 PIC SYSTEM TEST APPLICATION NOTE PACE P1754 PIC SYSTEM TEST The PACE1754 PIC chip provides the system designer with a system test which may be run at power-up if enabled. This test is very useful for establishing the

More information

Introduction. CS3026 Operating Systems Lecture 01

Introduction. CS3026 Operating Systems Lecture 01 Introduction CS3026 Operating Systems Lecture 01 One or more CPUs Device controllers (I/O modules) Memory Bus Operating system? Computer System What is an Operating System An Operating System is a program

More information

ME 4447/6405. Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics. Instructor: Professor Charles Ume LECTURE 6

ME 4447/6405. Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics. Instructor: Professor Charles Ume LECTURE 6 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics Instructor: Professor Charles Ume LECTURE 6 MC9S12C Microcontroller Covered in Lecture 5: Quick Introduction

More information

1. What is Microprocessor? Give the power supply & clock frequency of 8085?

1. What is Microprocessor? Give the power supply & clock frequency of 8085? 1. What is Microprocessor? Give the power supply & clock frequency of 8085? A microprocessor is a multipurpose, programmable logic device that reads binary instructions from a storage device called memory

More information

ELC4438: Embedded System Design Embedded Processor

ELC4438: Embedded System Design Embedded Processor ELC4438: Embedded System Design Embedded Processor Liang Dong Electrical and Computer Engineering Baylor University 1. Processor Architecture General PC Von Neumann Architecture a.k.a. Princeton Architecture

More information

MACHINE CONTROL INSTRUCTIONS: 1. EI

MACHINE CONTROL INSTRUCTIONS: 1. EI Lecture-33 MACHINE CONTROL INSTRUCTIONS: 1. EI (Enable interrupts): The interrupt system is disabled just after RESET operation. There is an internal INTE F/F (Interrupt enable flipflop) which is reset

More information

Functional Units of a Modern Computer

Functional Units of a Modern Computer Functional Units of a Modern Computer We begin this lecture by repeating a figure from a previous lecture. Logically speaking a computer has four components. Connecting the Components Early schemes for

More information

Chapter Operation Pinout Operation 35

Chapter Operation Pinout Operation 35 68000 Operation 35 Chapter 6 68000 Operation 6-1. 68000 Pinout We will do no construction in this chapter; instead, we will take a detailed look at the individual pins of the 68000 and what they do. Fig.

More information

Introduction to Embedded Systems

Introduction to Embedded Systems Stefan Kowalewski, 4. November 25 Introduction to Embedded Systems Part 2: Microcontrollers. Basics 2. Structure/elements 3. Digital I/O 4. Interrupts 5. Timers/Counters Introduction to Embedded Systems

More information

There are different characteristics for exceptions. They are as follows:

There are different characteristics for exceptions. They are as follows: e-pg PATHSHALA- Computer Science Computer Architecture Module 15 Exception handling and floating point pipelines The objectives of this module are to discuss about exceptions and look at how the MIPS architecture

More information

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS FATIMA MICHAEL COLLEGE OF ENGINEERING & TECHNOLOGY Senkottai Village, Madurai Sivagangai Main Road, Madurai -625 020 QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS UNIT 1 - THE 8085 AND 8086

More information

Types of Interrupts:

Types of Interrupts: Interrupt structure Introduction Interrupt is signals send by an external device to the processor, to request the processor to perform a particular task or work. Mainly in the microprocessor based system

More information

The MC9S12 address, data and control buses The MC9S12 single-chip mode memory map Simplified write/read cycle. Address, Data and Control Buses

The MC9S12 address, data and control buses The MC9S12 single-chip mode memory map Simplified write/read cycle. Address, Data and Control Buses EE 308 Spring 2013 The MC9S12 address, data and control buses The MC9S12 single-chip mode memory map Simplified write/read cycle The real MC9S12 multiplexed external bus Byte order in microprocessors How

More information

embos Real-Time Operating System embos plug-in for IAR C-Spy Debugger Document: UM01025 Software Version: 3.1 Revision: 0 Date: May 3, 2018

embos Real-Time Operating System embos plug-in for IAR C-Spy Debugger Document: UM01025 Software Version: 3.1 Revision: 0 Date: May 3, 2018 embos Real-Time Operating System Document: UM01025 Software Version: 3.1 Revision: 0 Date: May 3, 2018 A product of SEGGER Microcontroller GmbH www.segger.com 2 Disclaimer Specifications written in this

More information

Microprocessors & Interfacing

Microprocessors & Interfacing Lecture Overview Microprocessors & Interfacing Interrupts (I) Lecturer : Dr. Annie Guo Introduction to Interrupts Interrupt system specifications Multiple sources of interrupts Interrupt priorities Interrupts

More information

BASIC INTERFACING CONCEPTS

BASIC INTERFACING CONCEPTS Contents i SYLLABUS UNIT - I 8085 ARCHITECTURE Introduction to Microprocessors and Microcontrollers, 8085 Processor Architecture, Internal Operations, Instructions and Timings, Programming the 8085-Introduction

More information

SECTION 2 SIGNAL DESCRIPTION

SECTION 2 SIGNAL DESCRIPTION SECTION 2 SIGNAL DESCRIPTION 2.1 INTRODUCTION Figure 2-1 displays the block diagram of the MCF5206 along with the signal interface. This section describes the MCF5206 input and output signals. The descriptions

More information

Interrupts (I) Lecturer: Sri Notes by Annie Guo. Week8 1

Interrupts (I) Lecturer: Sri Notes by Annie Guo. Week8 1 Interrupts (I) Lecturer: Sri Notes by Annie Guo Week8 1 Lecture overview Introduction to Interrupts Interrupt system specifications Multiple Sources of Interrupts Interrupt Priorities Interrupts in AVR

More information

Instructions Involve a Segment Register (SR-field)

Instructions Involve a Segment Register (SR-field) BYTE 1 = 11000111 2 = C7 16 BYTE 2 = (MOD)000(R/M) = 100000112 = 83 16 BYTE 3 = 34 16 and BYTE 4 = 12 16 BYTE 5 = CD 16 and BYTE 6 = AB 16 The machine code for the instruction is: MOV [BP+DI+1234H], 0ABCDH

More information

8032 MCU + Soft Modules. c = rcvdata; // get the keyboard scan code

8032 MCU + Soft Modules. c = rcvdata; // get the keyboard scan code 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 { 0x25, 0x66 }, // "4" { 0x2E, 0x6D }, // "5" { 0x36, 0x7D }, // "6" { 0x3D, 0x07 }, // "7" { 0x3E, 0x7F }, // "8" { 0x46,

More information

Architecture of Computers and Parallel Systems Part 2: Communication with Devices

Architecture of Computers and Parallel Systems Part 2: Communication with Devices Architecture of Computers and Parallel Systems Part 2: Communication with Devices Ing. Petr Olivka petr.olivka@vsb.cz Department of Computer Science FEI VSB-TUO Architecture of Computers and Parallel Systems

More information

Lecture Note On Microprocessor and Microcontroller Theory and Applications

Lecture Note On Microprocessor and Microcontroller Theory and Applications Lecture Note On Microprocessor and Microcontroller Theory and Applications MODULE: 1 1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip

More information

Sunday, April 25, 2010

Sunday, April 25, 2010 Sunday, April 25, 2010 BSNL TTA EXAM MICRO PROCESSER BSNL TTA EXAM MICRO PROCESSER 1. A 32-bit processor has (a) 32 registers (b) 32 I/O devices (c) 32 Mb of RAM (d) a 32-bit bus or 32-bit registers 2.

More information

CHAPTER 4 MARIE: An Introduction to a Simple Computer

CHAPTER 4 MARIE: An Introduction to a Simple Computer CHAPTER 4 MARIE: An Introduction to a Simple Computer 4.1 Introduction 177 4.2 CPU Basics and Organization 177 4.2.1 The Registers 178 4.2.2 The ALU 179 4.2.3 The Control Unit 179 4.3 The Bus 179 4.4 Clocks

More information

CP/M-86 Compatibility Guide For CP/M-80 Users

CP/M-86 Compatibility Guide For CP/M-80 Users CCGFCU.WS4 ---------- CP/M-86 Compatibility Guide For CP/M-80 Users (= CCGFCU...) Copyright (c) 1980 Digital Research Pacific Grove, California (Revision of 10/21/80) (= 21 October 1980) (Retyped by Emmanuel

More information

Frequently Asked Questions

Frequently Asked Questions LAN91C111 Frequently Asked Questions 10/100 Non-PCI Ethernet Single Chip MAC and PHY IMPLEMENTATION Q: What is the minimum cycle time for each read and write access (synchronous, asynchronous, burst, non-burst)?

More information

Chapter 5 - Input / Output

Chapter 5 - Input / Output Chapter 5 - Input / Output Luis Tarrataca luis.tarrataca@gmail.com CEFET-RJ L. Tarrataca Chapter 5 - Input / Output 1 / 90 1 Motivation 2 Principle of I/O Hardware I/O Devices Device Controllers Memory-Mapped

More information

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications Embedded TCP/IP 10-BaseT Network Module Features 8-bit reprogrammable Microcontroller with Enhanced Flash program memory, EEPROM and Static RAM data memory On board 10Mbps Ethernet controller, and RJ45

More information