need help! to beginner


Closed Thread
Results 1 to 28 of 28

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Posts
    29


    Did you find this post helpful? Yes | No

    Default More info needed

    Can anybody show different way of doing the same???

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


    Did you find this post helpful? Yes | No

    Default

    Well yes, but why? It doesn't work or what?
    Steve

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

  3. #3
    Join Date
    Apr 2009
    Posts
    29


    Did you find this post helpful? Yes | No

    Default no it does

    But if just to say I want to add pause i cannot.
    I added a coulpe of 0 to get silence but it gives whistle.
    so i need something with supporting pause command
    thanks in advance

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


    Did you find this post helpful? Yes | No

    Default

    where do you want to add pause? between some FREQOUT?
    Steve

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

  5. #5
    Join Date
    Apr 2009
    Posts
    29


    Did you find this post helpful? Yes | No

    Default exactly

    yes I do. is it possible?

  6. #6
    Join Date
    Apr 2009
    Posts
    29


    Did you find this post helpful? Yes | No

    Default sound command

    Stieve is it possible to put as duration in sound command figure beetween 0-1

    for examle

    sound portb.0[0.2 ,115]

    because when you put 1 sound comes out nearly 12 milliseconds but i need less

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


    Did you find this post helpful? Yes | No

    Default

    Sure, easy way is to break the LOOKUP2 in few different tables, or add a second one, the second one will hold the PAUSE value.

    I could disgress and say use a variant of "embedded string in your code space". This build a huge table in which you store, the frequency & the PAUSE values. Later you just read it, and apply it.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    PBP don't allow float point values.

    You could use HPWM out and PAUSEUS/PAUSE, or a variant of it.

    Some
    High pin
    PAUSE(us) HalfPeriodDelay
    LOW pin
    PAUSE(us) HalfPeriodDelay

    would replace Sound, Freqout, PWM etc etc hapilly here
    Steve

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

Similar Threads

  1. Replies: 17
    Last Post: - 12th April 2014, 02:17
  2. pic24 beginner
    By robertpeach in forum General
    Replies: 23
    Last Post: - 13th August 2009, 11:57
  3. Replies: 10
    Last Post: - 2nd May 2009, 07:42
  4. Beginner trying to use arrays
    By captain in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 3rd November 2007, 07:20
  5. Pic ID Error please help (beginner)
    By ninja in forum General
    Replies: 4
    Last Post: - 11th August 2005, 17:54

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