![Freescale Semiconductor MPC5632M Скачать руководство пользователя страница 847](http://html.mh-extra.com/html/freescale-semiconductor/mpc5632m/mpc5632m_manual_2330659847.webp)
MPC563XM Reference Manual, Rev. 1
Freescale Semiconductor
847
Preliminary—Subject to Change Without Notice
23.4.6.3
Red Line Interface
Both time bases TCR1 and TCR2 can be shared between the Engines and with other blocks in the same
MCU. Each one of both eTPU engines can drive their time bases to the Red Line (also known as Shared
Time and Count - STAC) bus, acting as a server, while any other block can capture the value into its
resources and behave like a client. For further reference about the Red Line bus operation refer to the IP
Interface - Red Line and to
Section 23.3.3.4, “ETPUREDCR - eTPU Red Line Configuration Register
.
The eTPU can export to the Red Line bus or import from the Red Line bus the following internal resources:
•
TCR1: Can be exported to or imported from the Red Line bus. TCR1 can only be imported from
RedLine bus when the engine is not in Angle Mode. When TCR1 is imported from the Red Line
bus, it becomes read-only for the microcode and reflects the imported values. For details refer to
Section 23.4.6.1, “Timer Count Register 1 - TCR1
•
TCR2: Can be exported to or imported from the Red Line bus. TCR2 can only be imported from
the RedLine bus when engine is not in Angle Mode. When TCR2 is imported from the Red Line
bus, it becomes read-only for the microcode, and reflects the imported values. When exported to
the Red Line bus, TCR2 can work in either Angle Mode or as a free running counter associated
with the TCRCLK signal. For details refer to
Section 23.4.7, “EAC - eTPU Angle Counter
Proper configuration of the following bits is necessary to determine what can drive the Red Line bus:
ETPUTBCR[AM] and ETPUREDCR[REN2, RSC2], according to
.
Note that Angle Mode is not available for Red Line bus clients: configuring both at the same time brings
unpredictable results. When TCR2 is a stand-alone counter or a Red Line Bus server, the same value that
is driven to the internal TCR2 bus is also exported to the Red Line bus (either Time Count or Angle).
Red Line bus configuration is provided by the ETPUREDCR bits REN1/2 and RSC1/2. REN1/2 enable
the Red Line 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 Red Line Controller to coordinate which
resource will drive the bus at a given Red Line time-slot. For any time-slot there is a server driving the bus
upon selection of the Red Line 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 Red Line bus matches the
Table 23-39. Red Line Bus and Host Read Sources
AM
(ETPUTBCR)
REN2,RSC2
(ETPUREDCR)
TCR2 Bus Source
(Host read of
ETPUTB2R)
Red Line
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)
Forbidden
1
1
Red Line client configuration in Angle Mode is also forbidden for TCR1.
Содержание MPC5632M
Страница 22: ...MPC563XM Reference Manual Rev 1 22 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 62: ...MPC563XM Reference Manual Rev 1 62 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 92: ...MPC563XM Reference Manual Rev 1 92 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 168: ...MPC563XM Reference Manual Rev 1 168 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 242: ...MPC563XM Reference Manual Rev 1 242 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 302: ...MPC563XM Reference Manual Rev 1 302 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 410: ...MPC563XM Reference Manual Rev 1 410 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 440: ...MPC563XM Reference Manual Rev 1 440 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 464: ...MPC563XM Reference Manual Rev 1 464 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 554: ...MPC563XM Reference Manual Rev 1 554 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 590: ...MPC563XM Reference Manual Rev 1 590 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 622: ...MPC563XM Reference Manual Rev 1 622 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 716: ...MPC563XM Reference Manual Rev 1 716 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1114: ...MPC563XM Reference Manual Rev 1 1114 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1144: ...MPC563XM Reference Manual Rev 1 1144 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1266: ...MPC563XM Reference Manual Rev 1 1266 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1316: ...MPC563XM Reference Manual Rev 1 1316 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1348: ...MPC563XM Reference Manual Rev 1 1348 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1362: ...MPC563XM Reference Manual Rev 1 1362 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1382: ...MPC563XM Reference Manual Rev 1 1382 Freescale Semiconductor Preliminary Subject to Change Without Notice ...