dtmf question (straight pins vs crossed pins)
cyberzernics
Posts: 2
Can someone please explain me the difference between straight pins and crossed pins?
Also, please explain the relationship of the pins to these lookup values or code:
"D84#206B195A3*7C-" for straight pins
"D1234567890*#ABC-" for crossed pins
Also, please explain the relationship of the pins to these lookup values or code:
"D84#206B195A3*7C-" for straight pins
"D1234567890*#ABC-" for crossed pins
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
DTMFER:
DTMF = INL & %00001111
LOOKUP DTMF,[noparse][[/noparse]"D84#206B195A3*7C-"],DTMF 'STRAIGHT PINS
'LOOKUP DTMF,[noparse][[/noparse]"D1234567890*#ABC-"],DTMF 'CROSSED PINS
IF DTMF = "1" THEN DTMF1
IF DTMF = "2" THEN DTMF2
IF DTMF = "3" THEN DTMF3
IF DTMF = "4" THEN DTMF4
IF DTMF = "5" THEN DTMF5
IF DTMF = "6" THEN DTMF6
IF DTMF = "7" THEN DTMF7
IF DTMF = "8" THEN DTMF8
IF DTMF = "9" THEN DTMF9
IF DTMF = "0" THEN DTMF0
IF DTMF = "*" THEN OTHER
IF DTMF = "#" THEN OTHER
IF DTMF = "A" THEN OTHER
IF DTMF = "B" THEN OTHER
IF DTMF = "C" THEN OTHER
IF DTMF = "D" THEN OTHER
RETURN
The rest of the code can be found here:
http://www.repeater-builder.com/pix/rc2.bs2
·
·· Not sure about straight and crossed pins…Do you perhaps mean common bus key switches and matrix keys?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
·················· [url=mailto:n0yox647@[remove-no-smam]iland.net]n0yox647@[noparse][[/noparse]remove-no-smam]iland.net[/url]
PAR
Based on the contents of the CM8870 data sheet, my guess would be that they're speaking about the ROW and COLUMN wires. If they are correctly wired (ROWS = ROWS, COLUMNS = COULUMNS) then you use one of the tables. If however, it's mis-wired (ROWS = COLUMNS, COLUMNS = ROWS) then you use the other table. With that in mind, the justaposition in the table is reasonably easy to see.
What makes NO SENSE at all is the last "-" entry in both tables. That character is not present on a telco-style keypad, or in the DTMF sequence. Thus. for my money, that's an unnecessary entry, although it probably won't hurt anything. Moreover, I can't even see a way for it to be transmitted, as any bit pattern it might present would exceed 4 bits, and there are ONLY 4 data lines (D0-D3)!
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->