Generating various waveforms with resistive DAC, how to alter pitch?


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Generating various waveforms with resistive DAC, how to alter pitch?

    A manual delay should be as fast as asm if you have
    defined no clear watchdogs to be inserted in code,
    and configure the chip with watchdog off.

    Code:
    delay = 20
    
    ...
    
    for count = 0 to delay
    next count
    For something quicker you could set up a number of delays

    Code:
    Delaytwonops:
    @ nop
    @ nop
    return
    Waste four instructions

    Code:
    gosub waste 
    
    ...
    
    waste:
    return
    Last edited by Art; - 24th April 2016 at 02:21.

Similar Threads

  1. Replies: 76
    Last Post: - 11th November 2014, 05:46
  2. 4 Wire resistive touch screen, Need help
    By Megahertz in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 16th February 2012, 17:28
  3. Reading 500ohm resistive sensors
    By Glenn in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th May 2011, 05:52
  4. dac
    By kaisersystems in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 10th June 2005, 20:23
  5. resistive fuel sender
    By beto in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 10th May 2005, 21:40

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