Shop OBEX P1 Docs P2 Docs Learn Events
DTMF Virtual Peripheral and SX/B — Parallax Forums

DTMF Virtual Peripheral and SX/B

DynamoBenDynamoBen Posts: 366
edited 2009-06-25 23:35 in General Discussion
I have a project idea that requires decoding of DTMF, and I noticed that there is a Virtual Peripheral to do so. I was wondering if it is possible to use a virtual peripheral with SX/B? If so how would I go about it or where can I find more info?

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-06-25 22:12
    Here is the one DTMF detect demo program I could find:
    http://www.sxlist.com/techref/scenix/lib/io/osi1/dfs/dtmf_det_src.htm

    It is in assembler. To convert it to SX/B (or embed·it in SX/B) I would
    copy the interrupt·code as is (in asm-endasm block) and recreate
    the interface with mainline code in SX/B.

    This requires studying the code and will take some time, but it can be done.

    regards peter
    ··
  • DynamoBenDynamoBen Posts: 366
    edited 2009-06-25 22:22
    Peter Verkaik said...
    Here is the one DTMF detect demo program I could find:
    http://www.sxlist.com/techref/scenix/lib/io/osi1/dfs/dtmf_det_src.htm

    It is in assembler. To convert it to SX/B (or embed it in SX/B) I would
    copy the interrupt code as is (in asm-endasm block) and recreate
    the interface with mainline code in SX/B.

    So I would assume this means I can't utilize a virtual peripheral in SX/B.
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-06-25 22:37
    Not directly, but with some work you can make it
    work with SX/B. Key is to extract the driver part
    and providing SUBs and FUNCs that access the driver.

    I have written a VP library for SX/B, only that has no DTMF detect
    driver. You can use that framework to include a DTMF driver. But it will take
    time.

    regards peter

    Post Edited (Peter Verkaik) : 6/25/2009 10:43:33 PM GMT
  • DynamoBenDynamoBen Posts: 366
    edited 2009-06-25 23:35
    I'm thinking about doing this all in code because it seems that most of the DTMF decoder ICs have or are going obsolete. I'm will look the code over and see if I can figure it out.
Sign In or Register to comment.