Processor Basics 129
Interrupts may be individually enabled or disabled and there is a mechanism to disable all interrupts
simultaneously. Note that there is no non-maskable interrupt in 8051. Interrupt service routines of 8051
must be terminated by a RETI instruction, which enables further interrupts. Every interrupt has its
default priority, which may be modi ed dynamically by the program through the IP SFR.
External interrupts of 8051 may be programmed as either low level or falling edge sensitive. Timers
may be programmed in any one of the four modes available. In 8051, timer counters are incremented
(counts up), and whenever there is an over ow from FFFFH to 0000H, internal interrupts are generated.
In the case of serial communication, Timer 1 may be used as the baud rate generator .
5.9.9 Special Features
One of the special features of 8051 is its power management provisions. Through its PCON SFR (not
bit addressable) 8051 allows itself to switch into idle mode or sleep mode . During these power sav-
ing modes, processor clock is cut-off from certain internal modules of 8051, resulting in lesser power
demand. During this phase, port outputs remain unchanged and internal RAM locations retain their
original data. An external reset signal is necessary to come out from the sleep mode, while any interrupt
or reset would bring the processor out of its idle mode.
5.10 RISC AND CISC PROCESSORS
Every processor is designed to execute a set of instructions. Moreover, when used in computers, where
high-level languages are used, these instructions become more complex to make the compiler’s duty
simpler. A compiler translates any program written in high-level language to machine-understandable-
language or simply machine language. An increase in the number of complex instructions within the
instruction set of any processor would make the instruction decoding more complex and time-consuming.
It may be observed that in the late 1970s and early 1980s, the trend of processor was to incorporate
more and more complex instruction set. Furthermore, maintaining of backward compatibility with pre-
vious processors had been an added burden to the architectural design of these processors. All these
resulted in a different view point of the basic processor-design philosophy. Some designers started
thinking whether the incorporation of complex instruction set really enhances the throughput of the
processor or not. After all, the nal speed of execution is the key point for any processor and ‘faster and
faster’ is the buzz-word of the computer industry.
After conducting a considerable amount of analysis and research, designers understood the fact that,
although the complex instructions help the compilers in one way, in reality, they are not so widely
used by the processor. It is the simpler instructions that are executed more number of times than their
complex counterparts. The second point that came up is the relative speed of processor and memory.
Although both are on the path of improvement, the memory remains a slower device to communicate,
with respect to the execution speed of the processor.
5.10.1 Introduction of RISC Processors
RISC processor was initiated in Berkeley around 1980 by a small group of designers, who started design-
ing a new type of processors with reduced number of instruction set, avoiding all complex instructions.
Simpler instructions consume lesser time to be executed. Moreover, the memory access was limited to
data load and data store instructions only. It means that ‘ increment the content of a memory location by
one ’ type instructions are also avoided. To reduce the memory accessing time, larger number of registers
M05_GHOS1557_01_SE_C05.indd 129M05_GHOS1557_01_SE_C05.indd 129 4/29/11 5:07 PM4/29/11 5:07 PM