Enhanced Time Processing Unit (eTPU2)
29-72
Freescale Semiconductor
PXR40 Microcontroller Reference Manual, Rev. 1
•
TCR1: Can be exported to or imported from the STAC bus. TCR1 can only be imported from
STAC bus when the engine is not in Angle Mode. When TCR1 is imported from the STAC bus, it
becomes read-only for the microcode and reflects the imported values. For details refer to
Section 29.3.5.1, Timer Count Register 1 - TCR1
•
TCR2: Can be exported to or imported from the STAC bus. TCR2 can only be imported from the
STAC bus when engine is not in Angle Mode. When TCR2 is imported from the STAC bus, it
becomes read-only for the microcode, and reflects the imported values. When exported to the
STAC bus, TCR2 can work in either Angle Mode or as a free running counter associated with the
TCRCLK signal. For details refer to the
eTPU Reference Manual
.
Proper configuration of the following bits is necessary to determine what can drive the STAC bus:
ETPUTBCR[AM] and ETPUREDCR[REN2, RSC2], according to
.
Note that Angle Mode is not available for STAC bus clients: configuring both at the same time brings
unspecified results. When TCR2 is a stand-alone counter or a STAC Bus server, the same value that is
driven to the internal TCR2 bus is also exported to the STAC bus (either Time Count or Angle).
STAC bus configuration is provided by the ETPUREDCR bits REN1/2 and RSC1/2. REN1/2 enable the
STAC interface to interact with the resource (either TCR1 or TCR2 bus). RSC1/2 configure the resource
(either TCR1 or TCR2 bus) as Server or Client.
Each time base / angle count resource from each engine receives a unique 4-bit hard-wired address that
identifies it as a potential server. This address is used by the STAC Controller to coordinate which resource
will drive the bus at a given STAC time-slot. For any time-slot there is a server driving the bus upon
selection of the STAC Controller, and there may be a client linked to that server by the ETPUREDCR bits
SRV1/2 on each Engine. When the server address on the STAC bus matches the value in SRV1/2, the client
will load the STAC information into the appropriate resource. For information on eTPU STAC Bus
configuration refer to
Section 29.2.6.4, ETPUREDCR - eTPU STAC Configuration Register
.
The eTPU does not include a STAC Controller module, which is instantiated once in the system
integration.
NOTE
Setting a timebase as client of itself is not allowed.
Table 29-20. STAC Bus and Host Read Sources
AM
(ETPUTBCR)
REN2,RSC2
(ETPUREDCR)
TCR2 Bus Source
(Host read of
ETPUTB2R)
STAC
Bus Driver
00
0x (disabled)
TCR2/Time
x
01, 10 or 11
0x (disabled)
TCR2/Angle
x
00
11 (Server)
TCR2/Time
TCR2/Time
01, 10 or 11
11 (Server)
TCR2/Angle
TCR2/Angle
01, 10 or 11
10 (Client)
reserved
1
1
STAC client configuration in Angle Mode is also not allowed for TCR1.
Summary of Contents for PXR4030
Page 1: ...PXR40 Microcontroller Reference Manual Devices Supported PXR4030 PXR4040 PXR40RM Rev 1 06 2011...
Page 30: ...PXR40 Microcontroller Reference Manual Rev 1 Freescale Semiconductor xxx...
Page 40: ...PXR40 Microcontroller Reference Manual Rev 1 xl Freescale Semiconductor...
Page 66: ...Memory Map PXR40 Microcontroller Reference Manual Rev 1 2 4 Freescale Semiconductor...
Page 120: ...Signal Descriptions 3 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Page 860: ...FlexCAN Module 24 50 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Page 1167: ...Decimation Filter Freescale Semiconductor 28 53 PXR40 Microcontroller Reference Manual Rev 1...
Page 1168: ...Decimation Filter 28 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...