Re: how to use a variable for pulsout command
Hi, Sheldon
That's exactly what you do here ...
1) you first set a constant to 1000
2) you set a variable equal to this constant
3) you output signal of the variable length ...
so, step 1) is not necessary ...
writing
Code:
Time VAR Word ; create your variable
Time = 1000 ; set it to 1000
PULSOUT pin, Time ; output your signal
is the shortest way ... using a variable.
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks