
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
Freescale Semiconductor
933
24.5.9.1.7
Semaphore operations
Semaphore lock and free operations are available through eTPU microcode. For more information about
semaphores see
Section 24.5.4.4, Hardware Semaphores
. Two microinstruction fields control semaphore
operations: FL (1 bit) and SMPR (2 bits). Serviced channel sees four semaphores, selected by field SMPR.
When freeing a semaphore, the field SMPR has no meaning. This is because only one semaphore can be
locked at a time by each engine, so when freeing a semaphore it is not necessary to specify its number.
NOTE
If microcode tries to lock a semaphore already locked for the same engine,
the semaphore continues locked for the engine and the SMLCK branch
condition resolves as true.
24.5.9.2
ALU/MDU operations
ALU/MDU microoperations mostly comprises two sources, one destination and one operation. The
operation is generally selected through fields ALUOP, ALUOPI or SHF. In formats where there is no
operation selection field (ALUOP, ALUOPI or SHF), the operation performed is always addition;
however, it is possible to perform subtraction, increment or decrement using fields BINV (see
Section 24.5.9.2.4, B-Source inversion
) and CIN (see
Section 24.5.9.2.5, Carry-in Control
24.5.9.2.1
Source and destination register set selection
Microcode field T4ABS allows selection of a source from either one of two register sets, shown in
. The same applies to T2ABD, used for ALU destination selection with other two register sets,
. Microinstruction fields ABSE and ABDE control the register set selection for
source and destination, respectively, when available at the format. In formats without ABSE/ABDE, the
field T4BBS determines the register sets used by T2ABD and T4ABS, as shown in
Microinstructions Without Fields ABSE and ABDE
Table 24-76. DIOB Post-Increment / Pre-Decrement – STC
STC
Meaning
00
Post-Increment of DIOB
01
Pre-Decrement of DIOB
10
No Increment/Decrement (normal access)
11
No SPRAM Access
1
1
Also disables Zero SPRAM operation
Table 24-77. Semaphore operations fields
Field
Meaning
FL
0 = free semaphore,
1 = lock semaphore
SMPR
semaphore number selector
Содержание MPC5644A
Страница 2: ...MPC5644A Microcontroller Reference Manual Rev 6 2 Freescale Semiconductor...
Страница 24: ...MPC5644A Microcontroller Reference Manual Rev 6 24 Freescale Semiconductor...
Страница 26: ...MPC5644A Microcontroller Reference Manual Rev 6 26 Freescale Semiconductor...
Страница 52: ...Introduction MPC5644A Microcontroller Reference Manual Rev 6 52 Freescale Semiconductor...
Страница 56: ...Memory Map MPC5644A Microcontroller Reference Manual Rev 6 56 Freescale Semiconductor...
Страница 130: ...Device Performance Optimization MPC5644A Microcontroller Reference Manual Rev 6 130 Freescale Semiconductor...
Страница 204: ...Multi Layer AHB Crossbar Switch XBAR MPC5644A Microcontroller Reference Manual Rev 6 204 Freescale Semiconductor...
Страница 212: ...Peripheral Bridge PBRIDGE MPC5644A Microcontroller Reference Manual Rev 6 212 Freescale Semiconductor...
Страница 558: ...System Integration Unit SIU MPC5644A Microcontroller Reference Manual Rev 6 558 Freescale Semiconductor...
Страница 582: ...Frequency modulated phase locked loop FMPLL MPC5644A Microcontroller Reference Manual Rev 6 582 Freescale Semiconductor...
Страница 766: ...Enhanced Time Processing Unit eTPU2 MPC5644A Microcontroller Reference Manual Rev 6 766 Freescale Semiconductor...
Страница 1228: ...Decimation Filter MPC5644A Microcontroller Reference Manual Rev 6 1228 Freescale Semiconductor...
Страница 1236: ...System Information Module and Trim SIM MPC5644A Microcontroller Reference Manual Rev 6 1236 Freescale Semiconductor...
Страница 1250: ...Cyclic Redundancy Checker CRC Unit MPC5644A Microcontroller Reference Manual Rev 6 1250 Freescale Semiconductor...
Страница 1336: ...Deserial Serial Peripheral Interface DSPI MPC5644A Microcontroller Reference Manual Rev 6 1336 Freescale Semiconductor...
Страница 1388: ...Enhanced Serial Communication Interface ESCI MPC5644A Microcontroller Reference Manual Rev 6 1388 Freescale Semiconductor...
Страница 1440: ...FlexCAN Module MPC5644A Microcontroller Reference Manual Rev 6 1440 Freescale Semiconductor...
Страница 1624: ...FlexRay Communication Controller FlexRay MPC5644A Microcontroller Reference Manual Rev 6 1624 Freescale Semiconductor...
Страница 1670: ...JTAG Controller JTAGC MPC5644A Microcontroller Reference Manual Rev 6 1670 Freescale Semiconductor...
Страница 1692: ...Nexus Port Controller NPC MPC5644A Microcontroller Reference Manual Rev 6 1692 Freescale Semiconductor...
Страница 1701: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 Freescale Semiconductor 1701...
Страница 1702: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 1702 Freescale Semiconductor...