KR950000529B1 - Ring detection method - Google Patents
Ring detection method Download PDFInfo
- Publication number
- KR950000529B1 KR950000529B1 KR1019920012247A KR920012247A KR950000529B1 KR 950000529 B1 KR950000529 B1 KR 950000529B1 KR 1019920012247 A KR1019920012247 A KR 1019920012247A KR 920012247 A KR920012247 A KR 920012247A KR 950000529 B1 KR950000529 B1 KR 950000529B1
- Authority
- KR
- South Korea
- Prior art keywords
- bell
- input
- phase
- duration
- falling edge
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Control Of Ac Motors In General (AREA)
Abstract
Description
제 1 도는 본 발명의 회로도.1 is a circuit diagram of the present invention.
제 2 도는 벨 감지 타이밍도.2 is a bell detection timing diagram.
제 3 도는 본 발명에 적용되는 전체 흐름도.3 is an overall flowchart applied to the present invention.
제 4 도는 벨 위상 0의 수행 흐름도.4 is a flowchart showing the operation of the bell phase zero.
제 5 도는 벨 위상 1의 수행 흐름도.5 is a flowchart showing the operation of the bell phase 1.
제 6 도는 벨 위상 2의 수행 흐름도.6 is a flowchart showing the operation of the bell phase 2.
제 7 도는 벨 위상 3의 수행 흐름도.7 is a flowchart showing the operation of the bell phase 3.
* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings
1 : 브리지 다이오드 2 : 포토 커플러1: bridge diode 2: photo coupler
3 : 인버터3: inverter
본 발명은 마이컴이 내장하는 유,무선 단말 장치에서의 벨 감지 방법에 관한 것이다.The present invention relates to a bell detection method in a wired or wireless terminal device embedded in the microcomputer.
종래의 벨 감지 회로는 트랜스, 또는 OP-앰프를 이용하거나 링 카운터 회로를 이용하므로 회로구성이 복잡하고 전화 선로의 잡음에 의한 오동작이 발생하는 등의 문제점이 있었다.The conventional bell detection circuit uses a transformer, an OP-amp, or a ring counter circuit, which causes a complicated circuit configuration and malfunctions due to noise of a telephone line.
상기 문제점을 해결하기 위해 안출된 본 발명은, 종래 마이컴이 내장된 유,무선 단말 장치의 벨 감지 회로를 포토 커플러(Photo Coupler)를 통해 전화 선로와 마이컴 회로를 전기적으로 절연시켜 마이컴의 오동작을 방지하므로써 사용자가 정의한 벨 카운트 수를 비교하는 것으로 단말 장치의 특징에 따라 각종 제어를 할수 있는 벨 감지 방법을 제공하는데 그 목적이 있다.The present invention has been made to solve the above problems, by electrically insulating the telephone line and the microcomputer circuit through the photo coupler (bell couple circuit of the conventional microcomputer embedded wired, wireless terminal device) to prevent the malfunction of the microcomputer Therefore, the purpose of the present invention is to compare the number of bell counts defined by the user, and to provide a bell detection method capable of controlling various kinds according to the characteristics of the terminal device.
상기 목적을 달성하기 위하여 본 발명은, 전원이 온일때 하이로 하고 타이머 루틴에서 벨 입력의 하강 에지를 조사하여 조사결과에 따라 벨 위상 값을 읽어들여 각각의 해당 루틴을 결정하는 제 1 단계, 상기 제 1 단계 수행 후, 위상 0의 경우는 위상 0루틴을 수행하는 제 2 단계, 상기 제 1 단계 수행후, 위상 1의 경우는 위상 1루틴을 수행하는 제 3 단계, 상기 제 1 단계 수행 후, 위상 2의 경우는 위상 2루틴을 수행하는 제 4 단계, 상기 제 1 단계 수행 후, 위상 3의 경우는 위상 3루틴을 수행하는 제 5 단계에 의해 수행된다.In order to achieve the above object, the present invention provides a first step of determining the respective routine by reading the bell phase value according to the irradiation result by checking the falling edge of the bell input in the timer routine by turning it high when the power is on. After performing the first step, in the case of phase 0, a second step of performing a phase 0 routine, after performing the first step, in the case of phase 1, a third step of performing a phase 1 routine, and after performing the first step, Phase 2 is performed by a fourth step of performing a phase 2 routine, and after performing the first step, a phase 3 is performed by a fifth step of performing a phase 3 routine.
이하, 첨부된 도면을 참조하여 본 발명을 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail the present invention.
제 1 도는 본 발명의 회로도이다.1 is a circuit diagram of the present invention.
도면에서 1은 브리지 다이오드, 2는 포토 커플러, 3은 인버터, 4는 벨 출력부를 각각 나타낸다.In the figure, 1 represents a bridge diode, 2 represents a photo coupler, 3 represents an inverter, and 4 represents a bell output.
전원 입력부(L1,L2)에 전원이 인가되면 브리지 다이오드(1)로 부터 저항(R1)을 통해 전류가 흐르게 되어 포토 커플러(2)로 스위칭 작용을 하는 우측의 회로가 포토 커플러(2)의 작용에 의해 작동을 하게 되면 다이오드(D1)와 저항(R2)을 통해 흐른 전류가 충전기(C1)에 저장되고 상기 충전기(C1)에 저장된 전력을 이용하여 인버터(3)를 통해 벨 감지 신호를 출력한다.When power is applied to the power inputs L1 and L2, a current flows from the bridge diode 1 through the resistor R1, and a circuit on the right side which switches to the photo coupler 2 acts as the photo coupler 2. When operating by the current flowing through the diode (D1) and the resistor (R2) is stored in the charger (C1) and outputs a bell detection signal through the inverter (3) using the power stored in the charger (C1). .
제 2 도는 벨 감지 타이밍도이다.2 is a bell detection timing diagram.
벨 위상 0은 벨 입력의 하강 에지를 체크하며, 벨 위상 1은 벨 입력의 최소 지속 시간을 준다음 벨 입력의 로우 입력 시간을 체크한다.Bell phase 0 checks the falling edge of the bell input, bell phase 1 gives the minimum duration of the bell input, and then checks the low input time of the bell input.
벨 위상 2는 벨 입력의 상승 에지를 체크하고, 위상 3은 벨 입력의 하이 입력 시간을 체크하여 하이 시간을 체크한다.Bell phase 2 checks the rising edge of the bell input and phase 3 checks the high time by checking the high input time of the bell input.
제 3 도는 본 발명이 적용되는 전체 흐름도이다.3 is an overall flowchart to which the present invention is applied.
전원이 온이면 벨 입력은 하이 상태이다.The bell input is high when power is on.
타이머 루틴에서 벨 입력의 하강 에지를 조사한다(10).Examine the falling edge of the bell input in the timer routine (10).
상기 조사(10)에 따라 벨 위상 값을 읽어들여 각각의 해당 루틴을 수행하고(100 내지 400) 리턴한다.According to the survey 10, the bell phase value is read and each routine is executed (100 to 400) and returned.
제 4 도는 벨 위상 0에 대한 수행 흐름도이다.4 is a performance flow diagram for bell phase zero.
먼저 벨 카운트를 읽어 벨 카운트 값이 0, 즉 초기 상태인지를 조사(101)하여 벨 카운트가 0이 아니면 위상 3으로 부터의 시간이 끝났는가를 조사하여(102) 끝나지 않았으면 리턴하고 끝났으면 벨 카운트가 0일 때와 같이 벨 입력을 체크하여 벨 입력이 '1'인지 아니면 '0'인지를 조사하여(103) '1'이면 벨 입력 하강 에지 세팅 플래그를 클리어시키고(106) '0'이면 벨 입력 하강 에지 세팅 플래그가 '0'인지를 조사하고(104) 조사결과 벨 입력 하강 에지 세팅 플래그가 '0'이면 벨 입력 플래그를 세트시키고(105) 벨 입력 하강 에지 세팅 플래그가 '0'이 아니면 클리어시킨 벨 입력 카운트와 함께 벨 입력 하강 에지 세팅 플래그가 1인지 0인지를 조사한다(107).First, the bell count is read to check if the bell count value is 0, i.e., the initial state (101). If the bell count is not 0, it is checked if the time from phase 3 is over (102). Checks the bell input as if it is 0 and checks if the bell input is '1' or '0' (103) if '1' clears the bell input falling edge setting flag (106) and if '0' Investigate whether the input falling edge setting flag is '0' (104). If the bell input falling edge setting flag is '0', set the bell input flag (105) and if the bell input falling edge setting flag is not '0' The bell input falling edge setting flag is checked as 1 or 0 with the bell input count cleared (107).
상기 조사(107) 결과 벨 입력 하강 에지 세팅 플래그가 0이면 벨 카운트가 1보다 크거나 같은지를 조사하여(108) 벨 입력 하강 에지 세팅 플래그가 1보다 작으면 리턴하고 벨 입력 하강 에지 세팅 플래그가 1보다 크거나 같으면 벨 입력의 하이 지속시간을 계산하여(109) 벨 입력의 하이 지속 시간이 최대한을 넘었는지를 조사하여(110) 상기 조사(110) 결과 벨 입력의 하이 지속 시간이 최대한을 넘었으면 벨 카운트를 클리어하고 벨 입력 하이 지속 시간도 클리어한 뒤 리턴하고(112), 벨 입력의 하이 지속 시간이 최대한을 넘지 않았으며 최소 하이 지속 시간이 끝났으면 리턴한다(111).If the bell input falling edge setting flag is 0 as the result of the survey 107, the bell count is greater than or equal to 1 (108). If the bell input falling edge setting flag is less than 1, the bell input falling edge setting flag is returned. If greater than or equal to, the high duration of the bell input is calculated (109) to determine if the high duration of the bell input has exceeded the maximum (110). The bell count is cleared and the bell input high duration is cleared and then returned (112). If the high duration of the bell input has not exceeded the maximum and the minimum high duration is finished (111).
그리고 벨 입력 하강 에지 세팅 플래그가 1이면 최소 지속 시간을 준 뒤(113) 벨 위상을 1로 하고 벨 입력 하강 에지 세팅 플래그를 클리어하고 리턴한다(114).If the bell input falling edge setting flag is 1, the minimum duration is given (113), the bell phase is set to 1, and the bell input falling edge setting flag is cleared and returned (114).
제 5 도는 벨 위상 1의 수행 흐름도이다.5 is a flowchart showing the operation of the bell phase 1.
벨 위상 0루틴으로 부터 최소 로우 지속 시간을 체크하여 벨 입력을 체크하여 최소한 로우 지속 시간이 끝나지 않았으면 리턴하고(201), 최소 로우 지속 시간이 끝났으면 최소 로우 지속 시간을 클리어하고(202), 벨 입력이 하이인지 로우인지를 조사한다(203). 상기 조사(203) 결과 벨 입력이 하이이면 최소 지속값을 만족하지 못하므로 초기화 상태로 돌아간다(206,207).Check the bell low zero duration from the bell phase 0 routine to check the bell input to return if at least the low duration has not ended (201), clear the minimum low duration if the minimum low duration is over (202), Investigate whether the bell input is high or low (203). As a result of the survey 203, if the bell input is high, the minimum duration value is not satisfied and returns to the initialization state (206, 207).
벨 입력이 로우이면 벨 카운트를 '1'증가시키고(204) 벨 위상 값을 '2'로 한다(205).If the bell input is low, the bell count is increased to '1' (204) and the bell phase value is set to '2' (205).
제 6 도는 벨 위상 2의 수행 흐름도이다.6 is a flowchart showing the operation of the bell phase 2.
벨 위상 1루틴으로 부터 벨 입력의 로우 상태에서 벨 입력의 하이 상태에로의 상승 에지를 체크한다(301).The rising edge from the bell phase 1 routine to the high state of the bell input is checked (301).
벨 입력이 하이가 되면 최소 하이 지속 시간을 부여하여(302) 벨 위상값을 '3'으로 한(303) 후 리턴하고 벨 입력이 로우이면 리턴한다.If the bell input goes high, it gives a minimum high duration (302), sets the bell phase value to '3' (303), and returns if the bell input is low.
제 7 도는 벨 위상 3의 수행 흐름도이다.7 is a flowchart showing the operation of the bell phase 3.
벨 위상 2루틴으로 부터의 최소 하이 지속 시간이 끝났는가를 조사하여(401) 상기 조사(401) 결과 최소 하이 지속 시간이 끝나지 않았으면 리턴하고 끝났으면 최소 하이 지속 시간을 클리어하고(402) 벨 입력의 상태를 체크한다(403). 상기 체크(403) 결과 하이이면 벨 위상값이 '0'으로 가기 위한 시간을 부여하고(404) 벨 위상을 '0'으로 한 뒤 리턴하고(406), 로우이면 최소 하이 지속 시간을 만족하지 못하므로 초기화 상태로 하고 벨 위상을 '0'으로 한 후 리턴한다.Investigate whether the minimum high duration from the bell phase 2 routine is over (401) and if the result of the survey (401) is not over, return if the minimum high duration is not over and clear the minimum high duration if over (402) The state is checked (403). If the result of the check (403) is high, the bell phase value gives time to go to '0' (404) and the bell phase is set to '0' and then returned (406). If low, the minimum high duration is not satisfied. Therefore, it is initialized and the bell phase is returned as '0'.
따라서, 본 발명은 단말기 벨 음향의 온/오프 시간이 각기 다른 교환기에서 적용될 때 벨 감지 및 카운팅을 하여 교환기 특성에 관계없이 적용될 수 있는 효과가 있다.Therefore, when the on / off time of the terminal bell sound is applied in different exchanges, the present invention can be applied regardless of the exchange characteristics by performing bell detection and counting.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019920012247A KR950000529B1 (en) | 1992-07-09 | 1992-07-09 | Ring detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019920012247A KR950000529B1 (en) | 1992-07-09 | 1992-07-09 | Ring detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
KR940003254A KR940003254A (en) | 1994-02-21 |
KR950000529B1 true KR950000529B1 (en) | 1995-01-24 |
Family
ID=19336090
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019920012247A KR950000529B1 (en) | 1992-07-09 | 1992-07-09 | Ring detection method |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR950000529B1 (en) |
-
1992
- 1992-07-09 KR KR1019920012247A patent/KR950000529B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR940003254A (en) | 1994-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2132136C (en) | Ground fault circuit interrupter with immunity to wide band noise | |
US4442472A (en) | Solid state trip circuit with digital timer | |
KR960003361B1 (en) | Overcurrent detecting method | |
US7265535B2 (en) | Circuit configuration for providing of a diagnostic signal for a power switching device | |
EP0689271B1 (en) | An earth leakage unit | |
KR950000529B1 (en) | Ring detection method | |
JPS6316210Y2 (en) | ||
KR100385846B1 (en) | DC input cell for data acquisition circuit | |
SU1566312A1 (en) | Device for monitoring insulation resistance of electric circuits | |
JPS6345807Y2 (en) | ||
US6252439B1 (en) | Current level detector device for protecting a circuit against alternating current overcurrents | |
JPS5778218A (en) | Discrimination system | |
RU1807456C (en) | Device for testing relays | |
SU1203631A1 (en) | Device for protection of converter | |
JP2731247B2 (en) | Network controller | |
SU970466A1 (en) | Memory | |
KR0116917Y1 (en) | Exchange trunk device | |
JPS62260518A (en) | Overcurrent protecting circuit | |
JP2539700Y2 (en) | Digital signal transfer circuit | |
JP2731248B2 (en) | Network controller | |
JPH0125331Y2 (en) | ||
SU1068960A1 (en) | Device for alarm signalling | |
SU1418677A1 (en) | Protected power supply system | |
JPH0222705Y2 (en) | ||
KR0121960B1 (en) | Ring signal detecting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
G160 | Decision to publish patent application | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20021223 Year of fee payment: 9 |
|
LAPS | Lapse due to unpaid annual fee |