Shop OBEX P1 Docs P2 Docs Learn Events
the chip has 3 'timers' right? — Parallax Forums

the chip has 3 'timers' right?

hitswarehitsware Posts: 156
edited 2007-04-10 01:49 in BASIC Stamp
[url=mailto:2@8bit]2@8bit[/url]·and [url=mailto:1@16bit]1@16bit[/url]
? are the bits latched ?
I would like to take 3 pins and connect them to
the 3 timers .....
(and use these for 3 'voices')
But!
have the program procede
leaving the 3 pins giving off (worst case)
squarewaves
@ the frequencies·determend·by the
[url=mailto:1@8bit(voice]1@8bit(voice[/url])
[url=mailto:1@8bit(voice]1@8bit(voice[/url])
[url=mailto:1@16bit(voice]1@16bit(voice[/url])
then be able to use the
the other pins to fire external envelope generators
(Vactrols)·

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-04-05 00:52
    The Stamps do not have any timers that are accessible to programmers. The underlying PIC or SX processor does have timers, but these are used internally by the PBasic interpreter for statements that involve timing or pulse generation (like SERIN/SEROUT or PAUSE) and cannot be used by PBasic programs.
  • hitswarehitsware Posts: 156
    edited 2007-04-05 01:00
    So ....
    One would have to use assembly?
    Could one do what I want ?
  • Mike GreenMike Green Posts: 23,101
    edited 2007-04-05 02:17
    You can't use assembly. You can't do what you want with a Stamp.

    You could use a plain SX processor and program it in assembly or SX/B or you could use a Propeller. Have a look at Propeller/Hydra Forum threads about the "Hydra Sound System" or HSS (like: http://forums.parallax.com/showthread.php?p=604722).
  • hitswarehitsware Posts: 156
    edited 2007-04-08 00:00
    This should do it right?
    Be able to set 4 free running frequencies
    and then proceed to envelope pulses:

    http://www.parallax.com/detail.asp?product_id=28020
  • Mike GreenMike Green Posts: 23,101
    edited 2007-04-08 02:44
    The PWMPAL is a nice device. I've used it for motor control. I don't know how it behaves when changing frequencies though. Someone recently commented that there's a glitch in its outputs when changing settings for a channel. I haven't tried this myself though, so I don't know for sure.
  • T ChapT Chap Posts: 4,223
    edited 2007-04-08 03:04
    Is latency an issue? I wonder how fast you are going to be able to modify each parameter and not have a noticable lag between voices getting changed.

    Post Edited (TChapman) : 4/8/2007 3:15:33 AM GMT
  • hitswarehitsware Posts: 156
    edited 2007-04-10 01:49
    That's why I am going to try the PWMPAL .....
    If you can set the frequency (with attendant pop)
    BEFORE the envelope initiates
    Then it should run much quieter.
Sign In or Register to comment.