Shop OBEX P1 Docs P2 Docs Learn Events
processor cycles and freqout — Parallax Forums

processor cycles and freqout

ArchiverArchiver Posts: 46,084
edited 2000-10-08 04:56 in General Discussion
Newbie type question
If I Freqout on an pin for 6 seconds, is this where the processor
sits for 6 seconds before moving on? I'm watching for other events
and want to know how to manage my time. I'm not clear yet on how the
BS2 queues up instructions but I'm guessing they're buffered and
there is only one thread.
Thanks

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-10-07 05:33
    All execution is single threaded. Once you execute a command the stamp does
    nothing else until that command finishes...

    MH

    Original Message
    From: <rheine@m...>
    To: <basicstamps@egroups.com>
    Sent: Friday, October 06, 2000 11:48 PM
    Subject: [noparse][[/noparse]basicstamps] processor cycles and freqout


    > Newbie type question
    > If I Freqout on an pin for 6 seconds, is this where the processor
    > sits for 6 seconds before moving on? I'm watching for other events
    > and want to know how to manage my time. I'm not clear yet on how the
    > BS2 queues up instructions but I'm guessing they're buffered and
    > there is only one thread.
    > Thanks
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-07 20:43
    no instruction buffering.
    it performs the instruction its on then moves on to the next one.
    and it stays on that instruction until its complete.
    norm



    >From: rheine@m...
    >Reply-To: basicstamps@egroups.com
    >To: basicstamps@egroups.com
    >Subject: [noparse][[/noparse]basicstamps] processor cycles and freqout
    >Date: Sat, 07 Oct 2000 03:48:04 -0000
    >
    >Newbie type question
    >If I Freqout on an pin for 6 seconds, is this where the processor
    >sits for 6 seconds before moving on? I'm watching for other events
    >and want to know how to manage my time. I'm not clear yet on how the
    >BS2 queues up instructions but I'm guessing they're buffered and
    >there is only one thread.
    >Thanks
    >
    >
    >
    >

    _________________________________________________________________________
    Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

    Share information about yourself, create your own public profile at
    http://profiles.msn.com.
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-08 04:56
    >If I Freqout on an pin for 6 seconds, is this where the processor
    >sits for 6 seconds before moving on? I'm watching for other events
    >and want to know how to manage my time. I'm not clear yet on how the
    >BS2 queues up instructions but I'm guessing they're buffered and
    >there is only one thread.
    >Thanks

    You can break Freqout up into short bursts with low frequency subtone:

    For i=1 to 300 ' total tone about 6 seconds
    freqout 0,20,2000
    ; watch something quickly here
    next

    That gives 6 seconds of a 2000 hz tone with a ~50hz subtone, watching other
    events once per 20 milliseconds.

    -- Tracy Allen
    electronically monitored ecosystems
    http://www.emesystems.com
Sign In or Register to comment.