Attachment # 00005603 - LabPart1_instructions.docx
LabPart1_instructions.docx (387.23 KB)
Raw Preview of Attachment:
(refer to the detailed question and attachment below)
ECET330 Lab 1 Part 1 ProceduresTitle: Introduction to Memory MapI. OBJECTIVESTo become familiar with address decodingTo become familiar with HCS12 memory mapII. PARTS LISTEquipment: IBM PC, or compatible with Windows 2000 or higherINTRODUCTIONFor the CPU to process information, the data must be stored in RAM or ROM. ROM is a type of memory that does not lose its contents when the power is turned off. Different types of ROM are PROM, EPROM, EEPROM, Flash EPROM, and mask ROM. The CPU is connected to RAM and ROM using the address bus, data bus, and control bus. RAM: Stands for random access memory; refers to memory that the microprocessor can read from and write to. Program variables and data as well as stack data storage are saved in RAM of the microcontroller.ROM: Stands for read-only memory. The microcontroller can read from ROM, but it can’t write to or modify it. EEPROM: One type of ROM is EEPROM, which is Electrically Erasable Programmable ROM. Variables that must remain when the power is turned off are stored in EEPROM. Flash memory: A special type of memory that works like both RAM and ROM. You can write information to flash memory, like you can with RAM, but that information isn’t erased when the power is off, like it is with RAM. All program code, constants such as messages and lookup tables, and any other information that does not change, are saved in flash memory of the microcontroller.The programs for an embedded system must be in read-only memory, and thus we must know something about the hardware upon which our software is installed. For example, we need to know the memory location where the code or data should reside. Figure 1 shows the block diagram of HCS12 microcontroller.Figure 1: Block Diagram of HCS12 MicrocontrollerThis block diagram shows that there are three types of memory in HCS12 called Flash, EPROM, and RAM. Note that the code in Flash and EEPROM will remain after the power is lost. The variables which will be stored in RAM would be lost after the power is lost.These memory units are connected to the CPU of the microcontroller using internal address, data, and control buses. The CPU uses its address lines to select a given location of one of these memory units. Some of these address lines will be directed to decoder circuits (not shown in the block diagram), which would select the given memory unit. Memory Map: A diagram showing which address region is used for which type of memory is called a memory map. Each microcontroller has a reference manual which would define the memory map of that particular microcontroller. PROCEDUREFigure 1 below shows a given CPU connected to two 8Kx8 SRAM units, one 16Kx8 SRAM unit, and a 32Kx8 SRAM unit. Address lines A13, A14, and A15 are used to select one of the memory units. Looking at the figure below, complete the Table 1 that represents the memory map of Figure 1.24472908890Address Range020000Address Range3064510-78613000Memory UnitA15A14A13Lower LimitUpper LimitSize in BytesRAM1000$0000$1fff8KRAM2RAM3RAM4Table 1: Memory Address Ranges for the Circuit Shown in Figure 133464501771652002338137515811500Figure 1: Memory Decoding ExampleAssume that the content of all locations of the memory units in Figure 1 is $ff. Assume that the CPU places $0000 on the address lines, $02 on the data lines, and activates the WR signal. How does the memory system of Figure 1 react to these values? Explain which memory unit in Figure 1 is selected, what happens if the value on the address lines is $4500, and what occurs when the RD signal is activated.Given Table 2, how much on-chip RAM memory do we have for the MC9S12G128 microcontroller?Memory UnitLower LimitUpper LimitRegisters$0000$03FFEEPROM$0400$13FFRAM$2000$3FFFFlash ROM$4000$FFFF

Homework / Lab

Question # 00066641 Posted By: saabsaab Updated on: 05/04/2015 09:44 PM Due on: 05/10/2015
Subject Computer Science Topic Microprocessor Systems Tutorials:
Question
Dot Image
Please complete the following attachments
Dot Image
Tutorials for this Question
  1. Tutorial # 00062899 Posted By: vikas Posted on: 05/06/2015 11:20 PM
    Puchased By: 3
    Tutorial Preview
    The solution of ECET330 lab part 1 and 2 and homework...
    Attachments
    ECET330_W1_iLabPart1_and_2.docx (53.13 KB)
    Micro_Homework_1_(1).docx (13.64 KB)
  2. Tutorial # 00063163 Posted By: Phelly Posted on: 05/08/2015 03:34 AM
    Puchased By: 2
    Tutorial Preview
    Find the organization and capacity of memory chips with the ...
    Attachments
    Micro_Homework_1.doc (26 KB)
Whatsapp Lisa