Arm LPC2148 Material
Arm LPC2148 Material
Arm LPC2148 Material
Microcontroller:
The supply voltage for micro controllers ranges from 2v to 6v direct current. As our
mains supply is of 230volts A.C, we need a process of conversion of the power supply.
Microcontroller features:
1. Supply voltage:
2. The clock:
Many microcontrollers have at least one watchdog facility, also known as the
Watchdog Timer (or WDT). A WDT is usually an 8-bit timer with a percale option and is
clocked from a free running on-chip oscillator. The watchdog is usually refreshed by the
user program at regular intervals and a reset occurs if the program fails to refresh the
watchdog. Watchdog facilities are commonly used in real-time systems where it is
required to check the proper termination of one or more activities. All PIC
microcontrollers are equipped with a WDT.
5. Reset input:
This input resets the microcomputer. The reset logic is used to place the
microcontroller into a known state. The source of the reset can usually be selected by the
user and Power-on Reset (POR) is the most common form of reset in microcontrollers.
Most microcontrollers have resistors connected to the supply voltage and this ensures that
the microcontroller starts properly after the application of power (POR). Microcontroller
manufacturers specify the state of the various registers after a reset signal is applied to a
microcontroller. Some microcontrollers have internal reset circuitry which does not
require any external components.
6. Interrupts:
7. Brown-out detector:
Brown-out detectors are also common in many microcontrollers and they reset a
microcontroller if the supply voltage falls below a nominal value. Brownout detectors are
usually employed to prevent unpredictable operation at low voltages, especially to protect
the contents of EEPROM type memories. ARM microcontrollers are equipped with
Brown-out detector circuits.
8. Analogue-to-digital converter:
Some microcontrollers are equipped with A/D converter circuits. Usually these
converters are 8-bits, but some microcontrollers have 10- or even 12-bit converters. Some
microcontrollers have multiple A/D channels (e.g. PIC16F877 is equipped with eight
A/D channels). A/D converters usually generate interrupts when a conversion is complete
so that the user program can read the converted data very quickly. A/D converters are
very useful in control and monitoring applications since most sensors produce analogue
output voltages.
9. Serial input/output:
Some microcontrollers contain hardware to implement serial asynchronous
communications interface. The baud rate and the data format can usually be selected in
software by the programmer. The built-in timer circuits are usually used to generate an
accurate baud rate. If serial I/O hardware is not provided, it is easy to develop software to
implement serial data transfer using any I/O pin of a microcontroller. Some
microcontrollers incorporate SPI (Serial Peripheral Interface), I2C (Integrated
Interconnect), or CAN (Controller Area Network) bus interfaces. These enable a
microcontroller to interface to other compatible devices easily.
ARM ARCHITECTURE:
Control over ALU and Shifter (Barrel Shifter) which helps maximum usage of
hardware on the chip.
Auto increment and Auto decrement of addressing modes to optimize program
loops.
Load and Store multiple data elements through a single instruction, which
increases data throughput.
A lot of branch instructions which can be used in conjunction with a number of
instructions, which maximizes execution throughput.
VERSIONS:
V1 (1983-85) 26 bit addressing mode, no multiply or co-processor.
V2 32 bit addressing mode, multiply, co-processor.
V3 32 bit addressing.
V4 Add signed and unsigned words.
V4T Thumb instruction set (16-bit instruction set)
V5T Superset of 4T with new instructions
V5TE Add Signal processing
Examples:
ARM 6 V3
ARM 7 V3
ARM7TDMI V4T
Strong ARM V4
ARM 9E-S V5TE
ARM7TDMI-S PROCESSOR
The ARM7TDMI core is a member of the ARM family of general-purpose 32-bit
Microprocessors. The ARM family offers high performance for very low power
Consumption and small size.
The ARM7TDMI core uses a pipeline to increase the speed of the flow of instructions to
the processor. This allows several operations to take place simultaneously, and the
processing and memory systems to operate continuously.
A three-stage pipeline is used, so instructions are executed in three stages:
• Fetch
• Decode
• Execute.
During normal operation, while one instruction is being executed, its successor is being
decoded, and a third instruction is being fetched from memory.
The program counter points to the instruction being fetched rather than to the instruction
being executed. This is important because it means that the Program Counter (PC) value
used in an executing instruction is always two instructions ahead of the address.
Memory access:
The ARM7TDMI core has Von Neumann architecture, with a single 32-bit data bus
carrying both instructions and data. Only load, store, and swap instructions can access
data from memory.
Data can be:
• 8-bit (bytes)
• 16-bit (half words)
• 32-bit (words).
Words must be aligned to 4-byte boundaries. Half words must be aligned to 2-byte
boundaries.
Features:
Architectural Overview:
1. ON CHIP MEMORIES:
It has a flash memory of 512KB which can be used for both code and data
storage.
12KB is intended for boot loader i.e., user code flash memory is 500KB.
Programming flash memory can be done via system serial port.
This memory can be erased or programmed while running the application.
It provides minimum of 1, 00,000 erase/write cycles with 20 years data
retention capability.
It has on chip static RAM of 32 KB and 8KB is intended for USB usage.
2. VECTORED INTERRUPT CONTROLLER:
This controller accepts all interrupts as input and categorize them under different
interrupt modules. There are 3 types of interrupt modules
FAST INTERRUPT REQUEST: This got the highest priority. If only one
interrupt is available it will directly run from interrupt vector location. If more than one
interrupt is available VIC combines these signals and places them in a service routine.
3.PIN CONNECT BLOCK: This blocks allows the pins of the Micro Controller to
perform multiple functions.
Configuration registers allows the multiplexers to allow connection between the pin and
peripheral.
After reset all pins of port0 and port1 are configured as input with following exceptions:
If JTAG debugger mode is active, then the JTAG pins will have JTAG functionality.
4.10-bit ADC: This Micro Controller has 2 ADC ports.
Port 0 has 6 channels and port 1 has 8 channels.
5. Real-time clock:
The RTC is designed to provide a set of counters to measure time when normal or idle
Operating mode is selected. The RTC has been designed to use little power, making it
suitable for battery powered systems where the CPU is not running continuously (Idle
mode).
Features: