Shop OBEX P1 Docs P2 Docs Learn Events
BS2sx- execute other subroutine during freqout — Parallax Forums

BS2sx- execute other subroutine during freqout

KellyHKellyH Posts: 4
edited 2009-02-06 00:06 in BASIC Stamp
I'm new to using basic stamp, and to programming in general, and I am programming a basic stamp set up that someone else has put together. Anywho, I need to be able to execute a subroutine that randomly assigns pins 8-15 to high during the final two seconds of a 20 second FREQOUT. I have the FREQOUT and subroutine working separately, but is it possible to make them overlap? The person who put together my hardware isn't very familiar with the software, and recommends building an external logic circuit. Before I do that, I want to make sure that there is no way to execute the two commands so they overlap with the setup I have already. Any advice? Thanks bunches.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-02-06 00:05
    You can't do it.· When the Stamp is doing the FREQOUT, it can't do anything else.

    You can use a peripheral processor to make sounds at the same time a Stamp is doing something else.· Parallax has a SoundPAL which can do this.· Have a look at the webstore page on this for details.
  • KellyHKellyH Posts: 4
    edited 2009-02-06 00:06
    Thanks, Mike.
Sign In or Register to comment.