
B–61863E–1/06
C. DIFFERENCES BETWEEN THE PMC-SC
AND THE PMC-N, AND HOW TO
MIGRATE FROM THE PMC-N/NA TO
THE PMC-SC/SC3/SC4/NB/NB2
APPENDIX
481
Locked state
Run state
Ready state
Wait state Stopped state
os_chng_pri
(plock)
os_puls_flg OR os_sign_flg
(pwakeup)
-----
(pstart)
-----
(pstop)
os_wait_flg
(pwait)
os_chng_pri
(punlock)
(The functions in parentheses are used for the PMC-N/NA.)
(1) The PMC-SC/SC3/SC4 or PMC-NB/NB2 does not have a command
for stopping tasks on the PMC-SC/SC3/SC4 or PMC-NB.
(2) To move a task on the PMC-SC/SC3/SC4 or PMC-NB to the stopped
state as with the PMC-N/NA, create programs in such a manner that
the PMC-SC/SC3/SC4 or PMC-NB is placed in the wait state
(os_wait_flg) and tasks of the PMC-SC/SC3/SC4 or PMC-NB are
performed from the beginning when another task sends the signal
(os_puls_flg or os_sign_flg) to do so.
(3) When the entry function of a task relinquishes control, the task is
placed in the stopped state permanently.
C.1
STATE TRANSITION
OF TASKS