Understanding addressing and size in memory map

Electrical Engineering Asked by KMC on July 28, 2020

TM4C123 has 256 kiBytes of flash ROM as shown in the memory map. The range of memory addresses for the ROM is 0x0000.0000 to 0x0003.FFFF (a 32bit address), totaled to 3x16x16x16x16 = 196,608 number of addresses. The memory is byte addressable so that block of memory addresses adds up to 196,608 bytes instead. Why does the manufacturer claim it has 256 kiB and not 196kB ROM memory size?

Even if the range of addresses can’t sum up to an exact 256k, wouldn’t 0x0000.0000 – 0.0004.FFFF (4x16x16x16x16 = 262k) give a size closer to 256k than 0x0003.FFFF’s 196k?

You have an off by one error in your calculations and also kilobyte is not 1000 bytes but 1024. The device really has 256 kilobytes of memory. 2^18 is 262144 bytes and 262144 / 1024 is exactly 256 kilobytes. A kilobyte is 2^10 = 1024 bytes.

Correct answer by Justme on July 28, 2020

Related Questions

Adding a base resistor in a common emitter amplifier

4  Asked on December 31, 2021

Voltage reversal circuit

0  Asked on December 31, 2021 by sam-s

Inserting transducer model into a circuit

2  Asked on December 29, 2021 by whl

Momentary switch for power?

2  Asked on December 29, 2021 by cutlerr

Multicard System Grounding

1  Asked on December 29, 2021

How to explain the peak frequency and resistance relationship in this op amp circuit?

1  Asked on December 29, 2021 by alpersunter

Issue with n channel mosfet switching with an isolated gate drive

1  Asked on December 29, 2021 by neuroeng

Semiconductor diffusion current over time

1  Asked on December 29, 2021

USB charging 2S Li-On

3  Asked on December 29, 2021 by tom-viks-piln

How does the Arduino NANO deal with simultaneous external interrupts?

3  Asked on December 29, 2021 by user208872

How to measure extremely high temperatures?

1  Asked on December 29, 2021

Does spice model saturation recovery of bipolar transistors?

1  Asked on December 29, 2021 by knick

Relation between feedback delay and oscillation of OpAmp

0  Asked on December 29, 2021 by emnha

4-Wire Strain Gauge Measurement

1  Asked on December 29, 2021 by miomio

New to debugging. How to go about finding a mistake in this exponential voltage converter

1  Asked on December 29, 2021

STM32 – How does analog configuration of MCU pins affect the power usage?

3  Asked on December 29, 2021 by caglayan-dokme

Why doesn’t this opamp circuit work?

2  Asked on December 29, 2021 by jom

is is possible to drop voltage without knowing a components amperage

1  Asked on December 29, 2021 by yolo-gamer

Ident of a 10 contact RJ45 style connector with 8 + 2 contacts

1  Asked on December 26, 2021 by user186848

PCB Design Specification Document

1  Asked on December 26, 2021 by dwayne-reid