Shop OBEX P1 Docs P2 Docs Learn Events
freqout and pulsout — Parallax Forums

freqout and pulsout

ArchiverArchiver Posts: 46,084
edited 2004-05-12 23:00 in General Discussion
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
Sign In or Register to comment.