Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Drifted off-topic

???
05/18/03 14:52
Read: times


 
#45859 - software filtering advice needed
Responding to: ???'s previous message
firstly
sir Michael Karas i have no words to thank you for providing me so much time and your reply has really cleared most of the confusions...

Next Kali, in case of telephone exchange it does not effects if high or low state is considered that i have checked with the manufacturers..

Now most of the people on this forum will think and say that waqar is not listening to what they are advicing but iam listening and swear i spent more hours reading the replies then i sleep..

but i want to go setp by step so i have made the simple program for signal digit dialing detection with only loops , i will make the really program with interrupts but first help me on this program ..

Objective:-

Detecting Signal Digit Dialing.considering only one telephone.

If digit "2" is pressed disconnect dial tone from the the telephone set otherwise keep connecting the dial tone.

; CHECKING ONE TELEPHONE LINE WITH MT8816 AND AT89C52
; P2.0 FOR DETECTING OFF HOOK (1) AND ON HOOK (0)
; Dial Tone Y0 OF MT8816 and telephone via slic is connected with X2
; ADDRESS LINE + DATA PIN OF MT8816 WITH P1 (date pin p1.7)
; Strobe = p3.7
; crsytal 11.05KOH



ORG 00H
LJMP MAIN


ORG 0030H
MAIN:
MOV P0,#00000000B ;port IS CLEARED
MOV P3,#00000000B ;StROBE IS CLEARED
MOV P2,#00000000B ;RESETING THE PIN
MOV P1,#00000000B ;RESETING THE PIN

OFF:
JNB P2.0,OFF ;WAITING FOR OFF-HOOK

CALL DELAY_10MS ;for debouncing, filtering codition
MOV P1,#10010000B ;x2-y0 DIAL TONE connection

SETB P3.7 ;STROBE IS SET HIGH

ON:
JB P2.0,ON ;waiting for digit dial
MOV R6,#00D ;pulse counting regsiter

J:
CALL DELAY_60MS ; pulse low time
INC R6 ;calculate no. of zeros
CALL DELAY_40MS ;pulse high time
CALL DELAY_10MS ;software filtering
JNB P2.0,J ;checking for more than 1 pulse
JB P2.0,CHECK3 ;check if all pulses came

CHECK3:
CJNE R6,#02D,DO ;dialed digit is 2 then remove dial tone

CLR P1.7
CLR P3.7

DO:
JNB P2.0,MAIN ;waiting on hook
SJMP DO


DELAY_60MS:
MOV R0,#05D
L2: MOV R1,#53D
L1: MOV R2,#250D
DJNZ R2,$
DJNZ R1,L1
DJNZ R0,L2
RET


DELAY_40MS:
MOV R0,#05D
A2: MOV R1,#49D
A1: MOV R2,#180D
DJNZ R2,$
DJNZ R1,A1
DJNZ R0,A2
RET

DELAY_10MS:
MOV R0,#05D
C2: MOV R1,#10D
C1: MOV R2,#200D
DJNZ R2,$
DJNZ R1,C1
DJNZ R0,C2
RET
END

Now i have used the above program firstly to see if low comes one dialing a digit it worked...but when iam using it to count the more than one pulse its not working...please advice some thing about the above.

Also since maximum time for receiving the pulses will 1 second which will be needed when digit "0" is pressed. I have tried to make a counter which multiply 40 milli seconds with 30 = 1200 micro-seconds
which checks after each decrement whether another pulse has arrived or not but it also did not worked...

actually the pulse counting register is counting more than one pulse..




List of 87 messages in thread
TopicAuthorDate
DMTF and Pulse Dialing            01/01/70 00:00      
   RE: DMTF and Pulse Dialing            01/01/70 00:00      
      RE: DMTF and Pulse Dialing            01/01/70 00:00      
         RE: DMTF and Pulse Dialing            01/01/70 00:00      
            RE: DTMF and Pulse Dialing            01/01/70 00:00      
               RE: DTMF and Pulse Dialing            01/01/70 00:00      
            RE: DMTF and Pulse Dialing -- IJAZ            01/01/70 00:00      
               RE: DMTF and Pulse Dialing -- Dan            01/01/70 00:00      
   Just one small example            01/01/70 00:00      
   RE: DMTF and Pulse Dialing-Waqar            01/01/70 00:00      
   RE: DMTF and Pulse Dialing -- IJAZ            01/01/70 00:00      
      RE: DMTF and Pulse Dialing -- IJAZ            01/01/70 00:00      
         RE: DMTF and Pulse Dialing -- IJAZ            01/01/70 00:00      
   forum people            01/01/70 00:00      
   only steps i need            01/01/70 00:00      
      RE: only steps i need            01/01/70 00:00      
         RE: only steps i need            01/01/70 00:00      
   RE: DMTF and Pulse Dialing            01/01/70 00:00      
   RE: DMTF and Pulse Dialing            01/01/70 00:00      
      really its not happening            01/01/70 00:00      
         RE: really its not happening            01/01/70 00:00      
            My Objective in Clear Words.Hal Albach..            01/01/70 00:00      
         does it work, or not?!?!            01/01/70 00:00      
   RE: DMTF and Pulse Dialing            01/01/70 00:00      
   other things            01/01/70 00:00      
      RE: other things            01/01/70 00:00      
         RE: other things            01/01/70 00:00      
            RE: other things            01/01/70 00:00      
               RE: other things            01/01/70 00:00      
      RE: other things            01/01/70 00:00      
         RE: a suggested condition for Waquar            01/01/70 00:00      
            For Erik Malund            01/01/70 00:00      
               RE: For Erik Malund            01/01/70 00:00      
   People try to understand            01/01/70 00:00      
   people try to understand            01/01/70 00:00      
      RE: people try to understand            01/01/70 00:00      
         RE: Michael            01/01/70 00:00      
      RE: people try to understand            01/01/70 00:00      
         RE: people try to understand            01/01/70 00:00      
            try to read it with soft heart            01/01/70 00:00      
               RE: Software Filter            01/01/70 00:00      
   RE: DMTF and Pulse Dialing            01/01/70 00:00      
      come on iam doing this            01/01/70 00:00      
         RE: come on iam doing this            01/01/70 00:00      
    where are you sir erik malund            01/01/70 00:00      
      RE: where are you sir erik malund            01/01/70 00:00      
   RE: DMTF and Pulse Dialing            01/01/70 00:00      
      RE: DMTF and Pulse Dialing            01/01/70 00:00      
      suggest some thing about this code            01/01/70 00:00      
         RE: suggest some thing about this code            01/01/70 00:00      
         RE: suggest some thing about this code            01/01/70 00:00      
   RE: Kai            01/01/70 00:00      
      RE: Hans / Kai            01/01/70 00:00      
         RE: Hans / Kai            01/01/70 00:00      
            RE: Hans / Kai            01/01/70 00:00      
               RE: Hans / Kai            01/01/70 00:00      
                  RE: Hans / Kai            01/01/70 00:00      
      RE: Kai            01/01/70 00:00      
         RE: Kai            01/01/70 00:00      
            RE: Kai            01/01/70 00:00      
               RE: Waqar            01/01/70 00:00      
         the most helpful one            01/01/70 00:00      
            RE: the most helpful one            01/01/70 00:00      
            RE: the most helpful one            01/01/70 00:00      
   software filtering advice needed            01/01/70 00:00      
      RE: software filtering advice needed            01/01/70 00:00      
         RE: software filtering advice needed            01/01/70 00:00      
            RE: software filtering advice needed            01/01/70 00:00      
      RE: software filtering advice needed            01/01/70 00:00      
         RE: software filtering advice needed            01/01/70 00:00      
            oh sorry michael            01/01/70 00:00      
         something is happening            01/01/70 00:00      
            RE: something is happening            01/01/70 00:00      
               i got the point            01/01/70 00:00      
                  RE: i got the point            01/01/70 00:00      
                     RE: i got the point            01/01/70 00:00      
                         Kai Klaas oscilloscope            01/01/70 00:00      
                           RE: Kai Klaas oscilloscope            01/01/70 00:00      
                           RE: oscilloscope            01/01/70 00:00      
   He's up to his old tricks again            01/01/70 00:00      
      RE: Waquar, Michael            01/01/70 00:00      
         RE: Waquar, Michael            01/01/70 00:00      
            RE: Waquar, Michael            01/01/70 00:00      
               RE: Waquar, Michael            01/01/70 00:00      
         erik malund..what happen to you            01/01/70 00:00      
      Donald Catto think before speaking            01/01/70 00:00      
         RE: Donald Catto think before speaking            01/01/70 00:00      

Back to Subject List