Delayed output 10 secs


Closed Thread
Results 1 to 38 of 38

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Like you said, you've only had PBP a couple weeks ...
    Laughing would only be Rude.

    Thanks for the code!
    I think I can do something with it.

    But first I'd like to point out the WORST Basic statement ever devised.
    Code:
    PAUSE xx
    It turns an amazingly fast processor into a "thumb twiddling idiot".
    Spending most of it's time doing nothing.
    If I were that chips Boss, I'd fire it.

    Granted, there are a few instances when PAUSE is required. But if at all possible, avoid PAUSE at all costs.

    Working on it ....
    DT

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Like you said, you've only had PBP a couple weeks ...
    Laughing would only be Rude.

    Thanks for the code!
    I think I can do something with it.

    But first I'd like to point out the WORST Basic statement ever devised.
    Code:
    PAUSE xx
    It turns an amazingly fast processor into a "thumb twiddling idiot".
    Spending most of it's time doing nothing.
    If I were that chips Boss, I'd fire it.

    Granted, there are a few instances when PAUSE is required. But if at all possible, avoid PAUSE at all costs.

    Working on it ....
    I guess I took his 720 min out of context, pretty much thought it was a stand alone app, please allow me to take For Next, Ugh Pause, and pull up my pants , . . . "thumb twiddling idiot "!, careful Darrel, that's getting pretty close to home . . . , But Darrel <B> IS ,</b> right.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    But Darrel <B> IS ,</b> right.
    I got this lady ... could you repeat that to her?

    Mike,

    Are you stuck with the SOUND command, or do you just want a beep from the piezo?
    I'm gonna have problems with PBP's SOUND command and interrupts.
    <br>
    DT

  4. #4
    Join Date
    May 2009
    Location
    Montreal, QC, Canada
    Posts
    118


    Did you find this post helpful? Yes | No

    Default

    The beep doesn't have to come from the sound command, I didn't know it could be generated another way! as long as it goes beep when LEDx changes state is good.

    I will learn from this project but I have a couple of other projects I will impress you with!

    Thank you soooooo much for your help.

    Mike

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Yowwwsaaaa!

    I saw something interesting floating thru the forum's waters, and I grabbed at it.
    Ummm, excuse me ... can I give it back?
    It looked like a piece of Tuna, I didn't know there was a Hook in it!

    Oh OK, I guess not.

    So many timers and conditions and beeps,
    I'm just going to gnaw on this a little more ...
    see if I can't work that hook out of my cheek before I hit surface.
    <br>
    DT

  6. #6
    Join Date
    May 2009
    Location
    Montreal, QC, Canada
    Posts
    118


    Did you find this post helpful? Yes | No

    Default

    I was kind of fiddling with part of your timer code and part of what I had and I was able to get all the timings, highs and lows at the right place but the beep with the sound command is really lowsy, instead of beep it goes brererererep!
    Of course If I had an scope I might see other strange things!

  7. #7
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    You can probably just turn off the Interrupts (INTCON.7) during the beeps.

    It'll stop keeping time during the beep, but in the scope of several hours charge time, you'll never notice.
    <br>
    DT

Similar Threads

  1. How to drive the Vinculum VDIP1 in UART mode
    By BrianT in forum Code Examples
    Replies: 41
    Last Post: - 23rd May 2013, 12:34
  2. USB-FTDI[UM232R] with PIC16f877a
    By bjox in forum USB
    Replies: 1
    Last Post: - 23rd February 2008, 22:40
  3. Serious Serial Situation Setbacks...
    By Dansdog in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2007, 03:46
  4. Serial Output 10 Bits
    By GEEZER in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th May 2005, 02:14
  5. Using 4 input to control 10 output
    By cibotsan in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th November 2004, 12:08

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