Shop OBEX P1 Docs P2 Docs Learn Events
freqout cmd — Parallax Forums

freqout cmd

ArchiverArchiver Posts: 46,084
edited 2000-07-26 19:34 in General Discussion
Does anyone have any idea on how to use the FREQOUT cmd to just
generate a frequency? Say 1kc. or 1000 cycles per second sinewave?
I am having some trouble understanding it. I have a BS2 stamp and
Breadboard. I gotta figure out what I'm doing wrong.
Jim

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-07-26 19:34
    Jim:
    I have never used freqout, but according to the V1.9 Stamp manual:

    FREQOUT pin,duration,freq
    FREQOUT 2,2000,1000 should generate 1kc on pin 2 for 2 secs.
    duration is 1 to 65535 in millisecs.
    freq is 0 to 32767 in Hz.
    zero freq is silent.

    It uses PWM, so it will probably need some low-pass filtering.

    Ray McArthur


    Original Message
    From: James Hardy <jahardy33@h...>
    To: <basicstamps@egroups.com>
    Sent: Wednesday, July 26, 2000 1:18 PM
    Subject: [noparse][[/noparse]basicstamps] freqout cmd


    > Does anyone have any idea on how to use the FREQOUT cmd to just
    > generate a frequency? Say 1kc. or 1000 cycles per second sinewave?
    > I am having some trouble understanding it. I have a BS2 stamp and
    > Breadboard. I gotta figure out what I'm doing wrong.
Sign In or Register to comment.