2 / 2 6 / 2 0 0 2 2 : 0 6 P M 2 / 2 6 / 2 0 0 2
1 5 7
N M I L - 4 0 0 0 2 - C H A N N E L , 8 - B I T D / A
F O R T H S A M P L E C O D E
COLD
HEX
(******************************************************************)
( )
( This is a sample program segment to demonstrate )
( the use of the NMIL-4000 board with the NMIY-0031 )
( processor board. )
( )
( TEST will generate a rising ramp waveform on each )
( output with a DAC installed. )
( )
(*****************************************************************)
: IS CONSTANT ;
VARIABLE RAM-POINTER
200 RAM-POINTER !
: RAM RAM-POINTER @ SWAP RAM-P! ;
2 RAM IS DAC1-RAM
2 RAM IS DAC2-RAM
2 RAM IS DAC3-RAM
2 RAM IS DAC4-RAM
2 RAM IS DAC5-RAM
2 RAM IS DAC6-RAM
2 RAM IS DAC7-RAM
2 RAM IS DAC8-RAM
FFE0 IS BASE-ADDRESS
BASE-ADDRESS 0 + IS DAC1-REG
BASE-ADDRESS 1 + IS DAC2-REG
BASE-ADDRESS 2 + IS DAC3-REG
BASE-ADDRESS 3 + IS DAC4-REG
BASE-ADDRESS 4 + IS DAC5-REG
BASE-ADDRESS 5 + IS DAC6-REG
BASE-ADDRESS 6 + IS DAC7-REG
BASE-ADDRESS 7 + IS DAC8-REG
DECIMAL
: DAC1-SCALED-2.56-MV-! DAC1-RAM @ 10 / DAC1-REG ! ;
: DAC2-SCALED-2.56-MV-! DAC2-RAM @ 10 / DAC2-REG ! ;
: DAC3-SCALED-2.56-MV-! DAC3-RAM @ 10 / DAC3-REG ! ;
: DAC4-SCALED-2.56-MV-! DAC4-RAM @ 10 / DAC4-REG ! ;
: DAC5-SCALED-2.56-MV-! DAC5-RAM @ 10 / DAC5-REG ! ;
: DAC6-SCALED-2.56-MV-! DAC6-RAM @ 10 / DAC6-REG ! ;
: DAC7-SCALED-2.56-MV-! DAC7-RAM @ 10 / DAC7-REG ! ;
: DAC8-SCALED-2.56-MV-! DAC8-RAM @ 10 / DAC8-REG ! ;
: DAC1-SCALED-10.0-MV-! DAC1-RAM @ 39 / DAC1-REG ! ;
: DAC2-SCALED-10.0-MV-! DAC2-RAM @ 39 / DAC2-REG ! ;
: DAC3-SCALED-10.0-MV-! DAC3-RAM @ 39 / DAC3-REG ! ;
: DAC4-SCALED-10.0-MV-! DAC4-RAM @ 39 / DAC4-REG ! ;
: DAC5-SCALED-10.0-MV-! DAC5-RAM @ 39 / DAC5-REG ! ;
: DAC6-SCALED-10.0-MV-! DAC6-RAM @ 39 / DAC6-REG ! ;
: DAC7-SCALED-10.0-MV-! DAC7-RAM @ 39 / DAC7-REG ! ;
: DAC8-SCALED-10.0-MV-! DAC8-RAM @ 39 / DAC8-REG ! ;
Summary of Contents for NMIY-0031
Page 1: ...2 2 6 2 0 0 2 2 0 6 P M 1 NMIY 0031 Single Board Computer Covers NMIY 0031 V1 0 4 22 96 ...
Page 2: ...2 2 6 2 0 0 2 2 0 6 P M 2 ...
Page 6: ...2 2 6 2 0 0 2 2 0 6 P M 6 ...
Page 8: ...2 2 6 2 0 0 2 2 0 6 P M 8 ...
Page 14: ...2 2 6 2 0 0 2 2 0 6 P M 1 4 ...
Page 30: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 3 0 ...
Page 32: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 3 2 ...
Page 50: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 0 ...
Page 52: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 2 ...
Page 54: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 4 ...
Page 56: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 6 ...
Page 58: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 8 ...
Page 60: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 6 0 ...
Page 62: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 6 2 ...
Page 68: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 6 8 ...
Page 70: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 7 0 ...
Page 72: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 7 2 ...
Page 76: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 7 6 ...
Page 82: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 2 ...
Page 84: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 4 ...
Page 86: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 6 ...
Page 88: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 8 ...
Page 90: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 9 0 ...
Page 102: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 0 2 ...
Page 108: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 0 8 ...
Page 110: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 1 0 ...
Page 114: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 1 4 ...
Page 118: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 1 8 ...
Page 126: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 2 6 ...
Page 128: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 2 8 ...
Page 134: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 3 4 ...
Page 148: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 4 8 ...
Page 150: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 0 ...
Page 152: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 2 ...
Page 154: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 4 ...
Page 156: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 6 ...
Page 168: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 6 8 ...
Page 170: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 0 ...
Page 172: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 2 ...
Page 174: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 4 ...
Page 178: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 8 ...