beautypg.com

Primary cvs, Cvs 17, 18 extended address, Description – SoundTraxx SoundCar Technical Reference User Manual

Page 14

background image

Tsunami SoundCar Technical Reference

Page 12

CVs 17, 18
Extended Address

Description

CVs 17 and 18 comprise a “paired” CV, meaning that the two CV registers

hold one piece of data. In this case, the CV pair holds the 14-bit extended

decoder address.

CV 17 Extended Address MSB

CV 18 Extended Address LSB

A0-A15: Extended Address Value

Additional Information

The extended address allows the decoder to be assigned to one of 10,179

addresses ranging from 0xC000 to 0xE7FF.

Note: Most command stations

will only recognize addresses 0001 to 9999. The extended address will only

be recognized by the decoder when bit 5 (Extended Address Mode Enable)

of CV 29 (Configuration Register 1) is set to 1. Once this bit is set, the

decoder will not recognize its primary address until CV 29, bit 5, is cleared.

CV 17 contains the most significant byte and must be loaded with values

within the range of 0xC0 and 0xE7. CV 18 contains the least significant byte

and may contain any value.

To determine the extended address value, add the desired four-digit

extended address to the number 49152. Divide the sum by 256. Program

CV 17 with the quotient value and CV 18 with the remainder value.

Example: Calculate CV 17 and 18 register values for extended address 7152.

1. 7152 + 49152 = 56304

2. 56304 ÷ 256 = 219 Quotient; 240 Remainder

3. Program 219 into CV 17

4. Program 240 into CV 18

Note: Most command stations will perform these calculations automatically

when setting the extended address. However, it’s helpful to know how to

derive the appropriate register values.

Primary CVs

Bit 7

Bit 0

A15

A14

A13

A12

A11

A10

A9

A8

Bit 7

Bit 0

A7

A6

A5

A4

A3

A2

A1

A0