What am I doing wrong ?


Closed Thread
Results 1 to 21 of 21

Hybrid View

  1. #1
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    change this

    if i = 255 then goto down

    to this

    if i = 0 then goto down

    and all should be well .....

    or better yet delete the line (it adds no value) and replace the last line of the program shown with this

    goto main

    (instead of the if-then, which adds no value)

    Paul Borgmeier
    Salt Lake City, Utah
    USA
    Last edited by paul borgmeier; - 9th June 2006 at 09:46.

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


    Did you find this post helpful? Yes | No

    Talking Simple !!! ... do it simple !!!

    Hi, Malc

    Don't you think a simple triangle slow wave generator based upon a 555 or a twin AOP could perfectly do the job ???

    Note a simple bulb lamp could also do all the job itsef ... with a rectangular wave input.

    mmmmh, back to the original idea ... you'll have to seriously slow down the PWM change rate ...

    May be intended for some stop light for road/rail crossing, I presume ???

    Alain

    PS : and why not use a lookup table, just to reproduce exactly the truth ( exponential rise and fall of enlightment ) ???
    just a " particular shape " wave generator ...in fact.
    Last edited by Acetronics2; - 9th June 2006 at 10:05.
    ************************************************** ***********************
    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
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics
    Hi, Malc

    Don't you think a simple triangle slow wave generator based upon a 555 or a twin AOP could perfectly do the job ???

    Note a simple bulb lamp could also do all the job itsef ... with a rectangular wave input.
    Quite possibly, however that wouldn't improve my understanding of PBP

    Quote Originally Posted by Acetronics
    May be intended for some stop light for road/rail crossing, I presume ???
    Errr.. actually you don't want to know... Oh well all right..

    A friend wants to model the Tardis from the BBC series Dr Who... and it has a slow pulsing light on top..... me and my big mouth offered to help, and like I said it works fine on a 16F628a, but I just need to port it to a 12F675

    Malc

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


    Did you find this post helpful? Yes | No

    Talking the Tardis from Dr Who ???

    Hi, Malc

    That's a bit more complicated ... as Dr Who is completely unknown here !!!

    May be some more info about that light timing and appearance ( flash, slow rise and fall, Pulsing light ....) could help us to help you ...

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

  5. #5
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics
    Hi, Malc

    May be some more info about that light timing and appearance ( flash, slow rise and fall, Pulsing light ....) could help us to help you ...

    Alain
    I was going to attach a short avi (DVIX codec) of the result I have with the 16F628a chip, which is exactly what my friend wants..., but even zipped its slightly more than the max 200K limit we're allowed to upload. If I can't get the 12F675 working I'll just mail him the '628 chip and save all the headache !

Similar Threads

  1. LCD Showes Some Wrong Letters
    By sbobowski in forum General
    Replies: 2
    Last Post: - 23rd September 2008, 20:15
  2. Anyone know whats wrong with this code
    By Bonxy in forum Serial
    Replies: 10
    Last Post: - 9th March 2007, 17:29
  3. ADCIN - AD settings are wrong
    By teverett in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th December 2006, 17:32
  4. What am I doing wrong?
    By mankan in forum General
    Replies: 1
    Last Post: - 23rd June 2006, 20:03
  5. HDD IDE ATA 2 interface problems. code wrong?
    By rastan in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th March 2005, 17:01

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