Multiple if then optimization


Closed Thread
Results 1 to 36 of 36

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Location
    Selm, Germany
    Posts
    116


    Did you find this post helpful? Yes | No

    Default Sting!

    Hey Girls & Guys,

    seems I poked into a bees nest.... I will try those codes in the evening (10 hrs from now).

    Youre really helpful.

    How about a code for extern interrupt that triggers a 1 ms high port after a delay found in a lookdown/case/if then row list? from 3 to 600 Hz of course......to get a constant phase shift between trigger and output.....

    Its oughta be real fast!! 20MHz 16F628A preferred
    "On interrupt" gets 180° phase shift (maximum limit) at 200 Hz.....

    I dunno how to integrate a variable delay into DTs instant interrupts....

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by Mugelpower View Post

    How about a code for extern interrupt that triggers a 1 ms high port after a delay found in a lookdown/case/if then row list? from 3 to 600 Hz of course......to get a constant phase shift between trigger and output.....

    ....
    Could you explain that better ???

    You're asking for a PBP written electronic ignition here ...

    don't you think you abuse ... just a little bit !!!

    Have an eye here ... : http://a110.free.fr/SPIP172a110/arti...?id_article=23

    Ok, assembler ... but kit or scratch realizable, and the forum offers a Huge help ...

    Alain

    PS: I'm working on a full PBP version ... but Assembler interrupts can't be avoided !!!
    Last edited by Acetronics2; - 3rd March 2008 at 09:39.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  3. #3
    Join Date
    Jan 2008
    Location
    Selm, Germany
    Posts
    116


    Did you find this post helpful? Yes | No

    Red face Ignition help

    Hi Acetronics,

    yeah, in Principle thats that. BUT: thats french (ARGL-GARG!!) and I donīt understand 2% of it.
    And: I have to modify the code it myself fromtime to time which could only be done if Iīm knowing quite a lot about the code. Man, thats a BIG FISH to swallow for an oldschool mechanic. Learning programming, trying to avoid asm, learning that asm couldnīt be avoided...... ARGL-GARG !

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi,

    Generally speaking ...

    Using PbP do not "protect" you from learning assembler ...it's a real "plus" to see the ASM result of your programming ...
    and overall understand what's really happening, and how ...

    Now about Ignition ... it's simple: you have an asm program to use with MPLAB , and a " Table generator " program ( in QBasic or, more recently EXCEL), just to load your timing values.
    So, there are special knowledge of assembler needed ...

    For French ... aha ... just think I spent a year in Berlin ( Yr 1990 ), and had to dig out my German school knowledge ... Euuuuhhhh, I'm also an old Mechanics ( and Thermics ) guy ...

    Just Follow the scheme and components list ... you'll have done 90% of the work. ... on the Forum, we ALSO Compute tables for ... how to tell it ??? .... E.T.s ?

    You also have this link ... in English :

    http://www.transmic.net/index.htm

    But ... not so good as ours ... yeah !!!

    Alain

    PS for Sayzer ...: I found a Turkish > French / French > Turkish free dictionnary on the Web; I do Hope you appreciate the effort ( LoL ...)
    Last edited by Acetronics2; - 3rd March 2008 at 12:40.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  5. #5
    Join Date
    Jan 2008
    Location
    Selm, Germany
    Posts
    116


    Did you find this post helpful? Yes | No

    Wink english link

    Hi Acetronics,

    youve been to Germany? thats been a dark time I guess.....haha.

    I already Knew the CDI transmic link but they have only the .hex file GRRRR....!

    I found this too:

    http://www.angelfire.com/ia/lfb/Pgbosch.html

    but thats way more code and unneccessary extra sparks.

    and by the way.....isnīt it more fun to get to the finish by ourselfs?

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    We'll have to close this Ignition thread ... Because HS ...

    a last one ...

    http://denis.tauvel.free.fr/index.htm

    << youve been to Germany? thats been a dark time I guess.....haha. >>

    no,no ... was a wonderful year ... indeed !!! Berliners are really smart people !


    Alain
    ************************************************** ***********************
    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 " !!!
    *****************************************

Similar Threads

  1. Multiple PICS from Same Crystal?
    By WOZZY-2010 in forum General
    Replies: 2
    Last Post: - 6th February 2010, 15:18
  2. Multiple analog inputs ?
    By rngd in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 25th February 2008, 15:13
  3. Multiple PIC programming
    By Nicholas in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 7th May 2007, 23:47
  4. Multiple PIC's with 1 crystal
    By puma in forum Schematics
    Replies: 11
    Last Post: - 20th March 2007, 17:02
  5. Multiple IR LEDs from 1 port using transistor
    By belpe123 in forum General
    Replies: 3
    Last Post: - 20th May 2005, 22:07

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