{ значения адресов управляющих регистров DSP									}
.const  	Sys_Ctrl_Reg					=	0x3FFF;
.const  	Dm_Wait_Reg						=	0x3FFE;
.const  	Tperiod_Reg						=	0x3FFD;
.const  	Tcount_Reg						=	0x3FFC;
.const  	Tscale_Reg						=	0x3FFB;
.const  	Sport1_Ctrl_Reg				= 	0x3FF2;
.const  	Sport1_Sclkdiv					= 	0x3FF1;
.const  	Sport1_Rfsdiv					=	0x3FF0;
.const  	Sport1_Autobuf_Ctrl			= 	0x3FEF;
.const  	Sport0_Ctrl_Reg				= 	0x3FF6;
.const  	Sport0_Sclkdiv					= 	0x3FF5;
.const  	Sport0_Rfsdiv					=	0x3FF4;
.const  	Sport0_Autobuf_Ctrl			=	0x3FF3;
.const 	Prog_Flag_Comp_Sel_Ctrl    =	0x3FE6;
.const 	Prog_Flag_Data             =	0x3FE5;
.const 	BDMA_Word_Count            =	0x3FE4;
.const 	BDMA_Control               =	0x3FE3;
.const 	BDMA_External_Address      =	0x3FE2;
.const 	BDMA_Internal_Address      =	0x3FE1;

{ адреса переменных в памяти программ драйвера DSP							}
.const 	ProgramBaseAddress      	=	0x400;
.const 	VariableBaseAddress    		=	0x30;
.const	ProgramBaseAddressAddr		= 	VariableBaseAddress + 0x0;
.const	TargetAddr						= 	VariableBaseAddress + 0x1;
.const	LabelAddr						= 	VariableBaseAddress + 0x6;
.const	VersionAddr						= 	VariableBaseAddress + 0x9;

.const	TMode1Addr						= 	VariableBaseAddress + 0xA;
.const	TMode2Addr                 = 	VariableBaseAddress + 0xB;
.const	TestLoadVarAddr            = 	VariableBaseAddress + 0xC;
.const	ReadyAddr						= 	VariableBaseAddress + 0xD;
.const	CommandAddr						=	VariableBaseAddress + 0xE;
.const	ImaskValueAddr					=	VariableBaseAddress + 0xF;
.const	InputClockSourceAddr			=	VariableBaseAddress + 0x10;

{ диапазон адресов 0x011-0x1F - зарезервирован								}

.const	ControlTableLenghtAddr		=	VariableBaseAddress + 0x20;
.const	InputSampleAddr				=	VariableBaseAddress + 0x21;
.const	InputChannelAddr				=	VariableBaseAddress + 0x22;
.const	InputRateAddr					=	VariableBaseAddress + 0x23;
.const	InterKadrDelayAddr			=	VariableBaseAddress + 0x24;
.const	FirstSampleDelayAddr			=	VariableBaseAddress + 0x25;

.const	InputEnableAddr				=	VariableBaseAddress + 0x26;
.const	InputFifoBaseAddressAddr	=	VariableBaseAddress + 0x27;
.const	InputFifoLengthAddr			=	VariableBaseAddress + 0x28;
.const	CurInputFifoLengthAddr		=	VariableBaseAddress + 0x29;
.const	InputFifoLengthOver2Addr	=	VariableBaseAddress + 0x2A;

.const	IsCorrectionEnabledAddr		=	VariableBaseAddress + 0x2B;

.const	InputTypeAddr					=	VariableBaseAddress + 0x2C;
.const	SynchroTypeAddr				=	VariableBaseAddress + 0x2D;
.const	SynchroAdTypeAddr				=	VariableBaseAddress + 0x2E;
.const	SynchroAdModeAddr				=	VariableBaseAddress + 0x2F;
.const	SynchroAdChannelAddr			=	VariableBaseAddress + 0x30;
.const	SynchroAdPorogAddr			=	VariableBaseAddress + 0x31;
.const	SynchroAdStepAddr				=	VariableBaseAddress + 0x32;

.const	CorrectableInputChannelAddr	=	VariableBaseAddress + 0x33;

{ диапазон адресов 0x34-0x3F - зарезервирован								}

.const	OutputSampleAddr				=	VariableBaseAddress + 0x40;
.const	Sclk0DivAddr					=	VariableBaseAddress + 0x41;
.const	OutputRateAddr					=	VariableBaseAddress + 0x42;
.const	OutputEnableAddr				=	VariableBaseAddress + 0x43;
.const	OutputFifoBaseAddressAddr	=	VariableBaseAddress + 0x44;
.const	OutputFifoLengthAddr			=	VariableBaseAddress + 0x45;
.const	CurOutputFifoLengthAddr		=	VariableBaseAddress + 0x46;
.const	OutputFifoLengthOver2Addr	=	VariableBaseAddress + 0x47;

{ диапазон адресов 0x48-0x4C - зарезервирован								}

.const	TtlOutEnableAddr				=	VariableBaseAddress + 0x4D;
.const	TtlOutAddr						=	VariableBaseAddress + 0x4E;
.const	TtlInAddr						=	VariableBaseAddress + 0x4F;

.const	ScaleFactorAddr				=	VariableBaseAddress + 0x50;
.const	ZeroOffsetAddr					=	VariableBaseAddress + 0x58;

{ диапазон адресов 0x90-0x100 - зарезервирован								}
.const	ControlTableAddr				=	0x100;

{ диапазон адресов 0x180-0x200 - зарезервирован								}
.const	CalibrationArrayAddr			=	0x200;


{ текущая версия драйвера DSP														}
.const	VERMAJOR 						=	1;   	{ старший байт версии	}
.const	VERMINOR 						=	2;		{ младший байт версии	}

{ регистры со стороны DSP															}
.const SET_ADC_CHANNEL					=	0x200;
.const READ_ADC							=	0x0;
.const TTL_OUT								=	0x201;
.const TTL_IN								=	0x1;
