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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ii.ACC (Accumula<strong>to</strong>r) It is a register which can s<strong>to</strong>re data for temporary before sending <strong>to</strong> process inALU <strong>and</strong> also can s<strong>to</strong>re the processed data before sending <strong>to</strong> s<strong>to</strong>re in thememory or display through peripheral output. It is just like a “entrance” for a data <strong>to</strong> go in <strong>and</strong> come out from ALU.iii.Flag register/PSW (Program Status Word ) register This register contains information regarding the result of a process which hasbeen carried out by ALU. It tells the user whether the result has Carry (CY), Auxiliary Carry (AC), Odd orEven Parity (P) or Overflow (OV) or the other way round. It also consists information regarding registers from which bank will be workingon (will be discussed further in Chapter 2).iv.Program Counter (PC) It controls the sequence in which the instructions in a program are performed. Normally, it does this by counting in the sequence, that is 0, 1, 2, 3, … At any given time, the count indicates the location in memory from which thenext location of information/instruction is <strong>to</strong> be taken.v. Stack Pointer (SP) This register will s<strong>to</strong>re the contains of Program Counter (location of memory)for a short time when there is subroutine/sub-program occurs in the program. This register will be taken place when some particular instructions, such asPUSH, POP, CALL <strong>and</strong> RET are used in the program.vi.Data Register This register is a temporary s<strong>to</strong>rage location for data going <strong>to</strong> or coming fromthe data bus.Prepared by Tan KL Page 1-12

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

Saved successfully!

Ooh no, something went wrong!