Re: (Picbasic Pro Compiler) Distinct management of two servos per timer(s) of 12F675?

Originally Posted by
zorgloub
Hi Alan,
The two channels follow each other:
Switch on channel 7 and potentiometer on channel 8.
The radio is a classic Robbe Promars.
Thanks.
Ok, got it ...
PBP can't read two channels following each other without missing the second one ... because PULSIN needs some little " re-arming " time ... ( I make it short )
so, we must use a turnaround to achieve that ...
Code:
PULSIN _Vertical,1,Vertical
RCTIME _Horizontal,1,Horizontal
a look to the manual will give you the reason why ...
and may be 1 unit @ 4 Mhz to add to Horizontal to be straight true ... 
So, here, you have to re-write your sampling part without any command between the two channels signals sampling commands ...
Alain
Last edited by Acetronics2; - 18th June 2023 at 09:22.
************************************************** ***********************
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