![Infineon Technologies TC1784 Скачать руководство пользователя страница 673](http://html.mh-extra.com/html/infineon-technologies/tc1784/tc1784_user-manual_2055446673.webp)
TC1784
Peripheral Control Processor (PCP)
User´s Manual
10-8
V1.1, 2011-05
PCP, V2.09
10.4
PCP Programming Model
The PCP programming model can be viewed as a set of autonomous programs, or tasks,
called channel programs, that share the processing resources of the PCP. Channel
programs may be short and simple, or very complex; but they can coexist persistently
within the PCP.
From the programming point of view, the individual parts of a channel program are its
instruction sequence in the CMEM and its context in the PRAM. It uses the instruction
set and the GPRs (R0 - R7) of the PCP Processor Core to perform the necessary
operations, and to communicate with the various resources of the on-chip and off-chip
system depending on its task in the application.
These parts of the programming model are discussed in the following sections (with the
obvious exception of the system environment outside of the scope of the PCP).
10.4.1
General Purpose Register Set of the PCP
The program-accessible register file of the PCP is composed of eight 32-bit General
Purpose Registers (GPRs). These registers are all accessible by PCP programs directly
as part of the PCP instruction set. Source and destination registers must be specified in
most instructions. These registers are referenced to in this document as Rn or R[n],
where n is in the range 0 to 7.
Table 23
Directly Accessible Registers
Register
Implicit Use
Description
R0
Accumulator
Implicit target for some arithmetic and logical instructions
R1
–
32-bit general-use register
R2
Return
Address
32-bit general-use register
R3
–
32-bit general-use register
R4
SRC (Source) Source Pointer for BCOPY/COPY instructions
R5
DST
(Destination)
Destination Pointer for BCOPY/COPY instruction
R6
CPPN/SRPN/
TOS/CNT1
CNT1:
Transfer Count for COPY
TOS:
Type-of-Service
SRPN:
8-bit field used for posting interrupt on EXIT
instruction
CPPN:
Current PCP Priority Number
R7
DPTR/Flags
PRAM Data Pointer (DPTR) and Status Flags
Содержание TC1784
Страница 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Страница 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Страница 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...