State machine programming


+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    tjstevens's Avatar
    tjstevens Guest

    Unhappy State machine programming

    Does any one have a sample of state machine coding for Pic Basic Pro?
    I need to sequence though several machine states (I/O) and run PWM in the background. I'm having trouble with the cycle times not being consistent. I believe that state machine may be the answer. Please HELP.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Lets say assembler may help... but without seeing what you have now, it's hard to suggest something or know why it doesn't work as expected. Is this a software or hardware related... ??? who know

    If you're using interrupts, that might be one problem source... but...mmm hard to guess.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,413


    Did you find this post helpful? Yes | No

    Default

    Hi,
    Here's a link to finite state machine programming. http://www.emesystems.com/BS2fsm.htm It's based on the BasicStamp but should be close enough to work with PBP.

    /Henrik Olsson.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Ok... one more thing i didn't knew the right translation.

    Anyways, here's a link i got from Tim Box. That should clear up few thing
    http://protongeeks.com/index.php?opt...d=55&Itemid=29
    Last edited by mister_e; - 16th April 2007 at 16:00.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    tjstevens's Avatar
    tjstevens Guest


    Did you find this post helpful? Yes | No

    Smile Many Thanks

    I'll check it out. I post to let everyone know how it turns out.

Similar Threads

  1. Data Programming Error at 0000
    By cpatnoi in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd May 2009, 03:37
  2. Problems programming
    By Lionheart in forum General
    Replies: 4
    Last Post: - 7th December 2008, 16:51
  3. Replies: 6
    Last Post: - 1st February 2008, 03:35
  4. PIC programming algorithm - where is it to find?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th June 2007, 18:31
  5. Programming software for PicAll Hardware
    By bcd in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th July 2006, 08:15

Posting Permissions

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