CPEG300 Embedded System Design. Lecture 3 Memory

Similar documents
8051 INTERFACING TO EXTERNAL MEMORY

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples.

Lecture Objectives. Introduction to Computing Chapter 0. Topics. Numbering Systems 04/09/2017

The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families

UNIT-III ASSEMBLY LANGUAGE PROGRAMMING. The CPU can access data in various ways, which are called addressing modes

Question Bank Microprocessor and Microcontroller

8051 Microcontroller

Microcontroller Intel [Instruction Set]

8051 Overview and Instruction Set

MODULE-1. Short Answer Questions

Chapter TEN. Memory and Memory Interfacing

Principle and Interface Techniques of Microcontroller

MICROCONTROLLER UNIT 1

Module Contents of the Module Hours COs

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

TUTORIAL. Donal Heffernan University of Limerick May Tutorial D.Heffernan 2000,

Chapter Addressing Modes

Embedded Controller Programming

ELEG3924 Microprocessor

Principle and Interface Techniques of Microcontroller

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors

CHAPTER ASSEMBLY LANGUAGE PROGRAMMING

8051 Instruction Set

Chapter 09. Programming in Assembly

ORG ; Week8. Memory and Memory Interfacing

8051 Microcontroller

CPEG300 Embedded System Design. Lecture 6 Interrupt System

Introduction To MCS-51

ENE 334 Microprocessors

ELEG3923 Microprocessor Ch.2 Assembly Language Programming

8051 Microcontrollers

CS 320. Computer Architecture Core Architecture


Module I. Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC.

8051 Microcontroller

Assembly Language programming (2)

Grundlagen Microcontroller Memory. Günther Gridling Bettina Weiss

Basic Organization Memory Cell Operation. CSCI 4717 Computer Architecture. ROM Uses. Random Access Memory. Semiconductor Memory Types

Figure Programming model

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman

8051 Microcontrollers

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52

8051 Microcontroller Assembly Programming

SOLUTION MANUAL FOR THE 8051 MICROCONTROLLER 4TH EDITION BY MACKENZIE AND PHAN

UNIT IV MICROCONTROLLER

Lecture 1. Course Overview and The 8051 Architecture

Module 5a: Introduction To Memory System (MAIN MEMORY)

MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Features of 8051:

EE6502- MICROPROCESSOR AND MICROCONTROLLER

Microcontroller Systems. ELET 3232 Topic 11: General Memory Interfacing

Chapter 9. Programming Framework

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microcontroller and Applications Subject Code:

ET355 Microprocessors Friday 6:00 pm 10:20 pm

ET2640 Microprocessors

MASSEY UNIVERSITY PALMERSTON NORTH CAMPUS

William Stallings Computer Organization and Architecture 8th Edition. Chapter 5 Internal Memory

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text

Programming Book Microcontroller Kit. Rev 3.0 January, Wichit Sirichote

Dodatak. Skup instrukcija

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

Memory & Simple I/O Interfacing

UNIT MICROCONTROLLER AND ITS PROGRAMMING


SN8F5000 Family Instruction Set

Summer 2003 Lecture 18 07/09/03

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

Moodle WILLINGDON COLLEGE SANGLI (B. SC.-II) Digital Electronics

Digital Blocks Semiconductor IP

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Chapter 5 Internal Memory

Semiconductor Memories: RAMs and ROMs

8051 Addressing Modes

EE 308: Microcontrollers

ENE 334 Microprocessors

8051 microcontrollers

8051 Microcontroller. Ali Ziya Alkar 1

Lecture-7 Characteristics of Memory: In the broad sense, a microcomputer memory system can be logically divided into three groups: 1) Processor

TUTORIAL Assembly Language programming (2)

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING

Digital Blocks Semiconductor IP

Embedded Systems Design: A Unified Hardware/Software Introduction. Outline. Chapter 5 Memory. Introduction. Memory: basic concepts

Embedded Systems Design: A Unified Hardware/Software Introduction. Chapter 5 Memory. Outline. Introduction

Assembly Language programming (1)

Computer Organization. 8th Edition. Chapter 5 Internal Memory

Microcontroller. Instruction set of 8051

C51 Family. Architectural Overview of the C51 Family. Summary

M. Sc (CS) (II Semester) Examination, Subject: Computer System Architecture Paper Code: M.Sc-CS-203. Time: Three Hours] [Maximum Marks: 60

Memory Expansion. Lecture Embedded Systems

CPEG300 Embedded System Design. Lecture 8 Timer

UNIT MICROCONTROLLER

MICROPROCESSOR & MICROCONTROLLER

SECURE MICROCONTROLLER USER S GUIDE... 1


80C51 family programmer s guide and instruction set. 80C51 Family. PROGRAMMER S GUIDE AND INSTRUCTION SET Memory Organization. Philips Semiconductors

COMP3221: Microprocessors and. and Embedded Systems. Overview. Lecture 23: Memory Systems (I)

Introduction to uc & Embedded Systems

SUMMER 13 EXAMINATION

UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING

Memory Overview. Overview - Memory Types 2/17/16. Curtis Nelson Walla Walla University

Contents. Join the Technical Community Today!

Transcription:

CPEG300 Embedded System Design Lecture 3 Memory Hamad Bin Khalifa University, Spring 2018

Review Von Neumann vs. Harvard architecture? System on Board, system on chip? Generic Hardware Architecture of a Microcontroller? 8051 history, block diagram and on-chip resources 8-bit CPU 4K Internal RoM, 128B RAM, 64K memory extension (ROM, RAM) 16-bit counter x2, Interrupts x5 8-bit I/O ports x4, UART x1 8051 supply, reset and system clock? Clock period, machine cycle (state, beat), instruction cycle? Instruction fetch stage and the instruction execution stage? 2

Memory Capacity The number of bits that a semiconductor memory chip can store is called chip capacity. It can be in units of Kbits (kilobits), Mbits (megabits), and so on. This must be distinguished from the storage capacity of computer systems While the memory capacity of a memory IC chip is always given bits, the memory capacity of a computer system is given in bytes o 16M memory chip 16 megabits o A computer comes with 16M memory 16 megabytes Memory chips are organized into a number of locations within the IC Each location can hold 1 bit, 4 bits, 8 bits, or even 16 bits, depending on how it is designed internally o The number of locations within a memory IC depends on the address pins (e.g. 2 X locations, X is the number of address pins) o The number of bits that each location can hold is always equal to the number of data pins (e.g. Y) o The entire chip will contain 2 X * Y bits 3

Example 1. A given memory chip has 12 address pins and 4 data pins. Find: (a) The organization, and (b) the capacity. Solution: (a) This memory chip has 4096 locations (2 12 = 4096), and each location can hold 4 bits of data. This gives an organization of 4096 4, often represented as 4K 4. (b) The capacity is equal to 16K bits since there is a total of 4K locations and each location can hold 4 bits of data. 2. A 512K memory chip has 8 pins for data. Find: (a) The organization, and (b) the number of address pins for this memory chip. Solution: (a) A memory chip with 8 data pins means that each location within the chip can hold 8 bits of data. To find the number of locations within this memory chip, divide the capacity by the number of data pins. 512K/8 = 64K; therefore, the organization for this memory chip is 64K 8 (b) The chip has 16 address lines since 2 16 = 64K 4

80C51 Block Diagram Overall system view - 8-bit CPU - 4K Internal RoM - 128B RAM (Maximum 256B) - 64K maximum memory extension (ROM, RAM) 5

8051 MCU Memory Structure 4-types of memory in 8051 MCU Program memory Internal (RoM, typically 0 ~ 4K) o ROM PROM EPROM E2PROM Flash, etc. External (RoM) o ROM PROM EPROM E2PROM Flash, etc. ROM is a type of memory that does not lose its contents when the power is turned off, also called nonvolatile memory! Data Memory Internal (RAM, typically 256B) o SRAM NVRAM DRAM, etc. External (RAM) o SRAM NVRAM DRAM, etc. RAM memory is called volatile memory since cutting off the power to the IC will result in the loss of data. RAM is also referred to as RAWM (read and write memory). 6

Memory Structure 8051 chip RAM ROM FFFFh 0000h External DATA Memory (up to 64KB) RAM SFR I-RAM Program FFFFh 0000h External CODE Memory (up to 64KB) ROM 7

Program Memory Space (ROM) Since the PC (program counter) of the 8031/51 is 16-bit, it is capable of accessing up to 2 16 = 64K bytes of program code In case of 4KB of Internal ROM, the address space is 0000H to 0FFFH For maximum 64K external ROM, the address space is 0000H to FFFFH External ROM access is controlled by EA\ pin If there s no internal ROM, EA\ should be tied LOW EA\ is V DD EA\ is GND EA External ROM 64K FFFFh EA External ROM 64K FFFFh 1000h 0000h 0FFFh 0FFFh Internal ROM 4K Internal ROM 4K 0000h 0000h 8

Data Memory Space (RAM) The 8051 s on-chip memory consists of 256 memory bytes organized as follows: Lower128 bytes: o 00h to 1Fh Register Banks o 20h to 2Fh Bit Addressable RAM o 30 to 7Fh General Purpose RAM, byte addressable Higher128 bytes: o 80h to FFh Special Function Registers FFh 80h 7Fh 00h Data Memory Special function registers (SFRs) Internal RAM 7Fh 30h 2Fh 20h 1Fh 18h 17h 10h 0Fh 08h 07h 00h 80 general purpose registers 16 bit-addressable registers Regs 0.. 7 (Bank 3) Regs 0.. 7 (Bank 2) Regs 0.. 7 (Bank 1) Regs 0.. 7 (Bank 0) Register Bank0 07h R7 06h R6 05h R5 04h R4 03h R3 02h R2 01h R1 00h R0 9

Bit-addressable Registers Bit Addressable RAM: 20h to 2Fh: 128 bits in total numbered 00h to 7Fh. Any one variable can have a value 0 or 1. A bit variable can be set with a command such as SETB and cleared with a command such as CLR. o SETB 25h ;sets the bit 25h (becomes 1) 7Fh 30h 2Fh 20h 1Fh 18h 17h 10h 0Fh 08h 07h 00h o CLR 25h ;clears bit 25h (becomes 0) 80 general purpose registers 16 bit-addressable registers Regs 0.. 7 (Bank 3) Regs 0.. 7 (Bank 2) Regs 0.. 7 (Bank 1) Regs 0.. 7 (Bank 0) 7F 7E 7D 7C 7B 7A 79 78 77 76 75 74 73 72 71 70 6F 6E 6D 6C 6B 6A 69 68 67 66 65 64 63 62 61 60 5F 5E 5D 5C 5B 5A 59 58 57 56 55 54 53 52 51 50 4F 4E 4D 4C 4B 4A 49 48 47 46 45 44 43 42 41 40 3F 3E 3D 3C 3B 3A 39 38 37 36 35 34 33 32 31 30 2F 2E 2D 2C 2B 2A 29 28 27 26 25 24 23 22 21 20 1F 1E 1D 1C 1B 1A 19 18 17 16 15 14 13 12 11 10 0F 0E 0D 0C 0B 0A 09 08 07 06 05 04 03 02 01 00 10

Stack Stack is a section of RAM to store information (data or address) temporarily (for interrupt, field, temp. data protection) Last in, first out (LIFO). There is a register inside the CPU to point to it, called SP (stack pointer) register. SP is 8 bits wide (can take values of 00 to FFH), points to the top of the stack. SP = 07h after power-up or reset à RAM location 08h is the first location used for the stack. o MOV SP, #2Fh ;initialize the stack PUSH: storing of a data in the stack POP: pulling the contents off the stack back into a CPU register. In other words, a register is pushed onto the stack to save it and popped off the stack to retrieve it. The job of the SP is very critical when push and pop actions are performed. 11

Stack Operation Operation example: PUSH 05h; //firstly SP=SP+1, then store 05h in the address pointed by SP; POP A; //firstly retrieve the data pointed by SP and assign it to A, then SP=SP-1; LIFO Stack operation 12

SFR Registers SFRs provide control and data exchange with the microcontroller s resources and peripherals; The SFR registers are located within the Internal Memory in the address range 80h to FFh. Not all locations within this range are defined. Each SFR has a very specific function. Each SFR has an address and a name which reflects the purpose of the SFR. Although 128 byes of the SFR address space is defined only 21 SFR registers are defined in the standard 8051. Undefined SFR addresses should not be accessed as this might lead to some unpredictable results. Note some of the SFR registers are bit addressable. SFRs are accessed just like normal Internal RAM locations. Registers which have their byte addresses ending with 0H or 8H are byte- as well as bit- addressable. 13

SFR Register Table Special Function Register Symbol Name Byte Address TH1 Timer 1 High 8b 8Dh TH0 Timer 1 Low 8b 8Ch TL1 Timer 0 High 8b 8Bh TL0 Timer 0 Low 8b 8Ah TMOD Timer Mode Control 89h *TCON Timer/Counter Control 88h PCON Power Control 87h DPH Data Pointer High 8b 83h DPL Data Pointer Low 8b 82h SP Stack Pointer 81h *P0 Port 0 80h Special Function Register Symbol Name Byte Address *B B Register F0h *A or ACC Accumulator E0h *PSW Program Status Word D0h *IP Interrupt Priority B8h *Port 3 (P3) Port 3 B0h *IE Interrupt Enable A8h *Port 2 (P2) Port 2 A0h SBUF Serial Port Data Buffer 99h *SCON Serial Port Control 98h *Port 1 (P1) Port 1 90h * indicates the SFR registers which are bit addressable 14

Memory Address Modes How to locate the memory? There are a number of addressing modes available to the 8051 instruction set, as follows: Immediate Addressing Register Addressing Direct Addressing Register Indirect Addressing Relative Addressing Absolute Addressing Long Addressing Indexed Addressing Bit Addressing 15

Immediate Addressing Immediate addressing: the operand (which immediately follows the instruction code) is the data value to be used. For example: MOV A, #99d ;moves 99 (decimal) to A (accumulator) A E0h 99d The # symbol tells the assembler that immediate addressing mode is used. MOV A,#25H ;load 25H into A MOV R4,#62 ;load 62 into R4 MOV B,#40H ;load 40H into B MOV DPTR,#4521H ;DPTR=4512H MOV DPL,#21H ;This is the same MOV DPH,#45H ;as above MOV DPTR,#68975 ;illegal!! Value > 65535 (FFFFH) 16

Register Addressing Register addressing: one of the eight general-registers, R0 to R7, A, B, CY, DPTR in SFR can be specified as the instruction operand. For example: ADD A, R5 ;adds register R5 to A (accumulator) A R5 E0h 0 0 1 0 1 0 0 0 1 0 0 0 0 0 1 1 05h The source and destination registers must match in size: MOV DPTR,A will give an error; The movement of data between Rn registers is not allowed: MOV R4,R7 is invalid; MOV A,R0 ;copy contents of R0 into A MOV R2,A ;copy contents of A into R2 ADD A,R5 ;add contents of R5 to A ADD A,R7 ;add contents of R7 to A MOV R6,A ;save accumulator in R6 17

Direct Addressing Direct addressing: the data value is obtained directly from the memory location specified in the operand. For example: MOV A, 47h ;read the data from Internal RAM address 47h and stores it in A E0h A Internal RAM 48h 47h 46h Direct addressing can be used to access Internal RAM, including the SFR registers, where SFR can be addressed by the names or addresses; Only direct addressing mode is allowed for pushing or popping the stack: PUSH A is invalid; Pushing the accumulator onto the stack must be coded as PUSH 0E0H MOV R0,40H ;save content of 40H in R0 MOV 56H,A ;save content of A in 56H MOV 0E0H,#55H ;is the same as MOV A,#55h ;load 55H into A 18

Register Indirect Addressing Register Indirect Addressing: For example: MOV A, @R0 A Internal RAM 52h R0 E0h 54h 54h 00h 53h The @ symbol indicates indirect addressing mode is used. R0 contains a value, for example 54h, which is to be used as the address of the internal RAM location, which contains the operand data. Indirect addressing refers to Internal RAM only and cannot be used to refer to SFR registers. Note, only R0 or R1 can be used as register data pointers for indirect addressing. The 8052 (as opposed to the 8051) has an additional 128 bytes of internal RAM. These 128 bytes of RAM can be accessed only using indirect addressing. 19

Relative Addressing Relative addressing: used mostly with certain jump instructions. The relative addressing, often referred to as an offset, is an 8-bit signed number, which is added to the PC to make the address of the next instruction. The offset value gives an address range of + 127 to 128 locations. For example: SJMP LABEL_X 2006h 2005h 2004h 2003h 2002h 2001h 2000h 1FFFh Code memory 04 80 SJMP LABEL_X PC is set to next instruction address: 2002h when SJMP begins execution. The target address is then the sum of the PC + relative offset needed to reach LABEL_X. Offset is 4 in this case. 2002h + 4h = 2006h. An advantage of relative addressing is that the program code is easy to relocate in memory in that the address is relative to the position in memory. 20

Absolute, Long and Indexed Addressing Absolute addressing: used only by the AJMP (Absolute Jump) and ACALL (Absolute Call) instructions, Long Addressing: used with the instructions LJMP and LCALL. The address specifies a full 16 bit destination address so that a jump or a call can be made to a location within a 64KByte code memory space (216 = 64K). For example: LJMP 5000h ;full 16 bit address is specified in operand Indexed addressing: the program counter, PC, or the data pointer DTPR, is used as a base address and the accumulator is used as an offset address. The effective address is formed by adding the value from the base address to the value from the offset address. Indexed address in the 8051 is used with the JMP or MOVC instructions. Look up tables are easy to implemented with the help of index address. For example: MOVC A, @A+DPTR o MOVC is a move instruction, which moves data from the external code memory space. o The address operand in this example is formed by adding the content of the DPTR register to the accumulator value. DPTR is the base address and the accumulator is the index address. 21

Bit Addressing Bit addressing: access the bit data directly, instead of a byte data, Bit addressable locations: Bit addressable registers in RAM from 20h to 2Fh (128b in total), bit address from 00h to 7Fh o For example: Use bit address directly: MOV C, 30h ;move the data in 30h to C (carrier bit) Byte address + bit location: MOV C, 26h.0 ;move the LSB of the data in 26h to C (carrier bit) Bit addressable registers in SFR o For example: Use bit address directly: MOV C, 97h ;move the data in 97h (MSB of P1) to C Byte address + bit location: MOV C, 90h.7 ;move the MSB of the data in 90h to C Bit name: MOV C, AC ;move the data AC to C 22

Bit Addressing To avoid confusion regarding the addresses 00 7FH The 128 bytes of RAM have the byte addresses of 00 7FH can be accessed in byte size using various addressing modes o Direct and register-indirect The 16 bytes of RAM locations 20 2FH have bit address of 00 7FH o We can use only the single-bit instructions and these instructions use only direct addressing mode The BIT directive is a widely used directive to assign the bitaddressable I/O and RAM locations Allow a program to assign the I/O or RAM bit at the beginning of the program, making it easier to modify them 23

Addressing Summary Addressing method Immediate Addressing Register Addressing Direct Addressing Register Indirect Addressing Relative Addressing Absolute Addressing Indexed Addressing Bit Addressing Application Constant data assignment for RAM, ROM Locate data in R0 ~ R7, A, B, CY, DPTR Locate data in internal RAM 00H ~ 7Fh, SFR Locate data in internal RAM 00H ~ FFh, external RAM For jump instruction For AJMP and ACALL instruction Use PC or DPTR to address program memory Locate data in internal RAM 20h ~ 2Fh (128b), SFR (93b) 24

Practice Read the code: MOV R0, #30h MOV A, @R0 ADD A, R0 MOV @R0, A ;immediate ;indirect ;register ;indirect 25

Appendix PROM (Programmable ROM) PROM refers to the kind of ROM that the user can burn information into PROM is a user-programmable memory For every bit of the PROM, there exists a fuse If the information burned into PROM is wrong, that PROM must be discarded since its internal fuses are blown permanently PROM is also referred to as OTP (one-time programmable) Programming ROM, also called burning ROM, requires special equipment called a ROM burner or ROM programmer 26

Appendix EPROM (Erasable Programmable ROM) EPROM was invented to allow making changes in the contents of PROM after it is burned In EPROM, one can program the memory chip and erase it thousands of times A widely used EPROM is called UVEPROM UV stands for ultra-violet, The only problem with UV-EPROM is that erasing its contents can take up to 20 minutes All UV-EPROM chips have a window that is used to shine ultraviolet (UV) radiation to erase its contents. There is an EPROM programmer (burner), and there is also separate EPROM erasure equipment. The major disadvantage of UV-EPROM, is that it cannot be programmed while in the system board. To program a UV-EPROM chip, the following steps must be taken: Its contents must be erased o To erase a chip, it is removed from its socket on the system board and placed in EPROM erasure equipment to expose it to UV radiation for 15-20 minutes Program the chip o To program a UV-EPROM chip, place it in the ROM burner o To burn code or data into EPROM, the ROM burner uses 12.5 volts, V pp in the UV-EPROM data sheet or higher, depending on the EPROM type o Place the chip back into its system board socket 27

Appendix EEPROM (Electrically Erasable Programmable ROM) EEPROM has several advantage over EPROM Its method of erasure is electrical and therefore instant, as opposed to the 20-minute erasure time required for UVEPROM One can select which byte to be erased, in contrast to UV- EPROM, in which the entire contents of ROM are erased One can program and erase its contents while it is still in the system board o EEPROM does not require an external erasure and programming device o The designer incorporate into the system board the circuitry to program the EEPROM 28

Appendix Flash Memory EPROM Flash EPROM has become a popular user-programmable memory chip since the early 1990s The process of erasure of the entire contents takes less than a second, or might say in a flash o The erasure method is electrical o It is commonly called flash memory The major difference between EEPROM and flash memory is o Flash memory s contents are erased, then the entire device is erased There are some flash memories are recently made so that the erasure can be done block by block o One can erase a desired section or byte on EEPROM It is believed that flash memory will replace part of the hard disk as a mass storage medium The flash memory can be programmed while it is in its socket on the system board o Widely used as a way to upgrade PC BIOS ROM Flash memory is semiconductor memory with access time in the range of 100 ns compared with disk access time in the range of tens of milliseconds Flash memory s program/erase cycles must become infinite, like hard disks o Program/erase cycle refers to the number of times that a chip can be erased and programmed before it becomes unusable o The program/erase cycle is 100,000 for flash and EEPROM, 1000 for UV- EPROM 29

Appendix Mask ROM Mask ROM refers to a kind of ROM in which the contents are programmed by the IC manufacturer, not user programmable The terminology mask is used in IC fabrication Since the process is costly, mask ROM is used when the needed volume is high and it is absolutely certain that the contents will not change The main advantage of mask ROM is its cost, since it is significantly cheaper than other kinds of ROM, but if an error in the data/code is found, the entire batch must be thrown away 30

Appendix SRAM (Static RAM) Storage cells in static RAM memory are made of flip-flops and therefore do not require refreshing in order to keep their data The problem with the use of flip-flops for storage cells is that each cell require at least 6 transistors to build, and the cell holds only 1 bit of data In recent years, the cells have been made of 4 transistors, which still is too many The use of 4-transistor cells plus the use of CMOS technology has given birth to a high capacity SRAM, but its capacity is far below DRAM 31

Appendix NV-RAM (Nonvolatile RAM) NV-RAM combines the best of RAM and ROM The read and write ability of RAM, plus the nonvolatility of ROM NV-RAM chip internally is made of the following components It uses extremely power-efficient SRAM cells built out of CMOS It uses an internal lithium battery as a backup energy source It uses an intelligent control circuitry o The main job of this control circuitry is to monitor the V cc pin constantly to detect loss of the external power supply 32

Appendix DRAM (Dynamic RAM) Dynamic RAM uses a capacitor to store each bit It cuts down the number of transistors needed to build the cell It requires constant refreshing due to leakage The advantages and disadvantages of DRAM memory The major advantages are high density (capacity), cheaper cost per bit, and lower power consumption per bit The disadvantages is that o it must be refreshed periodically, due to the fact that the capacitor cell loses its charge; o While it is being refreshed, the data cannot be accessed In DRAM there is a problem of packing a large number of cells into a single chip with the normal number of pins assigned to addresses Using conventional method of data access, large number of pins defeats the purpose of high density and small packaging o For example, a 64K-bit chip (64K 1) must have 16 address lines and 1 data line, requiring 16 pins to send in the address The method used is to split the address in half and send in each half of the address through the same pins, thereby requiringcfewer address pins 33