freqout and pulsout
Archiver
Posts: 46,084
Does anyone know how to get the freqout and pulsout command to work
properly together. Heres what my program looks like:
'
Directives
'{$STAMP BS2}
'{$PBASIC 2.5}
'
Variable Declarations
index VAR Word
out VAR Word
time VAR Word
time1 VAR Word
'
Initialization Routine
index = 11
'
Main Program
start:
HIGH 7
PAUSE 10
RCTIME 7, 1, time
PULSOUT 10, time
FREQOUT 15, 500, out
LOOKDOWN time, <= [noparse][[/noparse]40, 150, 245, 295, 325, 400, 550, 800], index
LOOKUP index, [noparse][[/noparse] 4186,3951,3729,3520,3322,3136,2960,2793,2637,2489,
2349, 2093,1976,1760,1661,1568,1480,1396,1319,1245,1175,1109,1047 ],
out
GOTO start
properly together. Heres what my program looks like:
'
Directives
'{$STAMP BS2}
'{$PBASIC 2.5}
'
Variable Declarations
index VAR Word
out VAR Word
time VAR Word
time1 VAR Word
'
Initialization Routine
index = 11
'
Main Program
start:
HIGH 7
PAUSE 10
RCTIME 7, 1, time
PULSOUT 10, time
FREQOUT 15, 500, out
LOOKDOWN time, <= [noparse][[/noparse]40, 150, 245, 295, 325, 400, 550, 800], index
LOOKUP index, [noparse][[/noparse] 4186,3951,3729,3520,3322,3136,2960,2793,2637,2489,
2349, 2093,1976,1760,1661,1568,1480,1396,1319,1245,1175,1109,1047 ],
out
GOTO start