Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pulse Dailing Detection through software

Status
Not open for further replies.

lanceaustin

Programmer
May 5, 2003
23
DE
Now can some one please help me out on the issue of Pulse Dialing...

like for DTMF iam using MT3271 which decode the number .

But for Pulse Dialing can i use the same off-hook detection path to sent Pulses of dialing to controller using the theory that if "1" is pressed 1 pulse goes to controller if "2" is pressed 2 pulses...and if 0 is pressed then 10 pulses...
For this can i use :-

Like if i take:-

Make / Break ratio as 60:40 micro-seconds

and Inter Digit Space as 800 milli seconds..

how will i detect Pulses from telephone viz SLIC.

Suppose MT8816 X0 gets connect with Y0 if digit 0 is dialed if any other digit is dialed nothing happens.

what adjustment should be made in the following:-

should i use any interuppts of timing coz if i use the following software can only enterain one telephone set dialing...

MOV R0,#0D ; "initial value in Pulse Counter Register"

AGAIN:
JB P1.0,$ ;waiting for pulses to come on the same bit where off-hook is detected
Inc R0
JNB P2.1,$ ;waiting for low
CJNE R0,#02D, AGAIN ; "detecting whether the dialed number is 2 or not, if 2 then its desired function is done other wise controller wait for pulses"
SJMP MT8816_ADDRESS

 
How i can make the controller count the incoming pulses at P2.0 ..now these pulses are coming from a telephone set via a SLIC , this telephone set is a key pad pulse dialing set with following specification:-


Make : Break Ratio = 60:40
inter digit space = 800 milli seconds

Now let suppose when ever the telephone goes off hook SLIC sents a High Signal to controller p2.0 , now the controller is in high state.

now a timer starts for 30 seconds and the user must dial the number in this timer period...

suppose the user dial 11 , the timer stops and the controller count the puslses

if 1 is pressed it means 1 pulses in 0.1 seconds
as if 0 is pressed 10 pusles are sent in one second.

How to make the controller count these pulses..like if there is no code for detecting pulse dialing then just guide me few steps to detect this pulse dialing..
like should i incrment a register when ever a logical 0 is received at P2.0 or something esle..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top