Pulsin weird problem


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2011
    Posts
    3

    Default Pulsin weird problem

    Hi all.
    I have a weird problem that i just cant seem to get round with this rx switch.
    I am using 2 pulsin commands on a 12f629 (inputs pin 3 and pin 4 , outputs pins 2,5,6,7)
    Pulsin1 reads pin3. pulsin2 Reads pin 4..
    Standard servo pulses of 150 neutral so have given them both >170 on , < 130 off.
    When run independant of each other they both work brilliant.
    When i combine them i get a glitch on the < 130 on pin 4.. It fires as if its <130 on pin 3 too.
    When i scope the outputs from the rx it shows that channel 2 goes forwards to increase the pulse BUT channel three goes backwards to increase the pulse.
    Simple job of reverse the output. But i cant due to the servo needing to run that way.
    Is there any way of seperating the pulses. I have tried adding a delay into it between the pulse readings to try and seperate them but due to the channel 3 pulse then it varies on the timing ( im guessing that pulsin reads the rising edge) but it seems to read the whole pulse train as one but its ONLY in one direction
    Code i have is
    Rx1 Var gpio 2
    Rx2 var gpio 3
    Rx1,1,pulse1
    Rx2,1,pulse2

    What is the significance of the ,1 ?? ..rx2 is the input variable,, pulse2 is the stored variable from the reading but the ,1 is that where the problem lies.
    Its feeding another pic to give the correct output functions so would i get away with a big debounce on the output pic to counter the glitch. ( dirty i know i would prefer to get it to run smooth straight off)
    Many thanks
    Allen

  2. #2
    Join Date
    Jul 2011
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: Pulsin weird problem

    I was getting on ok with the previous thread but it got deleted in the attack so i have lost all the info that I had gained from acetronics (Alain)

    Thanks
    Allen

Similar Threads

  1. Weird problem with Debugin
    By Tina10 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th June 2013, 06:18
  2. Weird Random problem
    By Del Tapparo in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th August 2012, 22:06
  3. Weird Problem
    By isaac in forum General
    Replies: 9
    Last Post: - 22nd September 2008, 19:30
  4. PIC18F got some weird problem?
    By NatureTech in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 19th February 2007, 16:18
  5. Weird problem with 12F629
    By martarse in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th May 2005, 07:15

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts