Hi,
in manual 2, pg 141: "As each pwmout command resets the internal timer, the
pwmduty command is recommended on X1/X2 parts (after the initial pwmout)
to rapidly change the duty."
what i want to know is (using a 20X2): can I use a sub where i insert:
and then use another sub to control a motor using pwmout?
Since they are in independent "subs" there will be a "problem"? How can this affect my timer variable in the main sub?
thanks
in manual 2, pg 141: "As each pwmout command resets the internal timer, the
pwmduty command is recommended on X1/X2 parts (after the initial pwmout)
to rapidly change the duty."
what i want to know is (using a 20X2): can I use a sub where i insert:
Code:
main:
SetTimer 65411
timer=0
readadc10 C.1, w0
(...)
w1=timer
Since they are in independent "subs" there will be a "problem"? How can this affect my timer variable in the main sub?
thanks