+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2018
    Posts
    4

    Post digital integrator algo for bipolar sigs?

    Thanks Darrel,

    This is actually a slower approach than what I am doing. It is more nicely coded - but the branching would greatly reduce the speed. I'm trying to run a loop that will iterate at over 100kHz, and I am not concerned with regular periodicity, ie if it runs a few times at 125kHz and a few periods are at 110kHz all is well.

    i have proportional control running at 800kHz. However when i add the integral calculation, check for saturation and sum the result, it's at nearly 50kHz. I've managed to get the calculations as clean as possible, but the IF/THENs are killing me.

    I was really hoping a CE out there would have a suggestion as to how to deal with this. For instance, the first condition in my current loop checks to see if the result is between 00 and FF, then writes it, then immediately returns to the sample. It only checks for saturation if that condition fails, resulting in an aperiodic signal, but it is only slow when the output is saturated - so I'm not worried about that.

    Even if it requires raw assembly I'll be happy to implement it. I'm also trying to come up with a very long routine that would branch only once or twice while continusously resampling and writing when not saturated.Please start a thread in the appropriate forum for detailed technical help. This is just a chat box, your post will disappear quickly.

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    1,752

    Default Re: digital integrator algo for bipolar sigs?

    you have to wonder about a 14 year old post being cloned
    http://www.picbasic.co.uk/forum/show...tal+integrator
    This is more entertaining than Free to Air TV

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    2,929

    Default Re: digital integrator algo for bipolar sigs?

    I am almost just one click away with this user...

    Ioannis

  4. #4
    Join Date
    Aug 2003
    Location
    Australia
    Posts
    1,060

    Default Re: digital integrator algo for bipolar sigs?

    Account has never replied. Certainly dodgy, but I’m real curious about what it’s supposed to achieve.
    Infiltrate now, SPAM later?

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    2,929

    Default Re: digital integrator algo for bipolar sigs?

    Very curious too!

    Ioannis

Similar Threads

  1. Loop algo problem
    By Ioannis in forum PBP3
    Replies: 3
    Last Post: - 31st December 2018, 11:26
  2. Driving a stepper motor bipolar
    By debutpic in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th June 2007, 17:34
  3. Open-collector VS bipolar lines on I2C devices
    By Demon in forum mel PIC BASIC
    Replies: 5
    Last Post: - 19th November 2005, 23:14
  4. digital integrator algo for bipolar sigs?
    By pwhitt in forum General
    Replies: 2
    Last Post: - 5th August 2005, 14:42
  5. RSA algo
    By new_pic in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 23rd June 2004, 11:46

Members who have read this thread : 20

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