13.07.2015 Views

chapter 1 introduction to microprocessor and microcontroller

chapter 1 introduction to microprocessor and microcontroller

chapter 1 introduction to microprocessor and microcontroller

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

viii.Following this, the Control Unit (Controller Sequencer) produces control signals <strong>to</strong>get the data which is in the following location of memory (01H) <strong>and</strong> place it in<strong>to</strong>Accumula<strong>to</strong>r, as what has requested by the instruction.The Execute Phase In this phase, CPU will carry out the requirement on the instruction. In this case, theCPU will move/copy data in<strong>to</strong> Accumula<strong>to</strong>r.i. The contain of PC (01H) is sent <strong>to</strong> AR (AR = 01H).ii.The contain of PC, as usual is incremented by 1 <strong>and</strong> become 02H now.iii.The contain of AR is placed on the Address Bus. Then, the location of the memoryis identified, which is 02H.iv.The data in the location of 02H is placed on Data Bus <strong>and</strong> is sent <strong>to</strong> the DR in theMP.v. From DR, the data straight away sends <strong>to</strong> Accumula<strong>to</strong>r as what has requestedbefore (MOV A).vi.So, now the data ”10H” is inside the Accumula<strong>to</strong>r. The instruction ”MOV A, #10H”has been executed.vii.These program-executional steps will be the same for any other instruction.1.8 TERMS OF PROCESSING DATA IN MICROPROCESSORInstruction Cycle It is the process by which a computer retrieves a program instruction from its memory,determine what actions the instruction required, <strong>and</strong> carry out the actions. This cycle is repeated continuously by the CPU, from booting up <strong>to</strong> shutting down of acomputer.Prepared by Tan KL Page 1-20

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!