Chapter 10 XGATE (S12XGATEV3)
MC9S12XE-Family Reference Manual , Rev. 1.19
448
Freescale Semiconductor
Operation
Attempts to set a semaphore. The state of the semaphore will be stored in the Carry-Flag:
1 = Semaphore is locked by the RISC core
0 = Semaphore is locked by the S12X_CPU
In monadic address mode, bits RS[2:0] select the semaphore to be set.
CCR Effects
Code and CPU Cycles
SSEM
Set Semaphore
SSEM
N
Z
V
C
—
—
—
∆
N:
Not affected.
Z:
Not affected.
V:
Not affected.
C:
Set if semaphore is locked by the RISC core; cleared otherwise.
Source Form
Address
Mode
Machine Code
Cycles
SSEM #IMM3
IMM3
0
0
0
0
0
IMM3
1
1
1
1
0
0
1
0
PA
SSEM RS
MON
0
0
0
0
0
RS
1
1
1
1
0
0
1
1
PA
Because
of
an
order
from
the
United
States
International
Trade
Commission,
BGA-packaged
product
lines
and
part
numbers
indicated
here
currently
are
not
available
from
Freescale
for
import
or
sale
in
the
United
States
prior
to
September
2010:
S12XE
products
in
208
MAPBGA
packages