TrainLayout

From Custard
Jump to: navigation, search

File:Belgorod map.png

Contents

Control

DCC

DCC With Arduino

DCC Receive Routine

Extract from:

//------------------------------------------------------------------------
32 	// DCC Receive Routine
33 	//
34 	// Howto: uses two interrupts: a rising edge in DCC polarity triggers INT0;
35 	// in INT0, Timer2 with a delay of 87us is started.
36 	// On Timer2 Compare B Match the level of DCC is evaluated and
37 	// parsed.
38 	//
39 	// |<-----116us----->|
40 	//
41 	// DCC 1: _________XXXXXXXXX_________XXXXXXXXX_________
42 	// ^-INT0
43 	// |----87us--->|
44 	// ^Timer-INT: reads zero
45 	//
46 	// DCC 0: _________XXXXXXXXXXXXXXXXXX__________________
47 	// ^-INT0
48 	// |----------->|
49 	// ^Timer-INT: reads one
50 	//
51 	//------------------------------------------------------------------------

Digitrax

Board

  • Width: 1220
  • Depth: 606

Modelling

Belgorod

STANOX codes

Personal tools