8051 Peripherals. On-Chip Memory Timers Serial Port Interrupts. Computer Engineering Timers
|
|
- Philip Gardner
- 5 years ago
- Views:
Transcription
1 8051 Peripherals On-Chip Memory Timers Serial Port Interrupts Computer Engineering Timers
2 8051 Timers The 8051 has 2 internal 16-bit timers named Timer 0 and Timer 1 Each timer is a 16-bit counter Count range is 0000H to FFFFH (65535) The timers have 2 modes of operation Timer mode allows the timer to count internal clock pulses The timer register is updated every machine cycle (12 oscillator clocks) Applications include delays, real time clocks etc The timers may also be used to generate the baud rate for the serial port In counter mode the timer can be used to count external events The timer register is incremented every time an external timer pin goes high to low Applications include pulse width and frequency measurement Computer Engineering Timers
3 Timer Operation Each timer is an up-counter Consider a 4-bit counter the count range is 0000 to 1111 (F Hex) when the count reaches 1111 it will overflow to 0000 an overflow flag will be set when this overflow condition occurs to generate a delay the counter is loaded with an initial value and then started the count will increment every counter clock the maximum delay is 16 clocks (initial value = 0000) delays shorter than 16 clocks are possible by changing the initial value Example a 4-bit counter is clocked by a 1Kz clock. If the counter is loaded with an initial value of 6, how long before the counter will overflow? Computer Engineering Timers
4 4-Bit Operation Counter counts up on each rising edge of the clock when the ENABLE input is high Count range is 0000 to 1111 Binary The counter may be loaded with an initial value on the PL inputs when the LOAD signal is high The overflow signal OVF goes high when the count overflows Initial Output Range 0000 to 1111 (0 to 15 decimal) PL3 PL2 PL1 PL0 Q3 Q2 Q1 Q0 Count Output Range 0000 to 1111 (0 to 15 decimal) LOAD OVF CLK ENABLE High when count overflows From 1111 to bit Counter Computer Engineering Timers
5 Using the 8051 Timers For Delays Each 8051 timer is a 16 bit register with a count range from 0000H to FFFFH The timer register is made up of 2 8-bit registers TH0 and TL0 for timer 0 TH1 and TL1 for timer 1 THx holds the count high byte, TLx holds the count low byte. When enabled the timer counts from an initial value to FFFFH and then overflows to 0000H. The count is incremented every 12 clocks (1 machine cycle). An overflow flag is set when the count overflows. Delay = [12 x (2 16 initial value)]/fosc fosc = 8051 crystal frequency Initial value = timer register start value Computer Engineering Timers
6 Delay = [12 x (2 16 initial value)]/fosc Delay Calculations Initial Value = [(delay x fosc)/12] Max. delay for a 12MHz crystal is 12x2 16 / = 65536usec = msec. this is for an initial value of 0 Calculate the initial value for a delay of 50msec initial value = 2 16 [(0.05 x )/12] Initial value = decimal = 3CB0H Load TL0 with B0H Load TH0 with 3CH Computer Engineering Timers
7 Timer Configuration Before using the timers a number of Special Function Registers (SFRs) must be configured. The SFRs are contained in the 8051 s internal data memory. 1. The timer control register (TCON) is used to start and stop the timers. The timer overflow flags are also contained in this register. 2. The timer mode register (TMOD) is used to configure the mode of operation of the timers 3. The timer registers (THx and TLx) contain the current 16-bit timer count. These registers can be loaded to provide an initial count. Computer Engineering Timers
8 Timer Control Register Source Philips 80C51 Family Programmer s Guide and Instruction Set Computer Engineering Timers
9 Timer Control Register (TCON) The timer control SFR contains 2 bits for each timer The run bit (TR0 for timer 0, TR1 for timer 1) is set to turn on the timer, cleared to turn off the timer The timer flag bit (TF0 for timer 0, TF1 for timer 1) is set when the timer register overflows from FFFFH to 0000H TCON is bit-addressable i..e to start a timer running TR0 = 1; To stop a timer TR0 = 0; To test if the timer has overflowed while(!tf0); //wait for timer to overflow Computer Engineering Timers
10 Timer Mode Register (TMOD) Source Philips 80C51 Family Programmer s Guide and Instruction Set Computer Engineering Timers
11 Timer Mode Register (TMOD) The TMOD register is used to configure the timer mode. There are 4 bits for each timer. The timers can operate in 4 modes set by the bits M1 and M0. For now we will just use the timer in mode 1 (M1M0 = 01 ). In mode 1 the timer operates as a 16 bit counter The C/T bit configures the timer to count internal clock pulses (timer mode) or external pulses (counter mode). For delays the C/T bit should be 0 The Gate bit should be 0 for all delay applications. The TMOD register is not bit addressable. Computer Engineering Timers
12 Configuring The Timers Timer 0 can be configured to generate a delay using the following steps: - 1. Clear the timer run bit and timer flag TR0 = 0; //timer stopped TF0 = 0; //timer flag cleared 2. Configure the timer mode register TMOD = 0x01; //timer 0 configured for mode 1 in timer mode 3. Configure the initial timer register value TH0 = 0x3C; //initial value for 50msec delay using a 12MHz crystal TL0 = 0xB0; 4. Start the timer TR0 = 1; //timer started 5. Wait for the timer flag to be set. The flag will be set when the timer overflows. while(!tf0); 6. Clear the timer flag and stop the timer. TF0 = 0; TR0 = 0; Computer Engineering Timers
13 Using Timer 0 to Generate a Delay //function to generate a delay of 50msec void delay() { TR0 = 0; //stop timer TF0 = 0; //clear timer flag TMOD = 0x01; //mode 1-16 bit timer TH0 = 0x3C; //reload values for a 50msec delay TL0 = 0xB0; TR0 = 1; //start timer; while(!tf0); //wait for timer overflow TF0 = 0; //clear overflow flag TR0 = 0; //stop timer } Computer Engineering Timers
14 Timer Quiz What delay is generated by the following function if the 8051 is operating off a 12MHz crystal? void delay() { TR0 = 0; TF0 = 0; TMOD = 0x01; TH0 = 0x3C; TL0 = 0xB0; TR0 = 1; while(!tf0); TF0 = 0; TR0 = 0; } //stop timer //clear timer flag //mode 1-16 bit timer //reload values for a 50msec delay //start timer; //wait for timer overflow //clear overflow flag //stop timer Write a function that uses timer 0 to generate a delay of 1msec. Assume that the 8051 is operating off a 12MHz crystal. Computer Engineering Timers
15 Using Timer 0 to Generate a Delay The maximum delay that can be generated with a timer using a 12MHz crystal is msec. To generate longer delays we need to insert a loop into our delay function. //function to generate a delay of x times 50msec void delay(unsigned char x) { unsigned char z; TR0 = 0; //stop timer TF0 = 0; //clear timer flag TMOD = 0x01; //mode 1-16 bit timer for (z=0;z<x;z++) { TH0 = 0x3C; //reload values for a 50msec delay TL0 = 0xB0; TR0 = 1; //start timer; while(!tf0); //wait for timer overflow TF0 = 0; } TR0 = 0; //stop timer } Computer Engineering Timers
16 Example Code //program to flash an LED connected to Port 2 pin 0 every second using timer 0 #include <reg51.h> sbit LED = P2^0; void delay(unsigned char x); void main() { while (1) //continuous loop { LED = 0; //LED off delay(10); //delay = 10 * 50msec = 0.5sec LED = 1; //LED on delay(10); } } //Delay function (delay = x * 50msec) void delay(unsigned char x) {. } Computer Engineering Timers
17 Counter Mode When the C/T bit in the TMOD register is set to 1, the timers will count high to low transitions on the relevant counter pin P3.4 for timer 0 P3.5 for timer 1 If the run bit is set, the timer registers will be incremented for every high to low transition on the timer pin The low and high state must remain active for at least 1 machine cycle Useful or measuring the frequency of an external source e.g. heart beat monitor Max. frequency that can be measured = (crystal frequency)/(2 * 12) Computer Engineering Timers
18 Frequency Measurement How do we write code to measure the frequency of an external waveform? Connect the signal to be measured to a timer input pin P3.5 is the timer 1 pin (T1) Set up timer 0 in timer mode for a fixed delay (e.g. 1 second) Set up timer 1 in counter mode with an initial value of 0 Start the 2 timers running The timer 1 counter will increment on each high to low transition of the T1 pin At the end of the 1 second interval, the timer 1 register contains a count of the number of waveform periods measured. Frequency = Timer 1 count 8051 T1 Computer Engineering Timers
CHAPTER TIMER PROGRAMMING
CHAPTER 9 8051 TIMER PROGRAMMING 8051 Timers The 8051 has two timers/counters, they can be used as Timers to generate a time delay Event counters to count events happening outside the microcontroller Both
More informationELEG3923 Microprocessor Ch.9 Timer Programming
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.9 Timer Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Programming 8051 Timers Counter programming Timer programming
More informationLecture 9. Timer Operations and Programming
Lecture 9 Timer Operations and Programming Timer Operations and Programming Introduction Summary of timers Timer programming sequence Summary of timer SFRs Timer 0-1: 8-bit auto-reload mode (mode 2) Programming
More informationThe 8051 microcontroller has two 16-bit timers/counters called T0 and T1.
Counters and Timers: The 8051 microcontroller has two 16-bit timers/counters called T0 and T1. As their names suggest, timer counts internal clock pulse i.e. machine cycle to provide delay. Counter counts
More informationDepartment of EIE / Pondicherry Engineering College. Timer/Counters. Department of EIE / Pondicherry Engineering College 1
Timer/Counters Department of EIE / Pondicherry Engineering College 1 The 8051 has two internal sixteen bit hardware Timer/Counters. Each Timer/Counter can be configured in various modes, typically based
More informationTimers and interrupts
Timers and interrupts CSCI 255: Introduction to Embedded Systems Keith Vertanen Copyright 2011 Timers Overview Creating fixed pauses Calculate length of events Counts events Generate baud rate for serial
More informationTimer programming
5.8051 Timer programming In this tutorial, we are going to discuss the Timer module of 8051. First, we will see what are timers, their working and later we will configure the 8051 timers to generate the
More information8051 Microcontroller
8051 Microcontroller The 8051, Motorola and PIC families are the 3 leading sellers in the microcontroller market. The 8051 microcontroller was originally developed by Intel in the late 1970 s. Today many
More informationCPEG300 Embedded System Design. Lecture 8 Timer
CPEG300 Embedded System Design Lecture 8 Timer Hamad Bin Khalifa University, Spring 2018 Review 8051 port and port schematic Internal read/write data path Serial communication vs. parallel communication
More informationEE 354 September 16, 2016 C Sample Programs
EE 354 September 16, 2016 C Sample Programs //DataArray /* This program creates an array of data in code memory * that is 32 bytes long. Fill this array with the ascii codes for * the capital letters plus
More information8051 Timers. Class 7 EE4380 Fall Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas
8051 Timers Class 7 EE4380 Fall 2002 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Introduction Timers Timing devices - Generate specific time delay Event
More informationLesson-3: Counters and Timers
8051 AND ADVANCED PROCESSOR ARCHITECTURES Lesson-3: Counters and Timers 1 Timing and counting devices Two T0 and T1 in classic 8051 family and three T0, T1 and T2 in 8052 family (an extension of 8051).
More information1. Attempt any three of the following: 15
(2½ hours) Total Marks: 75 N. B.: (1) All questions are compulsory. (2) Make suitable assumptions wherever necessary and state the assumptions made. (3) Answers to the same question must be written together.
More informationChapter 09. Programming in Assembly
Chapter 09 Programming in Assembly Lesson 05 Programming Examples for Timers Programming TMOD Register 3 Write instructions to run T0 in Mode 0, external count inputs, internal start/stop control ANL TMOD,
More informationBy the end of Class. Outline. Homework 5. C8051F020 Block Diagram (pg 18) Pseudo-code for Lab 1-2 due as part of prelab
By the end of Class Pseudo-code for Lab 1-2 due as part of prelab Homework #5 on website due before next class Outline Introduce Lab 1-2 Counting Timers on C8051 Interrupts Laboratory Worksheet #05 Copy
More information80C51 Block Diagram. CSE Overview 1
80C51 Block Diagram CSE 477 8051 Overview 1 80C51 Memory CSE 477 8051 Overview 3 8051 Memory The data width is 8 bits Registers are 8 bits Addresses are 8 bits i.e. addresses for only 256 bytes! PC is
More informationInterrupts, timers and counters
Interrupts, timers and counters Posted on May 10, 2008, by Ibrahim KAMAL, in Micro-controllers, tagged Most microcontrollers come with a set of ADD-ONs called peripherals, to enhance the functioning of
More informationTimer Counter and Interrupt. Equation (16 bits counter, Mode 1, 16MHz):
Equation (16 bits counter, Mode 1, 16MHz): THxTLx = 65536 - (Tt * 16.777216 e6) where: Tt: Target time x: Timer/Counter (0, 1 and 2) THx: Timer high byte TLx: Timer low byte Used Interrupts: 1 (Address,
More informationMICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Features of 8051:
DEPARTMENT OF ECE MICROPROCESSORS AND MICROCONTROLLERS MATERIAL UNIT V 8051 MICROCONTROLLERS To make a complete microcomputer system, only microprocessor is not sufficient. It is necessary to add other
More informationاصول ميکروکامپيوترها استاد درس: دکتر http://ee.iust.ac.ir/rahmati/index.htm rahmati@iust.ac.ir ا درس Email و Website برای تکاليف و... : http://eel.iust.ac.ir/rahmati/ ١ هجدهم فصل ا شنايی با تايمرهای 8051
More informationMODEL ANSWER SUBJECT- MICROCONTROLLER(12187) CLASS-EJ5E CLASS TEST-02 Q1.)Attempt any THREE of the following.
MODEL ANSWER SUBJECT- MICROCONTROLLER(12187) CLASS-EJ5E CLASS TEST-02 Q1.)Attempt any THREE of the following. (9M) 1) Describe the instructions SWAP A and MOVX@DPTR,A with one example. (3Marks) SWAP A
More informationMod-3: Interrupts,Timer operation,serial communication 1
Mod-3: Interrupts,Timer operation,serial communication 1 Module-3 Contents: Interrupts - interrupt sources - interrupt handling programming examples. Timers operation different modes waveform generation-
More informationInterrupts. EE4380 Fall 2001 Class 9. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas
8051 - Interrupts EE4380 Fall 2001 Class 9 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Polling Vs Interrupts Polling: MCU monitors all served devices continuously,
More informationSANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1
SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 Subject: Microcontroller and Interfacing (151001) Class: B.E.Sem V (EC-I & II) Q-1 Explain RISC
More information8051 Microcontroller
8051 Microcontroller 1 Salient Features (1). 8 bit microcontroller originally developed by Intel in 1980. (2). High-performance CMOS Technology. (3). Contains Total 40 pins. (4). Address bus is of 16 bit
More informationLecture-55 System Interface:
Lecture-55 System Interface: To interface 8253 with 8085A processor, CS signal is to be generated. Whenever CS =0, chip is selected and depending upon A 1 and A 0 one of the internal registers is selected
More informationUBC104 Embedded Systems. Review: Introduction to Microcontrollers
UBC104 Embedded Systems Review: Introduction to Microcontrollers Processors General purpose processors: 80386 Pentium Core Duo Large number of pins External memory External peripherals * Figure from Intel
More information8051 Microcontroller memory Organization and its Applications
8051 Microcontroller memory Organization and its Applications Memory mapping in 8051 ROM memory map in 8051 family 0000H 4k 0000H 8k 0000H 32k 0FFFH DS5000-32 8051 1FFFH 8752 7FFFH from Atmel Corporation
More informationRev. No. History Issue Date Remark
Preliminary Bar Code Reader Document Title Bar Code Reader Revision History Rev. No. History Issue Date Remark 0.0 Initial issue June 5, 2000 Preliminary 0.1 Change document title from Bar Code Reader
More information8254 is a programmable interval timer. Which is widely used in clock driven digital circuits. with out timer there will not be proper synchronization
8254 is a programmable interval timer. Which is widely used in clock driven digital circuits. with out timer there will not be proper synchronization between two devices. So it is very useful chip. The
More informationUnderstanding 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 informatione-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interrupt Programming in Embedded C Module No: CS/ES/20 Quadrant 1 e-text
e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interrupt Programming in Embedded C Module No: CS/ES/20 Quadrant 1 e-text In this lecture embedded C program for interrupt handling
More informationMeasuring Duty Cycles with an Intel MCS-51 Microcontroller
Measuring Duty Cycles with an Intel MCS-51 Microcontroller Paul C. de Jong and Ferry N. Toth The fastest way of measuring duty cycles is with the aid of hardware. The MCS-51 type of microcontrollers offers
More informationISSI. IS89C51 CMOS SINGLE CHIP 8-BIT MICROCONTROLLER with 4-Kbytes of FLASH ISSI IS89C51 NOVEMBER 1998 FEATURES GENERAL DESCRIPTION
IS89C51 CMOS SINGLE CHIP 8-BIT MICROCONTROLLER with 4-Kbytes of FLASH NOVEMBER 1998 FEATURES 80C51 based architecture 4-Kbytes of on-chip Reprogrammable Flash Memory 128 x 8 RAM Two 16-bit Timer/Counters
More informationEmbedded Controller Programming II. I/O Device Programming in C Part 1: Input and Interrupts
Discovery.com Embedded Controller Programming II I/O Device Programming in C Part 1: Input and Interrupts Ken Arnold Copyright (c)2006 Ken Arnold 051221 1 Overview Basic Input Devices Switch Input Matrix
More information8051 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 informationWINTER 14 EXAMINATION Subject Code: Model Answer Page No: 1/ 26
WINTER 14 EXAMINATION Subject Code: 17509 Model Answer Page No: 1/ 26 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer
More informationEE6502- MICROPROCESSOR AND MICROCONTROLLER
. EE6502- MICROPROCESSOR AND MICROCONTROLLER UNIT III - 8051 MICROCONTROLLER PART - A 1. What is Microcontroller? A device which contains the microprocessor with integrated peripherals like memory, serial
More information8051 microcontrollers
8051 microcontrollers Presented by: Deepak Kumar Rout Synergy Institute of Engineering and Technology, Dhenkanal Chapter 2 Introduction Intel MCS-51 family of microcontrollers consists of various devices
More informationCoE3DJ4 Digital Systems Design. Chapter 5: Serial Port Operation
CoE3DJ4 Digital Systems Design Chapter 5: Serial Port Operation Serial port 8051 includes an on-chip serial port Hardware access to the port is through TXD and RXD (Port 3 bits 1 and 0) Serial port is
More informationAT Bit Spread- Spectrum Microcontroller. Preliminary. Features. Description. Pin Configuration
Features Compatible with MCS-51 Products 8K bytes of On-Board Program Memory Fully Static Operation: 0 Hz to 16 MHz 256 x 8 Bit Internal RAM 32 Programmable I/O Lines Three 16 Bit Timer/Counters Eight
More information8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52
Features Compatible with MCS -51 Products 8K Bytes of In-System Programmable (ISP) Flash Memory Endurance: 10,000 Write/Erase Cycles 4.0V to 5.5V Operating Range Fully Static Operation: 0 Hz to 33 MHz
More information8051 MICROCONTROLLER
8051 MICROCONTROLLER Mr.Darshan Patel M.Tech (Power Electronics & Drives) Assistant Professor Department of Electrical Engineering Sankalchand Patel College of Engineering-Visnagar WHY DO WE NEED TO LEARN
More information8XC151SA and 8XC151SB Hardware Description
8XC151SA and 8XC151SB Hardware Description June 1996 Order Number 272832-001 Information in this document is provided in connection with Intel products Intel assumes no liability whatsoever including infringement
More informationDistributed by: www.jameco.com 1-800-831-4242 The content and copyrights of the attached material are the property of its owner. 8051 8052 and 80C51 Hardware Description December 1992 Order Number 270252-006
More informationThe Timers/Counters The Serial Interface The Interrupt System Reset P0.0-P0.7 P2.0-P2.7. Port 2 Drivers. Port 2 Latch
HARDWARE DESCRIPTION This chapter provides a detailed description of the 80C51 microcontroller (see Figure 1). Included in this description are: The port drivers and how they function both as ports and,
More informationQ.1. A) Attempt any THREE of the following:
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate
More informationET355 Microprocessors Thursday 6:00 pm 10:20 pm
ITT Technical Institute ET355 Microprocessors Thursday 6:00 pm 10:20 pm Unit 4 Chapter 6, pp. 139-174 Chapter 7, pp. 181-188 Unit 4 Objectives Lecture: BCD Programming Examples of the 805x Microprocessor
More informationMCS-51 Serial Port A T 8 9 C 5 2 1
MCS-51 Serial Port AT89C52 1 Introduction to Serial Communications Serial vs. Parallel transfer of data Simplex, Duplex and half-duplex modes Synchronous, Asynchronous UART Universal Asynchronous Receiver/Transmitter.
More informationChapter 6 PROGRAMMING THE TIMERS
Chapter 6 PROGRAMMING THE TIMERS Reload Start Stop Programmabl e Prescaling Prescaling Loa d Timer-counter Device Reset Internal clock inputs External counting of inputs Free Running Lesson 1 Programmable
More informationBachelor of Engineering in Computer and Electronic Engineering
Bachelor of Engineering in Computer and Electronic Engineering Computer Engineering 1 Year 2 Semester 3 Autumn 08 Niall O Keeffe Instructions to Candidates: - 2 hours duration Answer 4 out of 6 questions.
More informationFACULTY OF ENGINEERING LAB SHEET
FACULTY OF ENGINEERING LAB SHEET MICROCONTROLLER AND MICROPROCESSOR SYSTEMS ECE2216 TRIMESTER 1 (2017/2018) MP2: Construction and programming of a basic electronic piano *Note: On-the-spot evaluation may
More informationUNIT IV MICROCONTROLLER
UNIT IV 8051- MICROCONTROLLER Prepared by R. Kavitha Page 1 Application Prepared by R. Kavitha Page 2 Pin Description of the 8051 UNIT IV- 8051 MICROCONTROLLER P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RST
More informationLecture 10. Serial Communication
Lecture 10 Serial Communication Serial Communication Introduction Serial communication buses Asynchronous and synchronous communication UART block diagram UART clock requirements Programming the UARTs
More informationGeneral Purpose Programmable Peripheral Devices. Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar
Chapter 15 General Purpose Programmable Peripheral Devices by Rahul Patel, Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar Microprocessor & Interfacing (140701) Rahul Patel 1
More informationQuestion Bank Microprocessor and Microcontroller
QUESTION BANK - 2 PART A 1. What is cycle stealing? (K1-CO3) During any given bus cycle, one of the system components connected to the system bus is given control of the bus. This component is said to
More informationFig 1. Block diagram of a microcomputer
MICRO CONTROLLERS www.bookspar.com VTU NOTES QUESTION PAPERS UNIT - 1 Computer: A computer is a multipurpose programmable machine that reads binary instructions from its memory, accepts binary data as
More informationCS 320. Computer Architecture Core Architecture
CS 320 Computer Architecture 8051 Core Architecture Evan Hallam 19 April 2006 Abstract The 8051 is an 8-bit microprocessor designed originally in the 1980 s by the Intel Corporation. This inexpensive and
More informationUsing Timers of Microchip PIC18F Microcontrollers
Using Timers of Microchip PIC18F Microcontrollers ARSLAB - Autonomous and Robotic Systems Laboratory Dipartimento di Matematica e Informatica - Università di Catania, Italy santoro@dmi.unict.it L.A.P.
More information8XC51RA RB RC Hardware Description
8XC51RA RB RC Hardware Description February 1995 Order Number 272668-001 Information in this document is provided in connection with Intel products Intel assumes no liability whatsoever including infringement
More informationINTERRUPTS PROGRAMMING
INTERRUPTS PROGRAMMING The 8051 Microcontroller and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay Chung-Ping Young 楊中平 Home Automation, Networking, and Entertainment Lab Dept. of Computer
More informationINSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad
INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 043 ELECTRONICS AND COMMUNICATION ENGINEERING TUTORIAL QUESTION BANK Name : EMBEDDED C Code : BES001 Class : I - M. Tech Branch
More informationP89V52X2. 1. General description. 2. Features. 8-bit 80C51 low power 8 kb flash microcontroller with 256 B RAM, 192 B data EEPROM
8-bit 80C51 low power 8 kb flash microcontroller with 256 B RAM, 192 B data EEPROM Rev. 01 7 June 2007 Preliminary data sheet 1. General description The is an 80C51 microcontroller with 8 kb flash, 256
More informationChapter C2051 Architecture and Serial Communication Link
Chapter- 2 89C2051 Architecture and Serial Communication Link ABSTRACT This chapter provides the details of 89C2051 microcontroller and description on Serial Communication Facility presented by 89C2051
More informationVidyalankar T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution V SS (GND)
1. (a) Pin configuration of 8085 X 1 X 2 CLKOUT TRAP RST 7.5 RST 6.5 RST 5.5 INTR INTA SID SOD RESET IN RESET OUT T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution
More informationThe Final Word on 8051 Microcontroller
The Final Word on 8051 Microcontroller This is a book about the Intel 8051 microcontroller and its large family of descendants. It is intended to give you, the reader, some new techniques for optimizing
More informationELEG3923 Microprocessor Ch.10 Serial Port Programming
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.10 Serial Port Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Basics of Serial Communication Serial port programming
More informationWINTER 14 EXAMINATION
Subject Code: 17534 WINTER 14 EXAMINATION Model Answer Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2)
More informationThe University of Texas at Arlington Lecture 21_Review
The University of Texas at Arlington Lecture 21_Review CSE 5442/3442 Agenda Tuesday December 1st Hand back Homework 7,8 and 9. Go over questions and answers Exam 3 Review Note: There will be a take home
More informationDescription: Using the ITC232-A for Period Measurement.
RMV ELECTRONICS INC. Application Note: Description: Using the ITC232-A for Period Measurement. Application #: 00004 Date: September 1994 Status: Draft version The basic operating principle to measure period
More information8051 Microcontroller. Ali Ziya Alkar 1
8051 Microcontroller Ali Ziya Alkar 1 8051 Introduction 8051 is one of the most popular microcontrollers in use today. Many derivative microcontrollers have since been developed that are based on--and
More informatione-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text
e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text In this lecture the detailed architecture of 8051 controller, register bank,
More information8051 Timers and Serial Port
8051 Timers and Serial Port EE4380 Fall 2001 Class 10 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Timer: Mode 1 Operation (recap) 16 bit counter. Load the
More informationINTEGRATED CIRCUITS DATA SHEET. P89C738; P89C739 8-bit microcontrollers Dec 15. Product specification File under Integrated Circuits, IC20
INTEGRATED CIRCUITS DATA SHEET File under Integrated Circuits, IC20 1997 Dec 15 CONTENTS 1 FEATURES 2 GENERAL DESCRIPTION 3 ORDERING INFORMATION 4 BLOCK DIAGRAM 5 FUNCTIONAL DIAGRAM 6 PINNING INFORMATION
More informationTimer-1 can be run using the internal clock, fosc/12 (timer mode) or from any external source via pin T1 (P3.5) (Counter mode).
EC 6504 MICROPROCESSOR AND MICROCONTROLLER Electronics and Communication Engineering Fifth Semester UNIT-V Part A 1. List the modes of Timer in 8051. [N/D16] The timers available in 8051 are Timer 0 (T0)
More informationTHE 8051 MICROCONTROLLER Simple comparison: Pentium vs. 8051
THE 8051 MICROCONTROLLER Simple comparison: Pentium vs. 8051 FEATURE 8051 PENTIUM COMMENT Clock Speed 12Mhz. typical 1,000 MHz. (1GHz.) but 60MHz. ICs available 8051 internally divides clock by 12 so for
More informationSystems Programming. Lecture 11 Timers
Systems Programming www.atomicrhubarb.com/systems Lecture 11 Timers Section Topic Where in the books Zilog PS220 (ZNEO Z16F Series Product Specification) What is a Timer (a microcontroller timer) Timers
More informationMicrocontroller and Embedded Systems:
Microcontroller and Embedded Systems: Branches: 1. Electronics & Telecommunication Engineering 2. Electrical & Electronics Engineering Semester: 6 th Semester / 7 th Semester 1. Explain the differences
More informationVRS570 32K Flash, 1kB RAM, 25~40MHz, 8-Bit MCU VRS580 64K Flash, 1kB RAM, 25~40MHz, 8-Bit MCU
VRS570 32K Flash, 1kB RAM, 25~40MHz, 8-Bit MCU VRS580 64K Flash, 1kB RAM, 25~40MHz, 8-Bit MCU 1134 Ste Catherine Street West, Suite 900, Montreal, Quebec, Canada H3B 1H4 Tel: (514) 871-2447 http://www.goalsemi.com
More informationPractical Manual Embedded Systems (Course Code-USIT4P5) For. S.Y.B.Sc. I.T. (Semester IV)
Practical Manual 2017-2018 On Embedded Systems (Course Code-USIT4P5) For S.Y.B.Sc. I.T. (Semester IV) Prepared By Mrs.Archana Bhide R.J.College,Ghatkopar. 1 Index Sr No Title Introduction Introduction
More informationDATA SHEET. P83C524; P80C528; P83C528 8-bit microcontrollers INTEGRATED CIRCUITS Dec 15
INTEGRATED CIRCUITS DATA SHEET File under Integrated Circuits, IC20 1997 Dec 15 P83C524; P80C528; P83C528 CONTENTS 1 FEATURES 2 GENERAL DESCRIPTION 3 QUICK REFERENCE DATA 4 ORDERING INFORMATION 5 BLOCK
More informationMODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microcontroller and Applications Subject Code:
MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microcontroller and Applications Subject Code: I m p o r t a n t I n s t r u c t i o n s t o e x a m i n e r s : 1) The answers should be examined by key
More informationMODEL ANSWER SUMMER 17 EXAMINATION
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate
More informationVRS550-8kB Flash, 256B RAM, 25~40MHz, 8-Bit MCU VRS560-16kB Flash, 256B RAM, 40MHz, 8-Bit MCU
VRS550-8kB Flash, 256B RAM, 25~40MHz, 8-Bit MCU VRS560-6kB Flash, 256B RAM, 40MHz, 8-Bit MCU 34 Ste Catherine Street West, Suite 900, Montreal, Quebec, Canada H3B H4 Tel: (54) 87-2447 http://www.goalsemi.com
More informationSerial 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 informationQ 1 a) Attempt any THREE of the following: 12 TMOD.7 TMOD.6 TMOD.5 TMOD.4 TMOD.3 TMOD.2 TMOD.1 TMOD.0 GATE C/T M1 M0 GATE C/T M1 M0
Page 1 of 33 Q 1 a) Attempt any THREE of the following: 12 Q 1 a i) Describe Timer modes of 8051. Ans: Timer 0 and Timer 1 can both be used as either Counters or Timers. There are 4 different operating
More informationM16C/Tiny Series APPLICATION NOTE. Operation of Timer A. (2-Phase Pulse Signal Process in Event Counter Mode, Multiply-by-4 Mode) 1.
APPLICATION NOTE 1. Abstract In processing 2-phase pulse signals in event counter mode, choose functions from those listed in Table 1. Operations of the selected items are described below. Figure 1 shows
More informationMODEL ANSWER WINTER 17 EXAMINATION Subject Title: Microcontroller and applications
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate
More informationCourse Introduction. 2009, Renesas Technology America, Inc., All Rights Reserved
Course Introduction Purpose This course provides an introduction to the peripheral functions built into R8C Tiny series microcontrollers (MCUs). Objective Learn about the features and operation of the
More informationMicrocontroller and Applications
S.Y. Diploma : Sem. IV [DE/EJ/ET/EN/EX/EQ/IS/IC/IE] Microcontroller and Applications Time: 3 Hrs.] Prelim Question Paper Solution [Marks : 70 Q.1 Attempt any FIVE of the following : [10] Q.1(a) Define
More informationThese 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 informationUNIT 5. Microcontrollers. Syllabus
UNIT 5 Microcontrollers Syllabus Architecture of 8051 Signals Operational features Memory and I/O addressing Interrupts Instruction set Applications. OVERVIEW The past three decades have seen the introduction
More informationEmbedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester
Embedded Systems PIC16F84A Internal Architecture Eng. Anis Nazer First Semester 2017-2018 Review Computer system basic components? CPU? Memory? I/O? buses? Instruction? Program? Instruction set? CISC,
More informationTimer0..Timer3. Interrupt Description Input Conditions Enable Flag
Timer0..Timer3 Timers are pretty useful: likewise, Microchip provides four different timers for you to use. Like all interrupts, you have to Enable the interrupt, Set the conditions of the interrupt, and
More information2. (2 pts) If an external clock is used, which pin of the 8051 should it be connected to?
ECE3710 Exam 2. Name _ Spring 2013. 5 pages. 102 points, but scored out of 100. You may use any non-living resource to complete this exam. Any hint of cheating will result in a 0. Part 1 Short Answer 1.
More information8051 Training Kit Lab Book
8051 Training Kit Lab Book Date: 25 September 2009 Document Revision: 1.05 BiPOM Electronics 16301 Blue Ridge Road, Missouri City, Texas 77489 Telephone: (713) 283-9970 Fax: (281) 416-2806 E-mail: info@bipom.com
More informationThree criteria in Choosing a Microcontroller
The 8051 Microcontroller architecture Contents: Introduction Block Diagram and Pin Description of the 8051 Registers Some Simple Instructions Structure of Assembly language and Running an 8051 program
More informationUNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.
UNIT V -8051 MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS 1. What is micro controller? Micro controller is a microprocessor with limited number of RAM, ROM, I/O ports and timer on a single chip
More informationMAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI
MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI-621213. QUESTION BANK DEPARTMENT: EEE SUB CODE: EE2324 YR/ SEM:III/ VI SUB NAME: MICROPROCESSORS & MICROCONTROLLERS UNIT 4-8051 MICROCONTROLLER PART A (2
More informationHandshake Solutions. HT80C51 User Manual
HT8C5 User Manual HT8C5 User Manual Document Information Document Information Document Title Date of Creation 27/6/25 Date of last change 27/6/25 File name Status Version Number.7 Client / Target Audience
More information