Professional Documents
Culture Documents
Week 2 Session 1
Microcontroller Architecture
Byte 8 bit
Word 16 bit
ROM interface – address input, data output, /CE – chip enable, /OE – output
enable (for READ operation)
Memory Read Operation
• To read a ROM, we need to issue the proper
address
• There is a delay between address inputs and data
outputs
• The access time (tACC), chip enable time (tCE), and
chip deselect time (tDF) are important timing
properties
• You need these information for developing a real
computer system
Timing parameters
• The access time – delay occurs before data
stored at the addressed location are stable at
the outputs (ie how long it takes to access
data). The microprocessor must wait for tACC
before reading the data
ROM read operation
• Access time is regarded as address to
output delay. Typical value is 250ns
• tCE – represents the Chip Enable to output
delay, usually this is equal to access time
• Deselect time – amount of time the device
takes for data outputs to return to high-Z
state after /OE becomes inactive
Read operation
tAA= access time tCO= chip select to output delay
tHZ = deselect to output float
Choosing the proper memory
Configuration of ROM for 8-bit bus
Charges in the
floating gate
represent the data
Control gate blocked
out data = 0
http://www.siliconfareast.com/flash-memory.htm
FLASH EEPROM
From
decoding
logic
Write-cycle for SRAM
• To write, we must produce the signal in proper
order
• Minimum duration of a write cycle is tWC (write
cycle time )
• Address must remain stable during the whole
cycle
• Chip enable (CE) signal becomes active
• The Write Enable (WE) will be active after the
address setup time tAS elapses
RAM write operation
• Data should now ready and must be valid
for tDW (data valid to end of write)
• Data should remain valid (tDH) after the
write
• A short recovery period (tWR) takes place
after /WE returns to 1 before the write
cycle is complete (address is removed)
Write cycle
Timing parameters for a write cycle
Parameter Time (ns)
Tc (rd) read cycle time 120
TWC (wr) write cycle time 120
TWP write pulse width 60
Tsu (A) address set up time 20
Tsu (S) chip select setup time 60
Tsu (D) data setup time 50
Th address hold time 0
Th (D) data hold time 5
Read Cycle
• Read cycle for RAM is similar to the ROM
• Minimum duration of a read cycle is tRC (read cycle
time)
• Address must remain stable during the whole
cycle
• Chip enable becomes active
• The Enable(s) (CE) will be active after the address
is stable
• Data should now ready
• Data should remain valid after the OE and CE have
been removed
CO – time between
Read Cycle
Valid data and chip enable
OE – time between
Valid data and output enable
DRAM
• DRAM has a higher density
• Cost less
• Consume less power
• Take up less space
• We can get 64Mx1, 128Mx1 modules
DRAM structure
Needs to periodically restore
(recharge) the data in each storage
location by addressing them
because the data is stored in the
form of a charge on a capacitor as
shown in the circuit.
To store information in this cell,
transistor T is turned on and an
appropriate voltage is applied to
the bit line. This causes a known
amount of charge to be stored in
the capacitor.
DRAM
• After the transistor is turned off, the charge remains
stored in the capacitor, but not for long.
• The capacitor begins to discharge. During a Read
operation, the transistor in a selected cell is turned on.
• A sense amplifier connected to the bit line detects
whether the charge stored in the capacitor is above or
below the threshold value.
• If the charge is above the threshold, the sense amplifier
drives the bit line to the full voltage representing the logic
value 1. If the sense amplifier detects that the charge is
below the threshold then it pulls the bit line to ground
level to discharge the capacitor fully.
DRAM
• If storage nodes are not recharged at regular
intervals of time, data would be lost. This
process is called refreshing.
DRAM
Column
ROW
DRAM
• Data cells along the selected row can be
accessed by simply supplying successive
column addresses
• This is called page mode accesses
• (How many bits are there in a row?)
• Advantage - faster access of memory is
achieved
Addressing the DRAM-64Kx16 setup
Refreshing the DRAM
• The DRAM must be refreshed every 2ms
• Refreshing is achieved by cycling through
the row addresses (i.e. generating all the
row address)
• During refreshing, /CAS is at logic ‘1’ and no
data are output
Example 416800 DRAM
16Kx16K array
Each row has
2K bytes data
To select a row
needs 14 bits
To select a
column 11 bits
System memory configuration
Memory configuration for ADuC832
ADuC832 memory architecture