Shop OBEX P1 Docs P2 Docs Learn Events
DTMF and Pin problems — Parallax Forums

DTMF and Pin problems

ArchiverArchiver Posts: 46,084
edited 2003-09-21 03:34 in General Discussion
Dear Friends

I have connected DTMf to BS and it is working fine. For example when
I generates tone 2 it sends out 0010. The 4 output of the DTMF goes
to pin 8 to 11 of the stamp.

But when I want to check the INC the values are different.
For example[noparse]:D[/noparse]EBUG ?INC give me

5 instead of 0
8 instead of 1
4 instead of 2
12 instead of 3
and so on

Isn't pin 8 to 11 called C, for my example INC????
Does anyone know what I am doing wrong??

Thank you so much

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-09-20 22:11
    At 08:57 PM 9/20/03 +0000, NIMA wrote:
    >Dear Friends
    >
    >I have connected DTMf to BS and it is working fine. For example when
    >I generates tone 2 it sends out 0010. The 4 output of the DTMF goes
    >to pin 8 to 11 of the stamp.
    >
    >But when I want to check the INC the values are different.
    >For example[noparse]:D[/noparse]EBUG ?INC give me
    >
    >5 instead of 0
    >8 instead of 1
    >4 instead of 2
    >12 instead of 3
    >and so on
    >
    >Isn't pin 8 to 11 called C, for my example INC????
    >Does anyone know what I am doing wrong??
    >
    >Thank you so much
    Try swapping the wire on pin 8 with the wire on pin 11 and
    the wire on pin 9 with the wire on pin 10.

    You may have the pins wired backwards.


    >To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    >from the same email address that you subscribed. Text in the Subject and
    >Body of the message will be ignored.
    >
    >
    >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2003-09-21 03:34
    Looks to me like you have the data lines in reverse order. Here's
    what you should see versus what you are seeing:

    0 1010 vs 0101
    1 0001 vs 1000
    2 0010 vs 0100
    3 0011 vs 1100

    Quick and dirty fix via software:

    DEBUG ?INC REV 4

    I/O pin 8 is the low order bit of INC, and Q1 is the low order bit of
    your DTMF decoder.

    Regards,

    Steve

    On 20 Sep 03 at 20:57, NIMA wrote:

    > Dear Friends
    >
    > I have connected DTMf to BS and it is working fine. For example when
    > I generates tone 2 it sends out 0010. The 4 output of the DTMF goes
    > to pin 8 to 11 of the stamp.
    >
    > But when I want to check the INC the values are different.
    > For example[noparse]:D[/noparse]EBUG ?INC give me
    >
    > 5 instead of 0
    > 8 instead of 1
    > 4 instead of 2
    > 12 instead of 3
    > and so on
Sign In or Register to comment.