Documente Academic
Documente Profesional
Documente Cultură
FEATURES
Debug mode
Enabled by software but requires a hardware
reset or watchdog reset/interrupt to be
disabled
Incorrect/incomplete feed sequence causes
reset/interrupt is enabled
Flag to indicate watchdog reset
Programmable 32-bit timer with internal pre
scalar
Internally resets chip if not periodically
reloaded
TIMER/COUNTER
DESCRIPTION
The Timer/Counter is designed to count
cycles of the peripheral clock (PCLK) or an
externally-supplied clock, and can optionally
generate interrupts or perform other actions
at specified timer values, based on four
match registers. It also includes four capture
inputs to trap the timer value when an input
signal transitions, optionally generating an
interrupt.
FEATURES
A 32-bit Timer/Counter with a
programmable 32-bit Prescaler.
Counter or Timer operation
Up to four 32-bit capture channels per
timer, that can take a snapshot of the timer
value when an input signal transitions.
A capture event may also optionally
generate
an interrupt.
INTERRUPTS
An interrupt is an event which stops
the master processor executing its
current instruction and handling the
interrupt with a predefined handling
mechanism Of course this can happen
asynchronously, therefore it has to be
defined how the master processor
communicates with the I/O devices.
(e.g. IfanI/Ointerrupt-handlercan be
interrupted by another I/O device)
VECTOR INTERRUPTS
This is the fastest system
The onus is placed on the requesting device to
request the interrupt, and identify itself.
The identity could be a branching address for the
desired interrupt-handling routine.
If the device just supplies an identification
number, this can be used in conjunction with a
lookup table to determine the address of the
required service routine.
Response time is best when the device requesting
service also supplies a branching address.
DISADVANTAGES
The extra chip required
Resultant increases in cost
More board space and power
consumption
Fixed priority in hardware.