Professional Documents
Culture Documents
Watchdog Timers
Power management in ARM
The LPC2141/42/44/46/48 supports two
reduced power modes:
1)Idle mode :
2)Power-down mode:
Power management in ARM
1)Idle mode :
execution of instructions is suspended until
either a reset or interrupt occurs
Peripheral functions continue operation
during Idle mode
May generate interrupts to cause the processor
to resume execution
Eliminates power used by the processor itself,
memory systems and related controllers, and
internal buses
Power management in ARM
2)Power-down mode.
oscillator is shut down and the chip receives no
internal clocks.
The processor state and registers, peripheral
registers, and internal SRAM values are
preserved throughout Power-down mode and
the logic levels of chip output pins remain
static.
normal operation resumed by either a reset or
certain specific interrupts
Power management in ARM
Register description: The Power Control function
contains two registers
(1)PCON Power Control Register: This register
contains control bits that enable the two reduced
power operating modes of the microcontroller.
(2) PCONP Power Control for Peripherals
Register: This register contains control bits that
enable and disable individual peripheral functions,
Allowing elimination of power consumption by
peripherals that are not needed.
PCON Power Control Register
The PCON register contains two bits. Writing a one to
the corresponding bit causes entry to either the
Power-down or Idle mode. If both bits are set, Power-
down mode is entered
Power control for peripherals (PCONP)
D
I
A
G
R
A
M
Conclusion
Watchdog timers can add a great deal of reliability to embedded
systems if used properly.
To do so requires a good overall approach. Resetting the
watchdog timer must be part of the overall design.
Verify the operation integrity of the system, and use this as a
criteria for resetting the watchdog timer.
In addition to validating that the software does the right thing,
verify that it does so in the time expected.
Assume the software will experience a hardware malfunction or
software fault. Add enough debugging information to help debug
situation.
Reset Circuitry
Reset Circuitry
A LOW on this pin resets the chip, causing I/O ports and
peripherals to take on their default states, and the processor to
begin execution at address 0x0000 0000.
XTAL/RTXC
Reset Circuitry
Reset Circuitry(MCP 130T)
Precision monitoring of 3V, 3.3V and 5V systems
Active low RESET pin(assert the RESET signal
whenever the voltage on the VDD pin is below
the trip-point voltage.)
Internal pull-up resistor (5 k) for MCP130
Protection from brown-out conditions when the
supply voltage drops below a safe operating
level.
Voltage supervisory device designed to keep a
microcontroller in reset until the system voltage
has reached the proper level and stabilized
Memory
Memory
Types of memory
MEMORY
CPU
MAGNETIC MAGNETIC OPTICAL
ON CHIP TAPE DISK
REGISTER DISK
CACHE
RAM ROM
34 http://improvec.blogspot.in/
Primary Memory
The storage type is temporary
It is volatile memory
Storage capacity is limited
It is part of CPU.
Used for storing a little volume of data at the
time of processing.
The semiconductor memory is employed as the
main memory (or primary memory).
It stores programs and data which are currently
needed by the CPU
35 http://improvec.blogspot.in/
Secondary memory
The magnetic memory is called as the secondary
memory (auxiliary memory).
The information which is needed by the CPU for
current processing is transferred from the
secondary memory to the main memory.
This is non-volatile memory, i.e., data is stored
permanently.
The secondary memory is used for bulk storage
(mass storage) of programs, data and other
information.
36 http://improvec.blogspot.in/
SRAM vs DRAM
39 http://improvec.blogspot.in/
PROM
This stands for Programmable Read Only Memory. It is a
semiconductor memory which can only have data written to it
once - the data written to it is permanent. These memories are
bought in a blank format and they are programmed using a
special PROM programmer. Typically a PROM will consist of an
array of fuse links some of which are "blown" during the
programming process to provide the required data pattern.
EPROM
This is an Erasable
Programmable Read
Only Memory.
Exposing the silicon to
ultraviolet light. To
enable this to happen
there is a circular
window in the
package of the
EPROM to enable the
light to reach the
silicon of the chip.
When the PROM is in
use, this window is
normally covered by a
label, specially when
the data may need to
be reserved for an
extended period
EEPROM
Electrically erasable programable read-only memory (EEPROM) is
Data can be written to it and it can be erased using an electrical
voltage. , but allows its entire contents to be electrically erased or
rewritten, This is typically applied to an erase pin on the chip. Like
other types of PROM, EEPROM retains the contents of the memory
even when the power is turned off. Also like other types of ROM,
EEPROM is not as fast as RAM.
EEROM FLASH
Flash memory:
In essence it uses the same method of programming as
the standard EPROM and the erasure method of the
E2PROM.
Flash memory can be seen in many forms today
including flash memory USB memory sticks, digital
camera memory cards in the form of compact flash or
secure digital, SD memory.
EEPROMs are changed 1byte at a time, which makes
them versatile but slow.
Flash memory, a type of EEPROM that uses in-circuit
wiring to erase by applying an electrical field to the
entire chip or to predetermined sections of the chip
called blocks.
Memory hierarchy
Good system design is a balance of many trade-offs to
achieve the overall system performance and costgoals. An
important part of this decision process is the memory
provision:
Types of memory, for example ROM, Flash, DRAM,
SRAM, disk based storage
Size - capacity and silicon area
Acess speed - core clock cycles required to read
or write a location
Architecture - Harvard (separate instruction and
data memories) or Von Neumann (unified memory
(AMBA) Bus System
AMBA defines a multilevel busing system, with a system
bus and a lower-level peripheral bus. These include two
system buses
AMBA High-Speed Bus (AHB)
Advanced Peripheral Bus (APB)
MEMORY MAP
Peripheral Memory map