Trains.com

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

How does a decoder distinguish page-mode commands from address-only commands?

861 views
2 replies
1 rating 2 rating 3 rating 4 rating 5 rating
  • Member since
    October 2015
  • 188 posts
Posted by passenger1955 on Saturday, April 15, 2017 6:40 PM
Thanks so much
  • Member since
    February 2002
  • From: Reading, PA
  • 30,002 posts
Posted by rrinker on Saturday, April 15, 2017 5:19 PM

Yes but that's OK because Register 0 is the address anyway.

Unless you have a need to handle the earliest DCC decoders which had only register mode programming (no current ones, nor any made for YEARS now have had that limitation) you don't need to implement any of that.

That the first data bit of the 'address' packet is 0 isn't something that differnetiate the address packet from a register 0 packet, it's just a byproduct of the fact that address are only 7 bits, 1-127. To make matters worse, not all command station support the same address range. Lenz for example only handle 1-99, a holdover from their pre-DCC system where the display only had 2 LED digits so could only display 0-99. There always were 7 bits reserved for the field so other manufacturers expanded that to use the whole 1-127 range.

                           --Randy


Modeling the Reading Railroad in the 1950's

 

Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.

  • Member since
    October 2015
  • 188 posts
How does a decoder distinguish page-mode commands from address-only commands?
Posted by passenger1955 on Saturday, April 15, 2017 3:59 PM

I am looking at "address-only mode" packets vs "paged mode addressing" packets, and I'm trying to understand how a decoder distinguishes one from the other. The first 2 bytes for Address-Only are: 0111C000-0DDDDDDD.  The first 2 bytes for Paged-Mode are: 0111CRRR-DDDDDDDD.  RRR can have a value of 000 (in the case of Data register 0). Couldn't these 2 commands end up looking the same?

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

Users Online

There are no community member online

Search the Community

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT
Model Railroader Newsletter See all
Sign up for our FREE e-newsletter and get model railroad news in your inbox!