Shop OBEX P1 Docs P2 Docs Learn Events
Basic STAMP 2 as a clock generator? — Parallax Forums

Basic STAMP 2 as a clock generator?

SeanCurtisSeanCurtis Posts: 2
edited 2009-07-30 19:27 in BASIC Stamp
Hello all,

I need to generate a 16Khz clock and was wondering if I can use the STAMP 2 to do it. I'm kind of a newbie with it so I'm not sure how to go about something like that.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-07-30 17:31
    Generating a 16KHz clock will be difficult. You're talking about an on/off time of about 60us which is less than the execution time of most of the PBasic statements and there's no statement for generating a pulse train. FREQOUT can be used to generate brief audio tones at 16KHz, but I think that's about it.
  • SeanCurtisSeanCurtis Posts: 2
    edited 2009-07-30 19:27
    I'll do some reading and see if I can't work it out. If nothing else I can build one out of a 555 that'll work well enough.

    Thanks for the input!
Sign In or Register to comment.