Denon DN-T625, DN-T645 Specification

Revision1.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 1 page of 55
Specification
For
Serial Interface DN-T645/625
Denon, Ltd.
Revision1.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 2 page of 55
Histories
Rev. Date Name Description
Revision1.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 3 page of 55
Contents
1 Serial communication interface 5
1.1 Physical interface 5
1.2 Transfer format of serial data 6
2 Command format and answer format 7
2.1 Protocol for data transmission and reception 8 Basic procedure 8 Communication errors 8
2.2 Command / Answer sequence 9
2.3 List of command codes 10
2.4 List of answer codes 11
2.5 Status List 11
2.6 Command specification 12
2.6.1 RESET command 12
2.6.2 SLEEP command 13
2.6.3 REQUEST PLAY STATUS command 14
2.6.4 REQUEST FIRMWARE REVISION command 16
2.6.5 REQUEST ERROR CODE command 17
2.6.6 REQUEST TAPE INFORMATION 18
2.6.7 REQUEST ESTABLISH command 19
2.6.8 REQUEST MACHINE ID command 20
2.6.9 REQUEST CD TOC command 21
2.6.10 REQUEST TEXT DATA command 22
2.6.11 Request Display Status command 24
2.6.12 Request Slide Switch Status command 25
2.6.13 Request Program Table command 26
2.6.14 PLAY command 28
2.6.15 STOP command 29
2.6.16 CD PAUSE command 30
2.6.17 Skip command 31
2.6.18 SEARCH command 32
2.6.19 Open / Close Command 33
2.6.20 Cue command 34
2.6.21 Program / Direct command 35
2.6.22 Track Num Entry command 36
2.6.23 RANDOM command 37
2.6.24 A-B command 38
2.6.25 CD Sync command 39
Revision1.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 4 page of 55
2.6.26 Pitch command 40
2.6.27 Pitch Set command 41
2.6.28 Time command 42
2.6.29 Title command 43
2.6.30 Repeat command 44
2.6.31 Play Mode command 45
2.6.32 REC command 46
2.6.33 PAUSE REC command 47
2.6.34 FORWARD command 48
2.6.35 REWIND command 49
2.6.36 DIRECTION command 50
2.6.37 MEMORY command 51
2.6.38 COUNTER RESET command 52
2.6.39 DOLBY command 53
2.6.40 SETTING Relay Mode command 54
2.6.44 REV Mode command 55
Revision1.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 5 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.
RS-232C RS-422A
Terminal # Signal I/O Signal I/O
1 NC - NC ­2 TxD O TxD- O 3 RxD I RxD I 4 NC - NC ­5 S.GROUND - S.GROUND ­6 NC - NC ­7 NC - TXD O 8 NC - RXD- I 9 NC - NC -
Table 1. Pin Assignment
c) Figure 1 indicates diagram of RS-232C and RS-422A.
RS-232C RS-422A
TXD
CPU
RXD
CPU
Figure 1. Serial Driver/Receiver
TXD+ TXD-
RXD+ RXD-
Revision1.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 6 page of 55
1.2 Transfer format of serial data
- Interface RS-232C RS-422A selectable (DN-T645)
RS-232C (DN-T625)
- Communication system Half-duplex communication
- Data transfer mode Start stop synchronization
- Transfer rate 9,600bps
- Start bit (ST) 1 bit
- Data bit (b0-b7) 8 bits
- Parity (P) Even number
- Stop bit (SP) 1 bit
- Transfer data ASCII code
- Control characters STX (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.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 7 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.
Here are the formats.
Commands <STX> <CC> <PC0> <PC1> <PC2> <………..> <PCn> <ETX> <BCCH><BCCL>
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.
Answers<STX> <CC> <AC> <PC0> <PC1> <PC2> <> <PCn> <ETX><BCCH><BCCL>
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.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 8 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.00 DN-T645/625 Serial Interface Specification
STX
HOST
DEVICE
Date 2002-08-30 9 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.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 10 page of 55
2.3 List of command codes
DestinationNo. Command Code
(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
System CD Tape
switch position and mode select).
Operation
Revision1.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 11 page of 55
2.4 List of answer codes
No. Status Code
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 Error 0x35(‘5’) Condition error occurs.
(ASCII)
Table 3. Answer code list
Description
2.5 Status List
DescriptionNo. Status Code
(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 CD Tape
pass table.
finish or pass table read finish.
Table 4. Status list
Revision1.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 12 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.
1) Command format
Byte/bit 7 6 5 4 3 2 1 0
0 STX (0x02) 1 Command code (‘SP’) 2 Reserve (0x00) 3 Reserve (0x00) 4 Reserve (0x00) 5 Reserve (0x00) 6 ETX (0x03) 7 BCCH (high-level) 8 BCCL (low-level)
Table 5. Reset command
2) Answer format
Byte/bit 7 6 5 4 3 2 1 0
0 STX (0x02) 1 Reply code (‘SP’) 2 Answer code (Table 3) 3 ETX (0x03) 4 BCCH (high-level) 5 BCCL (low-level)
Table 6. Reset answer
3) Special condition
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.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 13 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…).
1) Command format
Byte/bit 7 6 5 4 3 2 1 0
0 STX (0x02) 1 Command code (‘!’) 2 Reserve (0x00) 3 Reserve (0x00) 4 Reserve (0x00) 5 Reserve (0x00) 6 ETX (0x03) 7 BCCH (high-level) 8 BCCL (low-level)
Table 7. Sleep command
2) Answer format
Byte/bit 7 6 5 4 3 2 1 0
0 STX (0x02) 1 Reply code (‘!’) 2 Answer code (Table 3) 3 ETX (0x03) 4 BCCH (high-level) 5 BCCL (low-level)
3) Special condition
None
Table 8. Sleep answer
Revision1.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 14 page of 55
2.6.3 REQUEST PLAY STATUS command
Using this command, the host can get CD player information. The host shall send this command repeatedly to
sense the CD player’s status.
1) Command format
Byte/bit 7 6 5 4 3 2 1 0
0 STX (0x02) 1 Command code (‘0’) 2 CD Time Code (Elapsed: ‘0’, Remain: ‘1’, Total Remain: ‘2’) 3 Reserve (0x00) 4 Reserve (0x00) 5 Reserve (0x00) 6 ETX (0x03) 7 BCCH (high-level) 8 BCCL (low-level)
Table 9. Request CD Status command
2) Answer format
Byte/bit 7 6 5 4 3 2 1 0
0 STX (0x02)) 1 Reply code (‘0’) 2 Answer code (Table 3) 3 [System] System Status (Table 4) 4 [CD] Disc type code (Table 11) 5 [CD] Audio format code (Table 12) 6 [CD] Status code (Table 4) 7 [CD] Play mode code (Table 14) 8 [CD] Folder number (100 digits)
9 [CD] Folder number (10 digits) 10 [CD] Folder number (1 digits) 11 [CD] Track number (100 digits) 12 [CD] Track number (10 digits) 13 [CD] Track number (1 digits) 14 Reserve (0x00) 15 Reserve (0x00) 16 [CD] Elapsed / Remain time (minutes, 100 digits) 17 [CD] Elapsed / Remain time (minutes, 10 digits) 18 [CD] Elapsed / Remain time (minutes, 1 digits) 19 [CD] Elapsed / Remain time (second, 10 digits) 20 [CD] Elapsed / Remain time (second, 1 digits) 21 Reserve (0x00) 22 Reserve (0x00) 23 [Deck] Tape Status (Table 4) 24 [Deck] Tape counter Symbol (‘SP’ or ‘-‘) 25 [Deck] Tape counter 1000 digit (‘0,1,2---8,9’) 26 [Deck] Tape counter 100 digit (‘0,1,2---8,9’) 27 [Deck] Tape counter 10 digit (‘0,1,2---8,9 ’) 28 [Deck] Tape counter 1 digit (‘0,1,2---8,9’) 29 ETX (0x03) 30 BCCH (high-level) 31 BCCL (low-level)
Table 10. Request CD Status answer
Revision1.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 15 page of 55
Code Disc Type Code Audio Format
0x31(‘1’) Reserved 0x31(‘1’) Reserved 0x32(‘2’) Reserved 0x32(‘2’) Reserved 0x33(‘3’) Reserved 0x33(‘3’) MPEG 0x34(‘4’) CD-DA 0x34(‘4’) LPCM 0x35(‘5’) MP3 0x35(‘5’) Reserved 0x36(‘6’) UNKNOWN 0x36(‘6’) UNKNOWN 0x37(‘7’) CD-Text
Table 11. Disc type code Table 12. Audio format code
Ode Play mode 0x31(‘1’) Normal 0x32(‘2’) Program
0x33(‘3’) Random
Table 14. Play mode
3) Special conditions
Until the TOC, CD-text or MP3 file name is read, the device will return ‘0’ with track and time data.
Revision1.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 16 page of 55
2.6.4 REQUEST FIRMWARE REVISION command
This command requests the microprocessor firmware revision code.
1) Command format
Byte/bit 7 6 5 4 3 2 1 0
0 STX (0x02) 1 Command code (‘1’) 2 Reserve (0x00) 3 Reserve (0x00) 4 Reserve (0x00) 5 Reserve (0x00) 6 ETX (0x03) 7 BCCH (high-level) 8 BCCL (low-level)
Table 17. Request Firmware Revision command
2) Answer format
Byte/bit 7 6 5 4 3 2 1 0
0 STX (0x02) 1 Reply code (‘1’) 2 Answer code (Table 3) 3 Firmware revision 1000 digit (ASCII) 4 Firmware revision 100 digit (ASCII) 5 Firmware revision 10 digit (ASCII) 6 Firmware revision 1 digit (ASCII) 7 ETX (0x03) 8 BCCH (high-level) 9 BCCL (low-level)
Table 18. Request Firmware Revision answer
3) Special condition
None.
Revision1.00 DN-T645/625 Serial Interface Specification Date 2002-08-30 17 page of 55
2.6.5 REQUEST ERROR CODE command
With this command the host can get ERROR CODEs from the device in case something goes wrong.
1) Command format
Byte/bit 7 6 5 4 3 2 1 0
0 STX (0x02) 1 Command code (‘2’) 2 Reserve (0x00) 3 Reserve (0x00) 4 Reserve (0x00) 5 Reserve (0x00) 6 ETX (0x03) 7 BCCH (high-level) 8 BCCL (low-level)
Table 19. Request Error Code command
2) Answer format
Byte/bit 7 6 5 4 3 2 1 0
0 STX (0x02) 1 Reply code (‘2’) 2 Answer code (Table 3) 3 Error code (Newest a) 4 Error code (Newest b) 5 Error code (9th-a) 6 Error code (9th-b) 7 Error code (8th-a) 8 Error code (8th-b) 9 Error code (7th-a)
10 Error code (7th-b) 11 Error code (6th-a) 12 Error code (6th-b) 13 Error code (5th-a) 14 Error code (5th-b) 15 Error code (4th-a) 16 Error code (4th-b) 17 Error code (3rd-a) 18 Error code (3rd-b) 19 Error code (2nd-a) 20 Error code (2nd-b) 21 Error code (1st-a) 22 Error code (1st-b) 23 ETX (03h) 24 BCCH (high-level) 25 BCCH (low-level)
Table 20. Request Error Code answer
3) Special condition
If error code empty then using ‘00’. A maximum of 9 error logs are memorized.
Loading...
+ 38 hidden pages