Return to previous page Return to menu Go to next page

2.2 Command issuance

A command to SMPC can be issued by setting the command parameter and writing the command code to the SMPC command register if the command parameter is required after setting the SMPC status flag (SF) to "1" .
Note that when issuing an SMPC command, double issue of the command. The prevention of double command issue to SMPC can be managed with the SMPC status flag. When this flag is "1", SMPC is busy. When issuing a command, make sure that the status flag is "0", set "1" and then issue the command. The status flag is reset to "0" by SMPC when the command ends.

Command issuing method

SMPC commands can be classified according to the command execution contents, command parameters, and result parameter types, issuance procedures and result parameter acquisition methods. The classifications and corresponding commands are shown in Table 2.4 below, and examples of issuing methods according to each classification are shown in Figures 2.1 to 2.5.

 (1) Classification A After issuing a command, the master SH-2 is reset, NMI, etc.
Command to transition to exception handling
(2) Category B Command parameter setting is not required, result parameter
Commands that do not return (except OREG31)
(3) Class C command parameter setting is required, and the result parameter is
Commands that do not return (except OREG31)
(4) Class D command parameter setting is required, and result parameter is
Return SMPC interrupt when the result parameters are complete
Command to request only 

Table 2.4 Command issue classification
 Classification 
 Command 
A
MSHON,SYSRES,NMIREQ,CKCHG352,CKCHG320
B
SSHON,SSHOFF,SNDON,SNDOFF,CDON,CDOFF,RESENAB,RESDISA
C
SETTIME,SETSMEM
D
INTBACK


Return to previous page Return to menu Go to next page