Revision1.00DN-T645/625 Serial Interface Specification
Date 2002-08-301 page of 55
Specification
For
Serial Interface DN-T645/625
Denon, Ltd.
Revision1.00DN-T645/625 Serial Interface Specification
Date 2002-08-302 page of 55
Histories
Rev.DateNameDescription
1.00Aug., 30,’02J.Watanabe
Revision1.00DN-T645/625 Serial Interface Specification
Date 2002-08-303 page of 55
Contents
1Serial communication interface5
1.1Physical interface5
1.2Transfer format of serial data6
2Command format and answer format7
2.1Protocol for data transmission and reception8
Basic procedure8
Communication errors8
2.2Command / Answer sequence9
2.3List of command codes10
2.4List of answer codes11
2.5Status List11
2.6Command specification12
2.6.1 RESET command12
2.6.2 SLEEP command13
2.6.3 REQUEST PLAY STATUS command14
2.6.4 REQUEST FIRMWARE REVISION command16
2.6.5 REQUEST ERROR CODE command17
2.6.6 REQUEST TAPE INFORMATION18
2.6.7 REQUEST ESTABLISH command19
2.6.8 REQUEST MACHINE ID command20
2.6.9 REQUEST CD TOC command21
2.6.10 REQUEST TEXT DATA command22
2.6.11 Request Display Status command24
2.6.12 Request Slide Switch Status command25
2.6.13 Request Program Table command26
2.6.14 PLAY command28
2.6.15 STOP command29
2.6.16 CD PAUSE command30
2.6.17 Skip command31
2.6.18 SEARCH command 32
2.6.19 Open / Close Command33
2.6.20 Cue command34
2.6.21 Program / Direct command35
2.6.22 Track Num Entry command36
2.6.23 RANDOM command37
2.6.24 A-B command38
2.6.25 CD Sync command39
Revision1.00DN-T645/625 Serial Interface Specification
Date 2002-08-304 page of 55
2.6.26 Pitch command40
2.6.27 Pitch Set command41
2.6.28 Time command42
2.6.29 Title command43
2.6.30 Repeat command44
2.6.31 Play Mode command45
2.6.32 REC command46
2.6.33 PAUSE REC command47
2.6.34 FORWARD command48
2.6.35 REWIND command49
2.6.36 DIRECTION command50
2.6.37 MEMORY command51
2.6.38 COUNTER RESET command52
2.6.39 DOLBY command53
2.6.40 SETTING Relay Mode command54
2.6.44 REV Mode command55
Revision1.00DN-T645/625 Serial Interface Specification
Date 2002-08-305 page of 55
1 Serial communication interface
1.1 Physical interface
a) DN-645/625 has a D-sub 9 pin female connector for serial interface.
b) Table 1 indicates pin assignment of connector signals . RS-232C and RS-422A can be selected with
software switch on the DN-T645. RS-422A is not available on the DN-T625, only RS-232C.
c) Figure 1 indicates diagram of RS-232C and RS-422A.
RS-232CRS-422A
TXD
CPU
RXD
CPU
Figure 1. Serial Driver/Receiver
TXD+
TXD-
RXD+
RXD-
Revision1.00DN-T645/625 Serial Interface Specification
Date 2002-08-306 page of 55
1.2 Transfer format of serial data
- InterfaceRS-232C RS-422A selectable (DN-T645)
RS-232C (DN-T625)
- Communication systemHalf-duplex communication
- Data transfer modeStart stop synchronization
- Transfer rate9,600bps
- Start bit (ST)1 bit
- Data bit (b0-b7)8 bits
- Parity (P)Even number
- Stop bit (SP)1 bit
- Transfer dataASCII code
- Control charactersSTX(0x02)
ETX(0x03)
NAK(15h)
ACK(06h)
ST b0 b1 b2 b3 b4 b5 b6 b7 P ST
11/9600 sec
Figure 2. Command Data Array
Revision1.00DN-T645/625 Serial Interface Specification
Date 2002-08-307 page of 55
2 Command format and answer format
The DN-T645/625 uses commands each of which consists of a data row (some commands don't need PC) composed
of command codes (CC) and parameter codes (PC). The host shall be designed to send block check characters
(BCC) following ETX, with the data row enclosed in STX (text start: 0x02) and ETX (text termination: 0x03).
The DN-T645/625 shall complete command receive with correct BCC codes.
STX (Start of TeXt)0x02
CC (Command Code)Command code
PC (Parameter Code)Number of parameters is defined for each command.
ETX (End of Text )0x03
BCC (Block Check Character)CC + PC0 + PC1 + PC2 + + PCn + ETX = XY (hex)
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 is an ASCII code converted from X (higher 4 bits of sum) and BCCL is converted from Y (lower 4 bit of sum).
BCCH and BCCL are ASCII coded data. If a three digit check sum is calculated, ignore the hundredths place.
STX (Start of TeXt)0x02
RC (Reply Code) Reply code (=Command code)
AC (Answer Code)Answer code
PC (Parameter Code)Number of parameters is defined for each command.
ETX (End of TeXt)0x03
BCC (Block Check Character)CC + PC0 + PC1 + PC2 + + PCn + ETX = XY (hex)
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 is an ASCII code converted from X (higher 4 bits of sum) and BCCL is converted from Y (lower 4 bit of sum).
BCCH and BCCL are ASCII coded data. If a three digit check sum is calculated, ignore the hundredths place.
Revision1.00DN-T645/625 Serial Interface Specification
Date 2002-08-308 page of 55
2.1 Protocol for data transmission and reception
This device’s serial protocol is based on half-duplex communication. Therefore the host shall transmit
commands and receive answers according to the following procedure.
Basic procedure
1) The host selects a preferred command and transmit s codes to the device. The host shall not send each
byte within 40µsec because the device cannot receive within 40µsec after previous byte.
2) The host shall wait for the device’s answer before transmitting the next command. Reading RC, AC
and PC bytes, the host can get acknowledge whether the device received previous command correctly or not.
3) When transmitting a command which causes some function, the host shall get device’s status that the
device becomes ready. The Read Status command is used for this purpose.
4) The host shall complete the transmission of one command within 40 msec.
5) The device shall return answer within 5 seconds.
6) The device cannot receive any command within 2 second after the power is turned on.
Communication errors
1) In case of a communication error such as overrun, framing, or parity error, the device returns a NAK
(15h) code within 80ms ec from the start of command transmission. When a NAK (0x15) code is received,
the host shall transmit the previous command again immediately.
2) If the host detects communication error while receiving the answer, the host shall send a NAK (0x15)
code within 80ms ec from beginning of receipt. The device sends the same answer again after receiving
a NAK code within 80msec.
3) The host shall send the previous command when there is no answer from device.
Revision1.00DN-T645/625 Serial Interface Specification
STX
HOST
DEVICE
Date 2002-08-309 page of 55
2.2 Command / Answer sequence
Figure 3 is and example of command and answer sequence for DN-T645/625.
Command Transmi ssion
40msec
Check BCC
Max
CC
PC0
PC1
PC2
PCn
ETX
BCC
STX
RC
AC
PC0
PC1
PCn
ETX
BCC
Min 40 µsec
Check BCC
Max 5 sec.
Answer Transmission
Next Command Transmission
STX
CC
PC0
Figure 3. Command Sequence
Revision1.00DN-T645/625 Serial Interface Specification
Date 2002-08-3010 page of 55
2.3 List of command codes
DestinationNo.CommandCode
(ASCII)
1 Reset 0x20(‘SP’) X Reset the device.
2 Sleep 0x21(‘!’) X Force the device to Sleep mode.
3 Request PLAY Status 0x30(‘0’) X X Request CD player and Deck status.
4 Request Firmware Rev. 0x31(‘1’) X Request the firmware revision code.
5 Request Error Code 0x32(‘2’) X Request the error code.
6 Request Tape Info. 0x34(‘4’) X Request the Tape information.
7 Request ESTABLISH 0x35(‘5’) X Request the setup contents (such as
8 Request Machine ID 0x36(‘6’) X Request the machine ID.
9 Request CD TOC 0x37(‘7’) X Request CD’s TOC data
10 Request Text Data 0x38(‘8’) X Request CD-text/MP3 text data
11 Request Display Status 0x39(‘9’) X Request Display Status data
12 Request Slide SW Status 0x3A(‘:’) X Request Slide SW Status data.
13 Request Program Table 0x3B(‘;’) X Request Program Num Table.
14 Play 0x40(‘@’) X X Start playback or recording.
15 Stop 0x41(‘A’) X X Stop playback or recording.
16 Pause 0x42(‘B’) X Playback Pause.
17 Skip 0x43(‘C’) X Skip to the other track or music.
18 Search 0x44(‘D’) X Search with audio output.
19 Open/Close 0x45(‘E’) X
20 Cue 0x46(‘F’) X
21 Program / Direct 0x47(‘G’) X
22 Track Num Entry 0x48(‘H’) X
23 Random 0x4B(‘K’) X
24 A-B 0x4C(‘L’) X
25 CD Sync 0x4D(‘M’) X
26 Pitch 0x4E(‘N’) X
27 Pitch Set 0x4F(‘O’) X
28 Time 0x50(‘P’) X
29 Title 0x51(‘Q’) X
30 Repeat 0x52(‘R’) X
31 Play Mode 0x53(‘S’) X
32 Record standby 0x62(‘b’) X Standby to record.
33 Rec Pause 0x63(‘c’) X Pauses Recording.
34 Forward 0x64(‘d’) X Start Fast forward.
35 Rewind 0x65(‘e’) X Start Rewind.
36 Direction 0x66(‘f’) X Changes the tape transport direction.
37 Memory 0x67(‘g’) X Switch the counter memory mode.
38 Counter Reset 0x68(‘h’) X Reset tape counter.
39 Dolby 0x69(‘i’) X Dolby setting.
40 Relay Mode 0x6D(‘m’) X Setting modes .
41 Rev Mode 0x6E(‘n’) X
Table 2. Command list
SystemCDTape
switch position and mode select).
Operation
Revision1.00DN-T645/625 Serial Interface Specification
Date 2002-08-3011 page of 55
2.4 List of answer codes
No.StatusCode
1 Command OK 0x20(SP) Received the command correctly.
2 Invalid 0x30(‘0’) Received invalid command or parameter.
3 Format Error 0x31(‘1’) Received inappropriate format command.
4 None track requested 0x32(‘2’) Requested track does not exit.
5 None time requested 0x33(‘3’) Requested time does not exit.
6 Condition Error0x35(‘5’)Condition error occurs.
(ASCII)
Table 3. Answer code list
Description
2.5 Status List
DescriptionNo.StatusCode
(ASCII)
1 Ready 0x30 (‘0’) X X X Device is ready to receive a command.
2 Not Ready 0x31 (‘1’) X X X Device is not ready to be operated.
3 CD Sync 0x32 (‘2’) X CD Synchronizing.
4 Sleep 0x33 (‘3’) X Sleeping Device.
5 Play 0x41 (‘A’) X X Playing.
6 Stop 0x42 (‘B’) X X Under stop.
7 Pause 0x43 (‘C’) X Pausing CD.
8 No Media 0x44 (‘D’) X X There is no CD or no tape in the device.
9 Search * 0x45 (‘E’) X X Slow search playing.
10 CD Error 0x46 (‘F’) X CD Error.
11 Disc Loading 0x47 (‘G’) X Under disc loading, now reading TOC or
12 Disc Loading complete 0x48 (‘H’) X Disc loading complete. Device TOC reads
13 Tray Opening 0x49 (‘I’) X Disc tray now opening.
14 Tray Closing 0x4A (‘J’) X Disc tray now closing.
15 Scan Play 0x4B (‘K’) X Fast play, forward or reverse direction.
16 Pause Cue 0x4C (‘L’) X Pause with Cueing.
17 Servo on 0x4D (‘M’) X Servo on.
18 Disc Read Error 0x4E (‘N’) X Disc Read Error.
19 Recording 0x61 (‘a’) X Recording
20 Rec Pause 0x62 (‘b’) X Pause recording.
21 Rec Mute 0x63 (‘c’) X Record muting.
22 Forward 0x64 (‘d’) X Fast forward.
23 Rewind 0x65 (‘e’) X Fast rewinding.
24 Cue 0x66 (‘f’) X Under cue.
25 Review 0x67 (‘g’) X Under review.
26 Play Mute 0x68 (‘h’) X Under play mute (review after music search)
System CDTape
pass table.
finish or pass table read finish.
Table 4. Status list
Revision1.00DN-T645/625 Serial Interface Specification
Date 2002-08-3012 page of 55
2.6 Command specification
2.6.1 RESET command
This command resets the device. After a
RESET
command, the device will perform some operations
for reset and return an Answer code. The device will then be reset.
This device cannot receive any commands within 2 seconds after this command is sent.
•
After a Reset command, the host shall wait for the device to become ready status. The device returns
a NOT READY status for a Request Status command before ready status has occurred.
Revision1.00DN-T645/625 Serial Interface Specification
Date 2002-08-3013 page of 55
2.6.2 SLEEP command
The SLEEP command forces the device to enter sleep mode. The device will stop all operations, turn off
the display and return an Answer code. To wake up, send Operation command (ex. Play, Pause, Stop…).