Digital logic devices

Nisarg Amin
Name:- Nisarg Amin
Topic:- Digital Logic Devices
1
DECODER
2
•A decoder is a logic circuit that accepts a set of inputs that
represents a binary number and activates only the output
that corresponds to the input number.
•In other words, a decoder circuit looks at its inputs,
determines which binary number is present there, and
activates the one output that corresponds to that number ;
all other outputs remain inactive.
•In its general form, a decoder has N input lines to handle N
bits and form one to 2 N output lines to indicate the presence
of one or more N-bit combinations.
General decoder diagram
3
There are 2N possible input combinations, from A0 to AN1.
For each of these input combinations only one of the M outputs will be active HIGH (1),
all the other outputs are LOW (0).
4
• If an active-LOW output (74138, one of the output will
low and the rest will be high) is required for each decoded
number, the entire decoder can be implemented with
1. NAND gates
2. Inverters
• If an active-HIGH output (74139, one of the output will
high and the rest will be low) is required for each decoded
number, the entire decoder can be implemented with
• AND gates
• Inverters
3-8 line decoder (active-HIGH)
5
6
•This decoder can be referred to in several ways. It can
be called a 3-line-to- 8-line decoder, because it has three
input lines and eight output lines.
•It could also be called a binary-octal decoder or
converters because it takes a three bit binary input code
and activates the one of the eight outputs corresponding
to that code. It is also referred to as a 1-of-8 decoder,
because only 1 of the 8 outputs is activated at one time.
7
Logic diagram of 74138 (Example of a 3Bit
Decoder)
Truth table of 74138 (Example of a 3 8 Bit Decoder)
active-LOW
8
Classification Of Memory
1. RAM
a) SRAM
b) DRAM
2. ROM
a) PROM
b) EPROM
c) EEPROM
d) NVRAM
e) Flash Memory
1. RAM
• The RAM family includes two important memory
devices: Static RAM (SRAM) and Dynamic RAM
(DRAM). The primary difference between them is the
lifetime of the data they store.
• SRAM retains its contents as long as electrical power is
applied to the chip. If the power is turned off or lost
temporarily, its contents will be lost forever.
• DRAM, on the other hand, has an extremely short data
lifetime-typically about four milliseconds. This is true
even when power is applied constantly. DRAM
controller is used to refresh the data before it expires,
the contents of memory can be kept alive for as long as
they are needed. So DRAM is as useful as SRAM after
all.
2. ROM
• Memories in the ROM family are distinguished by the
methods used to write new data to them (usually called
programming), and the number of times they can be
rewritten.
• This classification reflects the evolution of ROM devices
from hardwired to programmable to erasable-and-
programmable.
• A common feature is their ability to retain data and
programs forever, even during a power failure.
• The contents of the ROM had to be specified before chip
production, so the actual data could be used to arrange the
transistors inside the chip.
• One step up from the masked ROM is the PROM
(programmable ROM), which is purchased in an
unprogrammed state. If you were to look at the contents of
an unprogrammed PROM, the data is made up entirely of
1's.
• The process of writing your data to the PROM involves a
special piece of equipment called a device programmer.
The device programmer writes data to the device one word
at a time by applying an electrical charge to the input pins
of the chip.
• Once a PROM has been programmed in this way, its
contents can never be changed. If the code or data stored
in the PROM must be changed, the current device must be
discarded. As a result, PROMs are also known as one-time
programmable (OTP) devices.
a) PROM
• An EPROM (erasable-and-programmable ROM) is
programmed in exactly the same manner as a PROM.
However, EPROMs can be erased and reprogrammed
repeatedly.
• To erase an EPROM, you simply expose the device to a
strong source of ultraviolet light. (A window in the top
of the device allows the light to reach the silicon.) By
doing this, you essentially reset the entire chip to its
initial-unprogrammed-state.
• Though more expensive than PROMs, their ability to be
reprogrammed makes EPROMs an essential part of the
software development and testing process.
b) EPROM
c) EEPROMS
•EEPROMS are electrically-erasable-and-programmable.
Internally, they are similar to EPROMs, but the erase
operation is accomplished electrically, rather than by
exposure to ultraviolet light.
•Any byte within an EEPROM may be erased and rewritten.
Once written, the new data will remain in the device
forever-or at least until it is electrically erased.
•The primary tradeoff for this improved functionality is
higher cost, though write cycles are also significantly longer
than writes to a RAM. So you wouldn't want to use an
EEPROM for your main system memory.
d) Flash memory
• Flash memory combines the best features of the memory
devices described thus far. Flash memory devices are high
density, low cost, nonvolatile, fast (to read, but not to write),
and electrically reprogrammable.
• These advantages are overwhelming and, as a direct result,
the use of flash memory has increased dramatically in
embedded systems. From a software viewpoint, flash and
EEPROM technologies are very similar.
• The major difference is that flash devices can only be erased
one sector at a time, not byte-by-byte. Typical sector sizes
are in the range 256 bytes to 16KB. Despite this
disadvantage, flash is much more popular than EEPROM and
is rapidly displacing many of the ROM devices as well.
e) NVRAM
• The third member of the hybrid memory class is NVRAM
(non-volatile RAM). Nonvolatility is also a characteristic of the
ROM and hybrid memories discussed previously.
• However, an NVRAM is physically very different from those
devices. An NVRAM is usually just an SRAM with a battery
backup. When the power is turned on, the NVRAM operates
just like any other SRAM.
• When the power is turned off, the NVRAM draws just enough
power from the battery to retain its data. NVRAM is fairly
common in embedded systems.
• However, it is expensive-even more expensive than SRAM,
because of the battery-so its applications are typically limited
to the storage of a few hundred bytes of system-critical
information that can't be stored in any better way.
Internal Structure Of ROM
Digital logic devices
1 von 18

Recomendados

Read Only Memory von
Read Only Memory Read Only Memory
Read Only Memory rohitladdu
2.5K views25 Folien
Rom.ppt von
Rom.pptRom.ppt
Rom.pptAnkur Srivastava
107 views10 Folien
EEPROM Part-21 von
EEPROM Part-21EEPROM Part-21
EEPROM Part-21Techvilla
1.1K views7 Folien
Reliability and yield von
Reliability and yield Reliability and yield
Reliability and yield rohitladdu
3.2K views13 Folien
what is ROM? Rom(read only memory) von
what is ROM? Rom(read only memory)what is ROM? Rom(read only memory)
what is ROM? Rom(read only memory)shire ali
3.2K views27 Folien
Semiconductor memories von
Semiconductor memoriesSemiconductor memories
Semiconductor memoriesSambitShreeman
10.9K views25 Folien

Más contenido relacionado

Was ist angesagt?

SRAM von
SRAMSRAM
SRAMrohitladdu
11.2K views13 Folien
Computer Organisation (DFT1113) von
Computer Organisation (DFT1113)Computer Organisation (DFT1113)
Computer Organisation (DFT1113)PSMZA
1.7K views17 Folien
Memory organization von
Memory organizationMemory organization
Memory organizationDhaval Bagal
1K views65 Folien
Csc1401 lecture06 - internal memory von
Csc1401   lecture06 - internal memoryCsc1401   lecture06 - internal memory
Csc1401 lecture06 - internal memoryIIUM
2.8K views34 Folien
Cpu organisation von
Cpu organisationCpu organisation
Cpu organisationEr Sangita Vishwakarma
20.1K views17 Folien
Rom (read only memory) von
Rom (read only memory)Rom (read only memory)
Rom (read only memory)Hemin Patel
779 views27 Folien

Was ist angesagt?(20)

Computer Organisation (DFT1113) von PSMZA
Computer Organisation (DFT1113)Computer Organisation (DFT1113)
Computer Organisation (DFT1113)
PSMZA1.7K views
Csc1401 lecture06 - internal memory von IIUM
Csc1401   lecture06 - internal memoryCsc1401   lecture06 - internal memory
Csc1401 lecture06 - internal memory
IIUM2.8K views
Rom (read only memory) von Hemin Patel
Rom (read only memory)Rom (read only memory)
Rom (read only memory)
Hemin Patel779 views
Semiconductor memories and auxiliary memories von Asif Iqbal
Semiconductor memories and auxiliary memoriesSemiconductor memories and auxiliary memories
Semiconductor memories and auxiliary memories
Asif Iqbal604 views
Memory organisation von ankush_kumar
Memory organisationMemory organisation
Memory organisation
ankush_kumar32.9K views
SRAM- Ultra low voltage operation von Team-VLSI-ITMU
SRAM- Ultra low voltage operationSRAM- Ultra low voltage operation
SRAM- Ultra low voltage operation
Team-VLSI-ITMU2K views
Memory von Kumar
MemoryMemory
Memory
Kumar 662 views
MICROPROCESSOR,BASICS AND MEMORY CONCEPT von Lakshya Sharma
MICROPROCESSOR,BASICS AND MEMORY CONCEPTMICROPROCESSOR,BASICS AND MEMORY CONCEPT
MICROPROCESSOR,BASICS AND MEMORY CONCEPT
Lakshya Sharma4.4K views

Destacado

Servomechanism in Control systems engineering von
Servomechanism in Control systems engineeringServomechanism in Control systems engineering
Servomechanism in Control systems engineeringNisarg Amin
10.6K views12 Folien
Firewall and its types and function von
Firewall and its types and functionFirewall and its types and function
Firewall and its types and functionNisarg Amin
22.6K views23 Folien
11 von
1111
11Matheus Soares
82 views1 Folie
Responsabilidad von
ResponsabilidadResponsabilidad
Responsabilidadequipandovenid
110 views3 Folien
Listado Alumnos 1251204-B - I 2014 von
Listado Alumnos 1251204-B - I 2014Listado Alumnos 1251204-B - I 2014
Listado Alumnos 1251204-B - I 2014SALONVIRTUAL
412 views2 Folien
Code metrics von
Code metricsCode metrics
Code metricsMohammad Reda Katby
1.3K views18 Folien

Destacado(20)

Servomechanism in Control systems engineering von Nisarg Amin
Servomechanism in Control systems engineeringServomechanism in Control systems engineering
Servomechanism in Control systems engineering
Nisarg Amin10.6K views
Firewall and its types and function von Nisarg Amin
Firewall and its types and functionFirewall and its types and function
Firewall and its types and function
Nisarg Amin22.6K views
Listado Alumnos 1251204-B - I 2014 von SALONVIRTUAL
Listado Alumnos 1251204-B - I 2014Listado Alumnos 1251204-B - I 2014
Listado Alumnos 1251204-B - I 2014
SALONVIRTUAL412 views
Apresentação do jornal sustentabilidade 2 von Monica Silva
Apresentação do jornal sustentabilidade 2Apresentação do jornal sustentabilidade 2
Apresentação do jornal sustentabilidade 2
Monica Silva244 views
Dynamic characteristics of thyristor von Nisarg Amin
Dynamic characteristics of thyristorDynamic characteristics of thyristor
Dynamic characteristics of thyristor
Nisarg Amin5.4K views
Franco rosso international samaritani von ITCT_Bordoni
Franco rosso international  samaritaniFranco rosso international  samaritani
Franco rosso international samaritani
ITCT_Bordoni3K views
Presentazione ITCT Bordoni 16/17 von ITCT_Bordoni
Presentazione ITCT Bordoni 16/17Presentazione ITCT Bordoni 16/17
Presentazione ITCT Bordoni 16/17
ITCT_Bordoni8K views

Similar a Digital logic devices

SEMICONDUCTOR MEMORIES(RAM &ROM).pptx von
SEMICONDUCTOR MEMORIES(RAM &ROM).pptxSEMICONDUCTOR MEMORIES(RAM &ROM).pptx
SEMICONDUCTOR MEMORIES(RAM &ROM).pptxMomin24
84 views20 Folien
rom-140919103032-phpapp02.pptx von
rom-140919103032-phpapp02.pptxrom-140919103032-phpapp02.pptx
rom-140919103032-phpapp02.pptxRAJCHATTERJEE24
7 views25 Folien
ROM(Read Only Memory ) von
ROM(Read Only Memory )ROM(Read Only Memory )
ROM(Read Only Memory )rohitladdu
50.4K views25 Folien
Topic 11- Read Only Memory (ROM).pptx von
Topic 11- Read Only Memory (ROM).pptxTopic 11- Read Only Memory (ROM).pptx
Topic 11- Read Only Memory (ROM).pptxMartMantilla1
28 views25 Folien
Memory And Storages von
Memory And StoragesMemory And Storages
Memory And StoragesArsalan Qureshi
203 views22 Folien
Lec 3 digital electronics- read only memory von
Lec 3  digital electronics- read only memoryLec 3  digital electronics- read only memory
Lec 3 digital electronics- read only memorypriyankatabhane
213 views27 Folien

Similar a Digital logic devices(20)

SEMICONDUCTOR MEMORIES(RAM &ROM).pptx von Momin24
SEMICONDUCTOR MEMORIES(RAM &ROM).pptxSEMICONDUCTOR MEMORIES(RAM &ROM).pptx
SEMICONDUCTOR MEMORIES(RAM &ROM).pptx
Momin2484 views
ROM(Read Only Memory ) von rohitladdu
ROM(Read Only Memory )ROM(Read Only Memory )
ROM(Read Only Memory )
rohitladdu50.4K views
Topic 11- Read Only Memory (ROM).pptx von MartMantilla1
Topic 11- Read Only Memory (ROM).pptxTopic 11- Read Only Memory (ROM).pptx
Topic 11- Read Only Memory (ROM).pptx
MartMantilla128 views
Lec 3 digital electronics- read only memory von priyankatabhane
Lec 3  digital electronics- read only memoryLec 3  digital electronics- read only memory
Lec 3 digital electronics- read only memory
priyankatabhane213 views
Memories in digital electronics von SijuGeorge10
Memories in digital electronicsMemories in digital electronics
Memories in digital electronics
SijuGeorge102.2K views
Application of Ram and ROM von Abir Hasan
Application of Ram and ROMApplication of Ram and ROM
Application of Ram and ROM
Abir Hasan1.3K views
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embedded Systems Memory von Arti Parab Academics
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II  Embedded Systems MemorySYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II  Embedded Systems Memory
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embedded Systems Memory
Ram & rom memories von angelaag98
Ram & rom memoriesRam & rom memories
Ram & rom memories
angelaag9830.5K views
EC8392 -DIGITAL ELECTRONICS -II YEAR ECE-by S.SESHA VIDHYA /ASP/ ECE/ RMKCET von SeshaVidhyaS
EC8392 -DIGITAL ELECTRONICS -II YEAR ECE-by S.SESHA VIDHYA /ASP/ ECE/ RMKCETEC8392 -DIGITAL ELECTRONICS -II YEAR ECE-by S.SESHA VIDHYA /ASP/ ECE/ RMKCET
EC8392 -DIGITAL ELECTRONICS -II YEAR ECE-by S.SESHA VIDHYA /ASP/ ECE/ RMKCET
SeshaVidhyaS869 views
digital logic circuits, digital component memory unit von Rai University
 digital logic circuits, digital component memory unit digital logic circuits, digital component memory unit
digital logic circuits, digital component memory unit
Rai University4.3K views
Bca 2nd sem-u-1.7 digital logic circuits, digital component memory unit von Rai University
Bca 2nd sem-u-1.7 digital logic circuits, digital component memory unitBca 2nd sem-u-1.7 digital logic circuits, digital component memory unit
Bca 2nd sem-u-1.7 digital logic circuits, digital component memory unit
Rai University888 views
Giao trinh he thong nhung vdk h8 von LÊ Tuấn
Giao trinh he thong nhung   vdk h8Giao trinh he thong nhung   vdk h8
Giao trinh he thong nhung vdk h8
LÊ Tuấn661 views

Más de Nisarg Amin

Goods & services tax (gst) von
Goods & services tax (gst)Goods & services tax (gst)
Goods & services tax (gst)Nisarg Amin
1.4K views27 Folien
Power system earthing von
Power system earthingPower system earthing
Power system earthingNisarg Amin
1.9K views15 Folien
Improving boiler availability von
Improving boiler availabilityImproving boiler availability
Improving boiler availabilityNisarg Amin
393 views20 Folien
Types of welding von
Types of weldingTypes of welding
Types of weldingNisarg Amin
1.5K views12 Folien
Symmetrical component method for 3 phase power representation von
Symmetrical component method for 3 phase power representationSymmetrical component method for 3 phase power representation
Symmetrical component method for 3 phase power representationNisarg Amin
796 views12 Folien
Streamer theory von
Streamer theoryStreamer theory
Streamer theoryNisarg Amin
433 views10 Folien

Más de Nisarg Amin(20)

Goods & services tax (gst) von Nisarg Amin
Goods & services tax (gst)Goods & services tax (gst)
Goods & services tax (gst)
Nisarg Amin1.4K views
Power system earthing von Nisarg Amin
Power system earthingPower system earthing
Power system earthing
Nisarg Amin1.9K views
Improving boiler availability von Nisarg Amin
Improving boiler availabilityImproving boiler availability
Improving boiler availability
Nisarg Amin393 views
Types of welding von Nisarg Amin
Types of weldingTypes of welding
Types of welding
Nisarg Amin1.5K views
Symmetrical component method for 3 phase power representation von Nisarg Amin
Symmetrical component method for 3 phase power representationSymmetrical component method for 3 phase power representation
Symmetrical component method for 3 phase power representation
Nisarg Amin796 views
Single phase full bridge inverter von Nisarg Amin
Single phase full bridge inverterSingle phase full bridge inverter
Single phase full bridge inverter
Nisarg Amin36.8K views
Flowchart for optimal design of dc machine and transfomer von Nisarg Amin
Flowchart for optimal design of dc machine and transfomerFlowchart for optimal design of dc machine and transfomer
Flowchart for optimal design of dc machine and transfomer
Nisarg Amin4.2K views
Design of commutator and brush von Nisarg Amin
Design of commutator and brushDesign of commutator and brush
Design of commutator and brush
Nisarg Amin319 views
Typical a.c. supply system von Nisarg Amin
Typical a.c. supply systemTypical a.c. supply system
Typical a.c. supply system
Nisarg Amin6K views
Design of field regulators for dc shunt generators von Nisarg Amin
Design of field regulators   for dc shunt generatorsDesign of field regulators   for dc shunt generators
Design of field regulators for dc shunt generators
Nisarg Amin2.9K views
Nuclear power plant von Nisarg Amin
Nuclear power plantNuclear power plant
Nuclear power plant
Nisarg Amin254 views
Properties of fourier transform von Nisarg Amin
Properties of fourier transformProperties of fourier transform
Properties of fourier transform
Nisarg Amin13.2K views
Induction generator von Nisarg Amin
Induction generatorInduction generator
Induction generator
Nisarg Amin1.2K views
Engineering applications of thermodynamics von Nisarg Amin
Engineering applications of thermodynamicsEngineering applications of thermodynamics
Engineering applications of thermodynamics
Nisarg Amin4.8K views
Decimal number system von Nisarg Amin
Decimal number systemDecimal number system
Decimal number system
Nisarg Amin7.5K views
Cylindrical co ordinate system von Nisarg Amin
Cylindrical co ordinate systemCylindrical co ordinate system
Cylindrical co ordinate system
Nisarg Amin3.4K views
Types of cables von Nisarg Amin
Types of cables Types of cables
Types of cables
Nisarg Amin18.2K views
Engineering graphics von Nisarg Amin
Engineering graphicsEngineering graphics
Engineering graphics
Nisarg Amin4.9K views

Último

Sociology KS5 von
Sociology KS5Sociology KS5
Sociology KS5WestHatch
76 views23 Folien
AI Tools for Business and Startups von
AI Tools for Business and StartupsAI Tools for Business and Startups
AI Tools for Business and StartupsSvetlin Nakov
111 views39 Folien
MercerJesse2.1Doc.pdf von
MercerJesse2.1Doc.pdfMercerJesse2.1Doc.pdf
MercerJesse2.1Doc.pdfjessemercerail
237 views5 Folien
ACTIVITY BOOK key water sports.pptx von
ACTIVITY BOOK key water sports.pptxACTIVITY BOOK key water sports.pptx
ACTIVITY BOOK key water sports.pptxMar Caston Palacio
745 views4 Folien
On Killing a Tree.pptx von
On Killing a Tree.pptxOn Killing a Tree.pptx
On Killing a Tree.pptxAncyTEnglish
66 views11 Folien
11.30.23 Poverty and Inequality in America.pptx von
11.30.23 Poverty and Inequality in America.pptx11.30.23 Poverty and Inequality in America.pptx
11.30.23 Poverty and Inequality in America.pptxmary850239
167 views33 Folien

Último(20)

Sociology KS5 von WestHatch
Sociology KS5Sociology KS5
Sociology KS5
WestHatch76 views
AI Tools for Business and Startups von Svetlin Nakov
AI Tools for Business and StartupsAI Tools for Business and Startups
AI Tools for Business and Startups
Svetlin Nakov111 views
11.30.23 Poverty and Inequality in America.pptx von mary850239
11.30.23 Poverty and Inequality in America.pptx11.30.23 Poverty and Inequality in America.pptx
11.30.23 Poverty and Inequality in America.pptx
mary850239167 views
The basics - information, data, technology and systems.pdf von JonathanCovena1
The basics - information, data, technology and systems.pdfThe basics - information, data, technology and systems.pdf
The basics - information, data, technology and systems.pdf
JonathanCovena1126 views
Solar System and Galaxies.pptx von DrHafizKosar
Solar System and Galaxies.pptxSolar System and Galaxies.pptx
Solar System and Galaxies.pptx
DrHafizKosar94 views
How to empty an One2many field in Odoo von Celine George
How to empty an One2many field in OdooHow to empty an One2many field in Odoo
How to empty an One2many field in Odoo
Celine George72 views
11.28.23 Social Capital and Social Exclusion.pptx von mary850239
11.28.23 Social Capital and Social Exclusion.pptx11.28.23 Social Capital and Social Exclusion.pptx
11.28.23 Social Capital and Social Exclusion.pptx
mary850239304 views
Drama KS5 Breakdown von WestHatch
Drama KS5 BreakdownDrama KS5 Breakdown
Drama KS5 Breakdown
WestHatch87 views
CUNY IT Picciano.pptx von apicciano
CUNY IT Picciano.pptxCUNY IT Picciano.pptx
CUNY IT Picciano.pptx
apicciano54 views
Narration lesson plan von TARIQ KHAN
Narration lesson planNarration lesson plan
Narration lesson plan
TARIQ KHAN59 views
Dance KS5 Breakdown von WestHatch
Dance KS5 BreakdownDance KS5 Breakdown
Dance KS5 Breakdown
WestHatch86 views

Digital logic devices

  • 1. Name:- Nisarg Amin Topic:- Digital Logic Devices 1
  • 2. DECODER 2 •A decoder is a logic circuit that accepts a set of inputs that represents a binary number and activates only the output that corresponds to the input number. •In other words, a decoder circuit looks at its inputs, determines which binary number is present there, and activates the one output that corresponds to that number ; all other outputs remain inactive. •In its general form, a decoder has N input lines to handle N bits and form one to 2 N output lines to indicate the presence of one or more N-bit combinations.
  • 3. General decoder diagram 3 There are 2N possible input combinations, from A0 to AN1. For each of these input combinations only one of the M outputs will be active HIGH (1), all the other outputs are LOW (0).
  • 4. 4 • If an active-LOW output (74138, one of the output will low and the rest will be high) is required for each decoded number, the entire decoder can be implemented with 1. NAND gates 2. Inverters • If an active-HIGH output (74139, one of the output will high and the rest will be low) is required for each decoded number, the entire decoder can be implemented with • AND gates • Inverters
  • 5. 3-8 line decoder (active-HIGH) 5
  • 6. 6 •This decoder can be referred to in several ways. It can be called a 3-line-to- 8-line decoder, because it has three input lines and eight output lines. •It could also be called a binary-octal decoder or converters because it takes a three bit binary input code and activates the one of the eight outputs corresponding to that code. It is also referred to as a 1-of-8 decoder, because only 1 of the 8 outputs is activated at one time.
  • 7. 7 Logic diagram of 74138 (Example of a 3Bit Decoder)
  • 8. Truth table of 74138 (Example of a 3 8 Bit Decoder) active-LOW 8
  • 9. Classification Of Memory 1. RAM a) SRAM b) DRAM 2. ROM a) PROM b) EPROM c) EEPROM d) NVRAM e) Flash Memory
  • 10. 1. RAM • The RAM family includes two important memory devices: Static RAM (SRAM) and Dynamic RAM (DRAM). The primary difference between them is the lifetime of the data they store. • SRAM retains its contents as long as electrical power is applied to the chip. If the power is turned off or lost temporarily, its contents will be lost forever. • DRAM, on the other hand, has an extremely short data lifetime-typically about four milliseconds. This is true even when power is applied constantly. DRAM controller is used to refresh the data before it expires, the contents of memory can be kept alive for as long as they are needed. So DRAM is as useful as SRAM after all.
  • 11. 2. ROM • Memories in the ROM family are distinguished by the methods used to write new data to them (usually called programming), and the number of times they can be rewritten. • This classification reflects the evolution of ROM devices from hardwired to programmable to erasable-and- programmable. • A common feature is their ability to retain data and programs forever, even during a power failure. • The contents of the ROM had to be specified before chip production, so the actual data could be used to arrange the transistors inside the chip.
  • 12. • One step up from the masked ROM is the PROM (programmable ROM), which is purchased in an unprogrammed state. If you were to look at the contents of an unprogrammed PROM, the data is made up entirely of 1's. • The process of writing your data to the PROM involves a special piece of equipment called a device programmer. The device programmer writes data to the device one word at a time by applying an electrical charge to the input pins of the chip. • Once a PROM has been programmed in this way, its contents can never be changed. If the code or data stored in the PROM must be changed, the current device must be discarded. As a result, PROMs are also known as one-time programmable (OTP) devices. a) PROM
  • 13. • An EPROM (erasable-and-programmable ROM) is programmed in exactly the same manner as a PROM. However, EPROMs can be erased and reprogrammed repeatedly. • To erase an EPROM, you simply expose the device to a strong source of ultraviolet light. (A window in the top of the device allows the light to reach the silicon.) By doing this, you essentially reset the entire chip to its initial-unprogrammed-state. • Though more expensive than PROMs, their ability to be reprogrammed makes EPROMs an essential part of the software development and testing process. b) EPROM
  • 14. c) EEPROMS •EEPROMS are electrically-erasable-and-programmable. Internally, they are similar to EPROMs, but the erase operation is accomplished electrically, rather than by exposure to ultraviolet light. •Any byte within an EEPROM may be erased and rewritten. Once written, the new data will remain in the device forever-or at least until it is electrically erased. •The primary tradeoff for this improved functionality is higher cost, though write cycles are also significantly longer than writes to a RAM. So you wouldn't want to use an EEPROM for your main system memory.
  • 15. d) Flash memory • Flash memory combines the best features of the memory devices described thus far. Flash memory devices are high density, low cost, nonvolatile, fast (to read, but not to write), and electrically reprogrammable. • These advantages are overwhelming and, as a direct result, the use of flash memory has increased dramatically in embedded systems. From a software viewpoint, flash and EEPROM technologies are very similar. • The major difference is that flash devices can only be erased one sector at a time, not byte-by-byte. Typical sector sizes are in the range 256 bytes to 16KB. Despite this disadvantage, flash is much more popular than EEPROM and is rapidly displacing many of the ROM devices as well.
  • 16. e) NVRAM • The third member of the hybrid memory class is NVRAM (non-volatile RAM). Nonvolatility is also a characteristic of the ROM and hybrid memories discussed previously. • However, an NVRAM is physically very different from those devices. An NVRAM is usually just an SRAM with a battery backup. When the power is turned on, the NVRAM operates just like any other SRAM. • When the power is turned off, the NVRAM draws just enough power from the battery to retain its data. NVRAM is fairly common in embedded systems. • However, it is expensive-even more expensive than SRAM, because of the battery-so its applications are typically limited to the storage of a few hundred bytes of system-critical information that can't be stored in any better way.