Microprocessor Systems Week 1 Unit 1: Introduction To Microprocessors and Microcontrollers I. Learner Objectives
Microprocessor Systems Week 1 Unit 1: Introduction To Microprocessors and Microcontrollers I. Learner Objectives
Microprocessor Systems Week 1 Unit 1: Introduction To Microprocessors and Microcontrollers I. Learner Objectives
and Microcontrollers
I. Learner Objectives:
II. Prerequisites:
III. Keywords:
Microprocessor, microcontroller
Atmel’s AVR microcontrollers use a RISC core that generally processes one
instruction per clock cycle. The core decreases the need for a large complex
instruction set (which is generally not used completely anyways). AVR Flash
microcontrollers have the capability to operate at clock frequencies of 20 MHz.
Hence, these microcontrollers may execute a maximum of 20 million
instructions per second (MIPS). AVR microcontrollers are considered high
performance microcontrollers. It uses the Harvard computer architecture and
supports 32 general purpose registers. The microcontroller also supports 16 and
32-bit arithmetic calculations. The instruction set consists of 130 instructions,
which lend themselves to high-density programs. Atmel’s AVR RISC family of
microcontrollers supports a variety of on-chip peripherals such as: EEPROMs,
ADCs, Timers, UARTs, PWMs, digital I/O, etc.
The Atmel AVR 8-bit RISC architecture allows for low power consumption. They
operate between 1.8 and 5.5 V, which allows them to be integrated into
embedded controllers, such as the Digilent Cerebot II, where power
consumption is a necessary concern. If robot control is the desired application
for the Atmel AVR microcontroller then 1.8 to 5.5 V translates to between 1
and 4 AA or AAA batteries. The AVR microcontrollers also support various sleep
modes for preserving power when it is not needed. Between real-time events
or interrupts most of the microcontroller does not consume power. The AVR 8-
bit RISC family of microcontrollers also allow for in-system development. The
microcontrollers support on-chip debuggers and in-circuit-emulators.
The block diagram given in Figure 1 shows the organization of the 8-bit AVR
ATmega64L. The ATmega64L uses a RISC architecture with all of its general
purpose registers directly connected to the arithmetic logic unit (ALU). The
ATmega64L supports the following features:
Operates between 0 – 8 MHz
Supply voltage between 2.7 – 5.5 V
6 sleep modes
64 KB of in-system programmable flash
2 KB of EEPROM
4 KB of SRAM
53 general purpose I/O lines
32 general purpose registers (common to all 8-bit AVR microcontrollers)
1 real time counter (RTC)
Prevalent Microcontrollers:
Atmel – AT89, AT90, ATtiny, ATmega series, AT91SAM, AVR32
Xilinx – Microblaze, Picoblaze
NEC – 17K, V25, 75X, 78K, V850
Intel – MCS-48, MCS-51, 80960
Prevalent Microprocessors:
AMD - K5, K6, K6-2, K6-III, Duron, Athlon, Athlon XP, Athlon MP, Athlon
XP-M, Athlon 64, Athlon 64 FX, Athlon 64 X2, Opteron, Sempron, Turion
64
Intel – 8085, 8086, 8088, 80186, 80188, 80286, 80386, 80486, Pentium,
Pentium Pro, Celeron, Pentium II, Pentium III, Xeon, Pentium 4, Pentium
M, Pentium D, Celeron M, Celeron D, Itanium
Motorola – 6800, 68000, 88000
IBM/PowerPC
V. Conclusion:
VI. Links:
Atmel: http://www.atmel.com/
Digilent: http://www.digilentinc.com/
Xilinx: http://www.xilinx.com/
AVR programming help: http://www.avrbeginners.net/
AVR community: http://www.avrfreaks.net/
AVR Projects: http://www.avrprojects.net/
The instructions that you need to know for the day include: ADD and MOV. ADD
is considered an arithmetic instruction while MOV is a data transfer instruction.
ADD requires two registers (coming soon), a source (Rr) and destination register
(Rd), as operands. The contents of the two registers are added together the
result is stored in the destination register. This instruction only requires 1 clock
cycle (coming soon) to execute. An example usage is as follows:
ADD R1, R2, where R1 and R2 are accessible general purpose registers
and R1 is the destination and R2 is the source
MOV requires two registers as well. The contents of the source register is
copied and placed in the destination register. This instruction also only
required 1 clock cycle to execute. One example on how to use the instruction is
as follows:
MOV R1, R2, where R1 is the destination and R2 is the source
Notice the general pattern that the first operand is always the destination and
the second operand is always the source where appropriate.
VIII. Questions:
4. Which of the following does NOT apply to Atmel’s AVR RISC microcontrollers?