EEPROM BASED DATA MEMORY. Four SFRs are involved EEDATA register(bank2) EEADR register (bank2) EECON1 register (bank3) EECON2 register (bank3)

Slides:



Advertisements
Similar presentations
Buses Three sets of wires connect the CPU to memory and I/O devices:
Advertisements

Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
م/محمد علي عطية حسين. Pin Diagram DescriptionPin Name Oscillator crystal input/external clock source input. OSC1/CLKIN Oscillator crystal output.OSC2/CLKOUT.
Microprocessors.
Chapter 2 HARDWARE SUMMARY
8051 Core Specification.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
1 Computer System Overview OS-1 Course AA
1 © 2002, Cisco Systems, Inc. All rights reserved. Router boot procedure.
Two’s Complement Number wheel for 4 bit numbers
Minimum Systems and the PIC 16F84A Chapter Two Dr. Gheith Abandah1.
Intel
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
S4525A Peripherals & Enhanced FLASH 1 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 1 Peripherals.
80386DX.
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
The Functions of Operating Systems Interrupts. Learning Objectives Explain how interrupts are used to obtain processor time. Explain how processing of.
Interrupt.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This training course provides an overview of the CPU architecture.
R3000/001 Assembly Programming using MIPS R3000 CPU R3000 CPU Chip Manufactured by IDT What is MIPS R3000 Processor? A 32-bit RISC CPU developed by MIPS.
Timer Timer is a device, which counts the input at regular interval (δT) using clock pulses at its input. The counts increment on each pulse and store.
S4525A Peripherals & Enhanced FLASH 1 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 1 Peripherals.
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
8051 Micro controller. Architecture of 8051 Features of 8051.
Microprocessor. Interrupts The processor has 5 interrupts. CALL instruction (3 byte instruction). The processor calls the subroutine, address of which.
1 © Unitec New Zealand Interrupt Lecture 6 Date: - 20 Sept, 2011 Embedded Hardware ETEC 6416.
Computer Structure & Architecture 7b - CPU & Buses.
Conclusion Speech. Content Organization Pronunciation Handwriting.
Intel 8051 Another family of microcontroller is the Intel 8051 family. The basic 8051 microcontroller has four parallel input/output ports, port 0, 1,
12/16/  List the elements of 8255A Programmable Peripheral Interface (PPI)  Explain its various operating modes  Develop a simple program to.
Interrupts  An interrupt is any service request that causes the CPU to stop its current execution stream and to execute an instruction stream that services.
Lecture 1: Review of Computer Organization
MACHINE CYCLE AND T-STATE
EE/CS-352: Embedded Microcontroller Systems Part V The 8051 Assembly Language Interrupts.
Lecture 3 CSE 341 – Microprocessors Lecture 3 Md. Omar Faruqe UB 1228
1 68HC11 Timer. 2 68HC11 Timer Subsystem Several timing functions: Basic timing Basic timing Real time interrupts Real time interrupts Output compare.
Aum Amriteswaryai Namah:. SUB ROUTINES Instead of repeating same program segments at all locations, they are written and stored separately; Each such.
Chapter 11 System Performance Enhancement. Basic Operation of a Computer l Program is loaded into memory l Instruction is fetched from memory l Operands.
Special Features. Device Configuration bits Revision Device Configuration bits Revision On-chip Power-on Reset (POR) Revision On-chip Power-on Reset (POR)
Dr. Iyad Jafar Introducing the PIC 16 Series and the 16F84A.
Memory Organization 1.  3 types of memory are used in PIC18 microcontroller devices: Program Memory - Flash Memory Data RAM - Static RAM Data EEPROM.
Protection in Virtual Mode
Basic Computer Organization and Design
8051 Pin - out PORT 0 PORT 1 PORT 2 PORT 3.
Hoda Roodaki BIT ADDRESSABILITY Hoda Roodaki
UNIT – Microcontroller.
Computer Architecture
CPU Sequencing 6/30/2018.
Chap 7. Register Transfers and Datapaths
Interrupts In 8085 and 8086.
1. Introduction A microprocessor executes instructions given by the user Instructions should be in a language known to the microprocessor Microprocessor.
Hardware Source: ttp:// under
Interrupt Source: under
Computer System Overview
Dr. Michael Nasief Lecture 2
contains 8086 processor and several additional functional chips: clock generator 2 independent DMA channels PIC 3 programmable 16-bit timers.
The TMS320C6x Family of DSPs
4-Bit Counter Spencer Canavan.
Hardware Source: ttp:// under
8051 Micro Controller.
CSE 451: Operating Systems Autumn 2003 Lecture 2 Architectural Support for Operating Systems Hank Levy 596 Allen Center 1.
CSE 451: Operating Systems Autumn 2001 Lecture 2 Architectural Support for Operating Systems Brian Bershad 310 Sieg Hall 1.
Interrupt handling Explain how interrupts are used to obtain processor time and how processing of interrupted jobs may later be resumed, (typical.
CSE 451: Operating Systems Winter 2003 Lecture 2 Architectural Support for Operating Systems Hank Levy 412 Sieg Hall 1.
The Programmable Peripheral Interface (8255A)
CPU Sequencing 7/20/2019.
Clock Algorithm Example
Presentation transcript:

EEPROM BASED DATA MEMORY

Four SFRs are involved EEDATA register(bank2) EEADR register (bank2) EECON1 register (bank3) EECON2 register (bank3)

Read Operation LL oad the desired source address into EEADR register. Clear the EEPGD bit to point to EEPROM data memory. RR ead the data in the selected location. EE ECON1 being in Bank3, one has to switch to Bank3 to access EECON1<RD> TT ransfer EEDATA to the desired location. EEDATA is in Bank2,

Write Operation Disable all interrupts by clearing GIE. Bank 1 should be selected for GIE Enable write operation by setting EECON1<WREN> Carry out the following write sequence 0X55h  (EECON2) 0XAAh  (EECON2) The sequence is specified by the manufacturer Carry out write operation by setting EE CON1 <WR> Enable interrupts by setting GIE

A dedicated timer within the processor controls the Write Operation; further during the EEPROM memory write, processor clock is halted. The clock becomes active and the processor resumes operation only when Write operation is completed. This explains the need to keep all interrupts disabled during a write operation.

EEDATA READ Algorithm 1.Switch to bank 2 for loading the address in EEADR. 2.Load address from which data has to be read in EEADR 3.Select bank3 to configure EECON1  select data memory  enable read operation 4. Go to bank2 to get the data from EEDATA register and store it to a memory location.

EEDATA WRITE Algorithm 1.Check if the previous write operation is finished. 2.If yes, move the address to where the data is to be written in the EEADR register which is in bank2. 3.Then move the data that has to be written in EEDATA register which is also in bank2 4. Switch to bank3 for configuring EECON1.  select data memory  set WREN 5.Clear GIE for disabling any other interrupt while EECON2 is configuring. 6. Configure EECON2  move the value 55h to EECON2  move AAh to EECON2 7.Set WR bit 8.Enable interrupts 9.Clear WREN to disable program operations 10.At the completion of write cycle,the WR bit is cleared and EEIF interrupt flag bit is set.