Shop OBEX P1 Docs P2 Docs Learn Events
Back to the MT8880 DTMF Chip...initialization nightmares — Parallax Forums

Back to the MT8880 DTMF Chip...initialization nightmares

FlyingFishFingerFlyingFishFinger Posts: 461
edited 2006-06-30 21:22 in General Discussion
Hi!
Jeez, this is the third time I'm trying to post this...comps kept crashing. So, I finished the hardware side of my circuit, but I have software problems. My board has a weird IO pin scheme, so I cant use the nice nibble approach they use in the NV Column #7. I have to take the number variable apart and write its bits to the pins. My problem is that this code as it is seems to work, but I can change or even remove the initialization lines and it still works (Regardless of what code I use, with or without the "correct" initialization, sometimes I get no tone and sometimes just row or colum tones). My original goal was DTMF decoding, but I guess that won't work until I gte my bits straight. I've been trying to figure it out for a few days, but I can't get it. It may be a dumb error on my part, or it's the lack of understanding of the Stamp's IO variables or the chip's set-up routine.
Oh - I tried to keep pin 5 low all the time...it's connected to ESt on the CM8880 for Detection purposed...it's an input to the Stamp, so I don't know what setting it high would do.
I also keep pins 0,1 and 2 low since they drive a H-Bridge and a serial LCD.
Here is the NV Column #7:
http://www.parallax.com/html_pages/downloads/nvcolumns/Nuts_Volts_Download_V1.asp

Here's a Datasheet for the Chip:
http://assets.zarlink.com/DS/zarlink_MT8880C_SEP_05.pdf

Thanks...pardon the wordiness

Rafael

Post Edited (flyingfishfinger) : 6/27/2006 2:05:21 AM GMT

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-06-27 04:17
    Flyingfishfinger -

    What development board are you using for the BS-2 application?

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • FlyingFishFingerFlyingFishFinger Posts: 461
    edited 2006-06-27 05:52
    No Developement Board - I'm making my own personal controller board
    Rafael
  • FlyingFishFingerFlyingFishFinger Posts: 461
    edited 2006-06-28 22:18
    Hi!
    I think I got my bits straight. The Chip now listens to me. Turns out it WAS a dumb mistake - I went back and checked what exactly the demo program for the BS1 from the Nuts and Volts Column does at bit level. I found that I had forgotten to set the Register select pin low after my initialization - so the Chip thought all the data I was sending was going to the control registers.
    The above code was overly complicated as usual tongue.gif in addition to not working
    Thanks for looking anyway
    Rafael
  • FlyingFishFingerFlyingFishFinger Posts: 461
    edited 2006-06-29 00:30
    Whoops, I do have one more question.
    I want to use the ESt pin for tone detection. When I attach a LED to the pin, it lights up when there's a tone and my meter shows 5V. When I attach it to the Stamp pin, all it ever sees is a 0. When I attach the Stamp pin to +5V, it shows a 1 like it should. Could the Stamp pin be sinking more current than the Chip can supply? It can't be more than a LED, can it?
    Thanks
    Rafael
  • steve_bsteve_b Posts: 1,563
    edited 2006-06-29 00:36
    Are you connecting the grounds together?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·

    Steve

    "Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
  • FlyingFishFingerFlyingFishFinger Posts: 461
    edited 2006-06-29 00:41
    Yes I am, but I don't see how that should make a difference...the CM8880 listens for tones on one pin, and raises ESt if there is one. ESt IS getting raised, but it can't seem to drive a Stamp pin. The CM8880 and the Stamp are on the same power anyway.
    Rafael
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-06-29 01:37
    FlyingFishFinger said...
    ESt IS getting raised, but it can't seem to drive a Stamp pin.
    The datasheet shows it connected to StGT (same IC) with a 374K resistor.· How about connecting ESt to your STAMP pin through a 10K-100K resistor and measuring the voltage at the STAMP and telling us the result?
  • FlyingFishFingerFlyingFishFinger Posts: 461
    edited 2006-06-29 01:59
    Ok, did that with a 10K without the Stamp on the board. Result: 4.9V...sounds good enough. But I also noticed something else weird: As soon as I connect so much as an earphone to the TONE INPUT, the current on the ESt pin drops to 0. When I put the Stamp back in place, the voltage drops to 0.3 - 0.4V instead of 5V on ESt.
    Rafael
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-06-29 02:26
    Well, wait,·let's not start muddying the waters here·-- is the resistor the solution to the ESt situation (where you get a HI/LO as appropriate at the STAMP pin)?

    An earphone to the TONE input??· I know that you can use those old in-ear sorts as a really crummy microphone, but...· The tone input should be capacitively (AC) coupled to the "source".

    ESt -- is it to confirm a tone generation or a tone reception, or both, depending?


    Post Edited (PJ Allen) : 6/29/2006 2:30:04 AM GMT
  • FlyingFishFingerFlyingFishFinger Posts: 461
    edited 2006-06-29 02:43
    Sorry for being unclear. In other words, the resistor does not solve the ESt problem. As soon as I remove the resistor and put the Stamp back in place, the voltage is 0.3V on tone reception, instead of the 5 I had with the resistor. The earphone I mentioned ia attached in paralled to the sound source, a DTMF software on my computer, so I can hear the sounds going into the chip. ESt is, as far as I know, to confirm tone reception only.
    Rafael
  • steve_bsteve_b Posts: 1,563
    edited 2006-06-29 12:26
    Do you have the ability to sketch your layout?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·

    Steve

    "Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
  • FlyingFishFingerFlyingFishFinger Posts: 461
    edited 2006-06-29 19:32
    Do you mean "sketch layout" as in a circuit diagram?
    Rafael

    PS: How much current does it take to drive a Stamp pin high? I just realized that the ESt pin can only source -3.0 mA...(but why negative?)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You've got to play the game.
    You can't win.
    You can't break even, except on a very cold day.
    It doesn't get that cold.
    ~Laws of Thermodynamics~

    Post Edited (FlyingFishFinger) : 6/29/2006 9:00:29 PM GMT
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-06-29 21:05
    I didn't see a schematic representation of the output in the datasheet/s.·

    Is it O.C.?·

    How does it perform if you connect ESt to +5 through a 47K-100K resistor (but not connected to a STAMP pin)?
  • FlyingFishFingerFlyingFishFinger Posts: 461
    edited 2006-06-29 21:51
    No...performs just the same...with that resistor in place, it still lights the LED though, even if the earphone to hear the input still blanks it.
    Rafael

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You've got to play the game.
    You can't win.
    You can't break even, except on a very cold day.
    It doesn't get that cold.
    ~Laws of Thermodynamics~
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-06-29 23:02
    The old Parallax AppMod datasheet shows ESt connected to StGT (see attached.)· Maybe you should try hooking it up that way.

    attachment.php?attachmentid=42296
    627 x 435 - 56K
  • FlyingFishFingerFlyingFishFinger Posts: 461
    edited 2006-06-29 23:04
    I have that...it's a 390 though...thats what the NV colums specified...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You've got to play the game.
    You can't win.
    You can't break even, except on a very cold day.
    It doesn't get that cold.
    ~Laws of Thermodynamics~
  • FlyingFishFingerFlyingFishFinger Posts: 461
    edited 2006-06-30 21:22
    Ok, I got the DTMF detection to work, but without using ESt. I'm still in a bit of a spot, because I can't poll for this. The way it works now, I have to address the chip specifically and ask it if there's a tone, but with ESt I could have polled for a high and then started up the decoding program. Whenever I connect ESt to anything, the chip stops responding completely. I'll just have to see if I can work around this in software.
    Thanks for the help
    Rafael

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You've got to play the game.
    You can't win.
    You can't break even, except on a very cold day.
    It doesn't get that cold.
    ~Laws of Thermodynamics~
Sign In or Register to comment.