Microelectronics - Systems and Devices
eBook - ePub

Microelectronics - Systems and Devices

Owen Bishop

  1. 213 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Microelectronics - Systems and Devices

Owen Bishop

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

This is a completely new textbook written to be fully in line with the new BTEC Higher National unit from Edexcel, the 2000 specification Advanced GNVQ unit, BTEC NII and NIII, and A-Level modules. The resulting breadth of coverage makes Microelectronics - Systems and Devices an excellent international student text.The book takes a student-centred approach towards microelectronics, with Test Your Knowledge features to check understanding, and numerous Activities suitable for practicals, homeworks and other assignments. Key facts, formulae and definitions are highlighted to aid revision, and theory is backed up by numerous examples throughout the book. Each chapter ends with a set of problems, which include exam-style questions and multiple-choice questions, with numerical and multi-choice answers provided in the back of the book. In addition, a number of Assignments appear through the book for which answers are provided in a separate lecturer's supplement (free to adopters). The Assignments are ideal for tests or revision homeworks. As well as matching the latest syllabuses, this book covers the latest devices in use in colleges: the 80C31 and PIC families. The material is suitably flexible to provide a core text for colleges using other chips such as the 8051, the 8086/Pentium family and 'classics' such as the Z80 and 6502.Owen Bishop's talent for introducing the world of electronics has long been a proven fact with his Beginner's Guide to Electronics, Understand Electronics and a range of popular circuit construction guides chosen by thousands of students, lecturers and electronics enthusiasts. He is also well known for his college texts such as Understand Technical Mathematics.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Microelectronics - Systems and Devices è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Microelectronics - Systems and Devices di Owen Bishop in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Technologie et ingénierie e Ingénierie de l'électricité et des télécommunications. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Part B – The Software

7

Instructions

Summary
The CPU reads a program in a series of fetch-execute cycles in which it reads a machine code instruction and then obeys it. Writing programs in machine code is difficult, but easier if we use an assembler program and write it in mnemonics. The assembler turns the mnemonics into machine code. A program written in assembler can have a title and comments added to it, to make it even easier to understand.
A CPU can do many different things, but it does nothing unless it is told to. It needs to be issued with instructions. The instructions are issued to it in the form of a program, stored in memory. The instructions that a given CPU can understand and obey are its instruction set.
Different types of CPU have a different instruction set; that is, they have a particular collection of instructions suited to the architecture of the CPU. Some kinds of CPU have a large instruction set with several hundred instructions in it (CISC). Others work on a much smaller set, usually fewer than a hundred (RISC). Usually all the members of a family of CPUs have the same instruction set. Some members of the family, especially the newer ones, may have a few additional instructions in their set.
The CPU obtains its instructions by going to an address in memory and reading the instructions stored there. There are very fast CPUs that read more than one at a time but most CPUs read one instruction at a time and act on it before fetching the next one. This is the type of CPU we describe in this chapter. We shall also confine our descriptions to systems in which the data is operated on as single bytes.

Fetch-execute cycle

When it is operating, a CPU repeatedly goes through a cycle known as the fetch-execute cycle. As its name implies, this cycle has two stages:
  • The CPU fetches an instruction from memory.
  • The CPU executes it, that is, it obeys the instruction.
The cycles are repeated continuously as the CPU works its way from the beginning of the program to the end.
The instruction is a byte of data stored in memory. Reading a byte from memory takes place in ten stages:
  • The address of the byte to be read is transferred along the internal bus of the CPU to the address bus register.
  • The address is placed on the address bus (Fig. 7.1).
  • The address is decoded by the logic (partly on the memory chip), to select the location for reading.
  • Reading is enabled. In Fig. 7.1 the WRITE ENABLE line is already high so reading is already enabled.
  • The CHIP ENABLE line goes low, to switch the memory chip outputs from the high-impedance state to a low-impedance state (outputs high or low).
  • Data from the memory location appears on the data bus.
  • The CPU stores the data from the bus in its data bus register.
  • The data is transferred to the internal bus of the CPU.
  • If the data is an instruction, it is stored in the instruction register.
  • While the last two states are occurring, the CE line goes high and the data is no longer present on the data bus.
Assuming that the CPU has only one read-write enable control line.
Assuming that the data is an instruction, the logic of the control unit causes one of many different actions to occur.
Example:
The data register of an 8085 CPU holds the following byte:
01001111
image
Figure 7.1 Reading a byte from memory involves a sequence of logic levels on two lines of the control bus. The WRITE ENABLE line stays high as this is a read operation. Data from memory is put on the bus when the CHIP ENABLE line goes low.
Test Your Knowledge 7.1
What is the address put on the bus before the chip is enabled?
The latches of the register are either set (= 1) or reset (= 0). When the control unit receives this data it copies to register C (a general-purpose register) the data that is in register A (the accumulator). This is an internal movement of data so a single byte is enough to tell the control unit what to do. How the control logic works, that is to say, how the input of 01001111 makes the control logic take the action we have described, is outside the scope of this book.
Remember that data transfer is by copying. The data now in the instruction register is still stored in memory, where it can be read as many times as the program requires.
Example:
At another time, the data register holds:
00110111
This instructs the control unit to set the carry bit of the status register to ‘1’. As above, a single byte is all that is necessary for this instruction. It is obvious that, if we always had to write out data as 8-bit binary numbers, as above, it would be all too easy to make mistakes. Instead, we express the numbers in hexadecimal. So the two instructions described above become:
4F, for copying data from A to C, and
37, for setting the carry bit
Some operations require two bytes. The first byte states what is to be done. On loading this byte, the CPU loads the next byte in memory to find out what value to operate on.
Test Your Knowledge 7.2
What is the code to make the CPU AND the contents of its register A with the value $2B?
Example: The code E6 (actually 11100110) tells the control unit to AND register A with the binary value that is in the next byte. The control unit has to send the CPU back to memory to find out the value of this byte, which is stored in the next location to the instruction E6. Therefore, the full instruction might be:
E6 4A
This tells the control unit to AND the content of register A with the value 4A.

Writing to memory

A sequence of operations may often end in the storing of a result in memory. There are opcodes for storing the contents of various registers. The operand is the address at which the data is to be stored. In a 16-bit system, it takes two bytes to specify the address. This means that the opcode is followed by two bytes, making the instruction three bytes long. The sequence of storing data is almost the reverse of the sequence for reading data. It has nine stages:
  • The address to which the byte is to be written is transferred along the internal bus of the CPU to the address bus register.
  • The address is placed on the address bus (Fig. 7.2).
  • The address is decoded by the logic (partly on the memory chip), to select the location for writi...

Indice dei contenuti

  1. Front Cover
  2. Halftitle
  3. Title Page
  4. Copyright
  5. Contents
  6. Preface
  7. Section A – The Hardware
  8. Section B – The Software
  9. Answers to questions
  10. Index
Stili delle citazioni per Microelectronics - Systems and Devices

APA 6 Citation

Bishop, O. (2013). Microelectronics - Systems and Devices (1st ed.). CRC Press. Retrieved from https://www.perlego.com/book/1622144/microelectronics-systems-and-devices-pdf (Original work published 2013)

Chicago Citation

Bishop, Owen. (2013) 2013. Microelectronics - Systems and Devices. 1st ed. CRC Press. https://www.perlego.com/book/1622144/microelectronics-systems-and-devices-pdf.

Harvard Citation

Bishop, O. (2013) Microelectronics - Systems and Devices. 1st edn. CRC Press. Available at: https://www.perlego.com/book/1622144/microelectronics-systems-and-devices-pdf (Accessed: 14 October 2022).

MLA 7 Citation

Bishop, Owen. Microelectronics - Systems and Devices. 1st ed. CRC Press, 2013. Web. 14 Oct. 2022.