Return to previous page Return to menu Go to next page

(5) Command issue exclusion process (within CD communication interface function)

The DDC function checks the flag after the command ends and performs the following exclusive processing.
(A) If the command end flag is 0, return an error without issuing a command.
(B) If 1, clear command end flag to 0 and issue command.

Exceptionally, the command end flag may only be cleared to 0 or checked.

Table 3.7 Exceptional command end flag processing
 flag 
 command 
 Only clear 0 (do not check) 
 
 ESEL 
 Soft reset (specified by the CDC_CdInit parameter) 
 EFLS 
 Abort file access (CDC_AbortFile) 
 Only check (do not clear 0) 
 ESEL 
-Get actual data size (CDC_GetActSiz) 
-Frame address search result Get (CDC_GetFadSearch)

(6) Command end flag at REJECT, WAIT

If REJECT or WAIT is returned in response to the
command, the command end flag will not be 1. For this reason, the value of the command end flag is held inside the CDC so that commands can be issued after REJECT or WAIT. The CDC function checks this value and performs exclusive processing for issuing commands.

(7) Notes on CDC library

The value of the command end flag held by the CDC is the separately linked CDC If you run the program code, inconsistencies will occur. For this reason, commands may not be issued unless the command end flag is initialized.
Please note the following points when using the CDC library.
(a) As a rule, only one program code is resident in the memory and used.
(b) When executing another program code, be sure to execute a soft reset first to initialize the
command end flag.


Return to previous page Return to menu Go to next page