Ver.3.09 |
|
Data : Mar.24.2008 | 6 page of 50 |
1.3Command format and answer format
This unit shall be based on commands each of which consists of a data row ( some commands are without a PC ) composed of command codes ( CC ) and parameter codes ( PC ) . The
Here are the formats. |
|
|
|
Commands : <STX> <CC> <PC0> <PC1> <PC2> | > <PCn> <ETX> <BCCH> | ||
<BCCL> |
|
|
|
STX (Start of TeXt) | : | 02h |
|
CC (Command Code) | : Command code |
| |
PC (Parameter Code) | : Defined for each command | ||
|
| ( contents and number of parameters ) | |
ETX (End of TeXt) | : 03h |
| |
BCC (Block Check Character) | : |
|
|
CC + PC0 + PC1 + PC2 + | |||
(Each of X and Y | is 4 | bit long ) | X , Y=0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F |
BCCH | ( | = X as converted to an ASCII code | |
BCCL | ( | = Y as converted to an ASCII code | |
Answers : <STX> <RC> <AC> <PC0> <PC1> <PC2> | |||
STX (Start of TeXt) | : | 02h |
|
RC (Reply Code) | : | Reply code (=Command code) | |
AC (Answer Code) | : Answer code |
| |
PC (Parameter Code) | : Defined for each command | ||
|
| ( contents and number of parameters ) | |
ETX (End of TeXt) | : 03h |
| |
BCC (Block Check Character) | : |
|
|
RC +AC + PC0 + PC1 + PC2 + | |||
(Each of X and Y is 4 bit long) | X , Y=0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F | ||
BCCH | ( | = X as converted to an ASCII code | |
BCCL | ( | = Y as converted to an ASCII code |
1.4Protocol for data transmission and reception
This unit is based on
1)The host shall select commands for this unit and transmit them to this unit. Command interval time is MIN 40µsec.
2)Having issued a command, the host shall receive an answer from this unit, then issue the next command.
3)The host shall analyze the RC, AC, and PC as answers given and decide whether the command has been normally executed.
4)The host shall give an answer to a command that gives operational instructions, then issue a status request command, and decide whether this unit has finished operating with
Copyright 2008