160 likes | 308 Views
Microprocessors and Microcontrollers. by Dr. K.K.Thyagharajan, M.E., Ph.D. Professor Department of Information Technology R.M.K. Engineering College Websites: www.tansitresearch.org www.geocities.com/kkthyagharajan/ Email: kktflashtraining@yahoo.co.in.
E N D
Microprocessors and Microcontrollers by Dr. K.K.Thyagharajan, M.E., Ph.D. Professor Department of Information Technology R.M.K. Engineering College Websites: www.tansitresearch.org www.geocities.com/kkthyagharajan/ Email: kktflashtraining@yahoo.co.in
Address Decoding And Memory Mapping • Memory address decoding is nothing but to assign an address for each location in the memory chip. • Memory address can be decoded in two ways • Absolute or Fully decoding • and • 2. Linear Select or Partial decoding
Absolute or Fully Decoding • ADVANTAGES • Each memory location has only one address, there is no duplication in the address • Memory can be placed contiguously in the address space of the microprocessor • Future expansion can be made easily without disturbing the existing circuitry DISADVANTAGES • Extra decoders are necessary • Some delay will be produced by these extra decoders.
216 different addresses from 0000H to FFFFH so that each location in the memory will have a unique address as shown below
Linear Select or Partial Decoding • ADVANTAGES • Simplified decoding circuit • Reduced the hardware design cost • DISADVANTAGES • Multiple addresses are provided for the same location • Complete memory space of the microprocessor is not efficiently used • Adding or interfacing ICs with already existing circuitry is difficult.
Linear Select Address Decoding Circuit Diagram Chip Select Signals
The same EPROM is selected both for the address range 0000H to 1FFFH and 8000H to 9FFFH.
Bus Contention Reading Opcode from the Memory