ST7001 RS232C Control
Specification: Rev.1.01
Marantz
RS232C Control Specification
for
ST7001
Category
Document Version
: Stereo Tuner
: 1.01
Date
Number of Page
: 2006/08/10
: 14
Marantz America, Inc. 2006
All rights are reserved. Reproduction in whole or in part is prohibited without the written consent of copyright.
All specifications might be subject to change without notice.
RS232C Control Specification RS232C Control Specification Page: 2 / 14
Document Version [1.01]
Table of Contents
Global Description ................................................................................................................................................ 3
1.
1-1. Overview........................................................................................................................................................... 3
1-2. Block Diagram.................................................................................................................................................. 3
1-3. Interface connection specification of the product........................................................................................... 3
1-4. Assumptions and Dependencies.................................................................................................................... 3
2. Detailed Description..............................................................................................................................................4
2-1. Connection format ........................................................................................................................................... 4
2-1-1. Physical connection................................................................................................................................. 4
2-1-1-1. Data transmission sequence from Host to Slave ..........................................................................4
2-1-1-2. Data transmission sequence from Slave to Host ..........................................................................4
2-2. Transmission data format................................................................................................................................ 5
2-2-1. Transmission data format from Host to Slave........................................................................................ 5
2-2-1-1. Form1: Command ........................................................................................................................... 5
2-2-1-2. Form2: Status request ..................................................................................................................... 5
2-2-2. Transmission data format from Slave to Host........................................................................................5
2-2-2-1. Form1: ACK/NAK ............................................................................................................................ 5
2-2-2-2. Form2: Status answer and Auto status feedback.......................................................................... 5
2-3. The transaction sequences and the regulations............................................................................................ 6
2-3-1. The transaction sequences..................................................................................................................... 6
2-3-2. The transaction regulations..................................................................................................................... 6
2-3-3. Specification of Auto status feedback ..................................................................................................... 6
2-3-4. Example of the transactions.................................................................................................................... 6
2-3-5. Examples of the handshaking flowchart ................................................................................................7
2-3-5-1. Example of successful handshaking.............................................................................................. 7
2-3-5-2. Examples of handshaking error...................................................................................................... 7
3. Recommendations of Command, Status and Layer definition..................................................................... 8
4. Definitions of Command, Status and Layer......................................................................................................9
4-1. Commands....................................................................................................................................................... 9
4-1-1. Normal Command list.............................................................................................................................. 9
4-2. Status request and Status answer list...........................................................................................................12
4-2-1. Normal Status request and Status (answer and feedback) list........................................................... 12
4-2-2. Special Status request and Status answer list .....................................................................................13
4-2-3. Layer of the statuses .............................................................................................................................14
5. Revision history...................................................................................................................................................14
Company Restricted
RS232C Control Specification RS232C Control Specification Page: 3 / 14
Document Version [1.01]
1. Global Description
1-1. Overview
A Host controller can control or watch out the product as a Slave very easily via the communication cable.
1-2. Block Diagram
* The product has D-SUB 9pin male connector.
* RS232C cable has to be the Straight type
1-3. Interface connection specification of the product
uP Interface Signal name Connection device D-Sub Pin Connecter
1-4. Assumptions and Dependencies
HOST
(Controller)
- N.C. - 1
TxD (output) 2 UART
RxD (input)
- N.C. - 4
- GND GND 5
- N.C. - 6
- N.C. - 7
- N.C. - 8
- N.C. - 9
RS232C cable (straight)
.
RS232C
Level shift driver
3
SLAVE
(The product)
Connector
D-SUB (9pin, male)
<The product connector>
S232C D-SUB (9pin,male)
Company Restricted
RS232C Control Specification RS232C Control Specification Page: 4 / 14
Document Version [1.01]
2. Detailed Description
The interface specification between the product and a Host controller is described below.
2-1. Connection format
2-1-1. Physical connection
Host (Controller) Slave (the product)
(Serial setting <RS232C basic>)
Baud Rate : 9600bps
TxD
Data Bits : 8bit
Parity : None
RxD
Stop bit : 1bit
Handshaking : None
2-1-1-1. Data transmission sequence from Host to Slave
Host (Controller) Slave (The product)
2-1-1-2. Data transmission sequence from Slave to Host
GND
TxD → RxD
RxD ← TxD
1. Host starts a data transmission from TxD.
2. Host performs the data transmission of the number of required bytes, and ends a transmission.
Host (Controller) Slave (The product)
TxD → RxD
RxD ← TxD
1. Slave starts a data transmission from TxD.
2. Slave performs the data transmission of the number of required bytes, and ends a transmission.
RxD
TxD
GND
Company Restricted
RS232C Control Specification RS232C Control Specification Page: 5 / 14
Document Version [1.01]
2-2. Transmission data format
2-2-1. Transmission data format from Host to Slave
There are two kinds of transmission data form from Host shown below.
2-2-1-1. Form1: Command
Command is a data that requests some status change.
Start character : ’@’
COMMAND : see “Command list”
End character (CR) : 0Dh
Start
‘@’
2-2-1-2. Form2: Status request
Status request is a data that requests an answer of some status.
Start character : ’@’
Request status : see “Status request list”
Request character : ‘?’
End character (CR) : 0Dh
Start
‘@’
2-2-2. Transmission data format from Slave to Host
There are two kinds of transmission data form from Slave shown below.
2-2-2-1. Form1: ACK/NAK
ACK is a reply data from Slave when Slave got an acceptable command data from Host.
(ACK is sent to Host when Slave has no related status by the Command.)
Start character : ’@’, ACK : 06h, End character (CR) : 0Dh
‘
@
NAK is a reply data from Slave when Slave got an incorrect Command data, Status request data or
some other data from Host.
Start character : ’@’, NAK : 15h, End character (CR) : 0Dh
2-2-2-2. Form2: Status answer and Auto status feedback
Status answers are reply data when Slave got an acceptable Request status or Command data from
Host. Auto status feedbacks are sent to Host data when a Slave’s status is changed.
Start character : ’@’
Answer character : see “Status list”
End character (CR) : 0Dh
Start
‘@’
Command
“xxx:”+”...”
Request status
“xxx:?”+”...”
ACK
r
06h
’
NAK
r
15h
‘
@
’
Status
“xxx:”+”...”
End
0Dh
End
0Dh
CR
0Dh
CR
0Dh
End
0Dh
Company Restricted