Oscilloscope help


Closed Thread
Results 1 to 15 of 15

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: Smashing results

    FREQOUT makes sine waves and must be filtered, which is not what you need.
    Try this ...

    Code:
    PiezoPIN  VAR PORTC.2
    TMR0IF    VAR INTCON.2
    Width     VAR BYTE
    OPTION_REG = %11010011 ; TMR0 1:16
    
    Alarm:
        FOR Width = 161 TO 120 STEP -1
            WHILE !TMR0IF
                TOGGLE PiezoPIN
                PAUSEUS Width
                TOGGLE PiezoPIN
                PAUSEUS Width
            WEND
            TMR0IF = 0
        NEXT Width
    GOTO Alarm
    DT

  2. #2
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Default Done

    Thanks Darrel and everyone. It's done

  3. #3
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Default Without PIC???

    Just out of curiosity, can this be achieved without using a microcontroller?

  4. #4
    Join Date
    Apr 2011
    Posts
    53


    Did you find this post helpful? Yes | No

    Default Re: Without PIC???

    Commonly driven by a type 555 multi-function timer chip. Google '555 alarm schematic' and take your pick.
    Also can be done using standard logic gates such as 2-NANDs in astable mode with another 2 providing the modulation therefore a single dual-input quad NAND package (4011 or 7400) will work. You can use NOR gates too.

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: Without PIC???

    You can also buy piezo devices that are already configured to output an alarm tone, aka piezo buzzers. Sonalert for one, comes to mind.
    Tim Barr

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