![Infineon Technologies TC1784 User Manual Download Page 709](http://html.mh-extra.com/html/infineon-technologies/tc1784/tc1784_user-manual_2055446709.webp)
TC1784
Peripheral Control Processor (PCP)
User´s Manual
10-44
V1.1, 2011-05
PCP, V2.09
10.9
PCP Error Handling
The PCP contains a number of fail-safe mechanisms to ensure that error conditions are
handled gracefully and predictably. In addition to providing an extra level of system
robustness suitable for high integrity and safety-critical systems, these mechanisms can
often ease the task of finding programming errors during the development process.
Whenever an error is detected, the channel program that was executing exits and the
PCP_ES register is updated with information to allow determination of the error that
occurred, the instruction address, and the channel program that was executing when the
error occurred (see
10.9.1
PRAM Protection Violation
PRAM can be considered as being split into a number of distinct areas (see
The default configuration of the PCP allows the PCP to use PRAM as a single area.
While this default configuration allows complete flexibility regarding the use of PRAM,
this flexibility also introduces the possibility of invalid PCP operation as a result of the
following issues:
•
Any channel program is allowed to write to any PRAM location (including any location
in the CSA). This means that a channel program may be inadvertently programmed
to corrupt the context save region or PRAM storage belonging to another channel,
causing invalid operation of the corrupted channel when it next executes.
•
Generation of an interrupt request to the PCP with a priority number that would cause
loading of a context from outside the CSA will cause the spurious execution of a
channel program with an invalid context loaded from outside the CSA.
10.9.1.1 Enforced PRAM Partitioning
The lowest of the PRAM areas is the CSA (see
) which is used for storing
context information for each active channel while the channel program is not actually
executing.
To avoid spurious PCP operation as a result of programming errors, the PCP can be
optionally configured via the global PCP control and status register (PCP_CS) to enforce
strict partitioning of PRAM between the CSA and the remainder of PRAM. PRAM
partitioning is selected by programming PCP_CS.PPE = 1 and the size of the CSA in use
is selected via the PCP_CS.PPS bit field (see
). When PRAM partitioning has
been enabled, a PCP Error will be generated on either one of the following events:
•
A channel program executes a PRAM write instruction with a target area within the
CSA. This prevents a channel from corrupting the context save region of any other
channel.
Summary of Contents for TC1784
Page 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Page 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Page 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Page 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Page 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...