KR950010762B1 - Stability method of analog digital transform data - Google Patents

Stability method of analog digital transform data Download PDF

Info

Publication number
KR950010762B1
KR950010762B1 KR1019930021275A KR930021275A KR950010762B1 KR 950010762 B1 KR950010762 B1 KR 950010762B1 KR 1019930021275 A KR1019930021275 A KR 1019930021275A KR 930021275 A KR930021275 A KR 930021275A KR 950010762 B1 KR950010762 B1 KR 950010762B1
Authority
KR
South Korea
Prior art keywords
data
analog digital
scl
excl
reference value
Prior art date
Application number
KR1019930021275A
Other languages
Korean (ko)
Other versions
KR950013050A (en
Inventor
이명구
Original Assignee
엘지전자주식회사
이헌조
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자주식회사, 이헌조 filed Critical 엘지전자주식회사
Priority to KR1019930021275A priority Critical patent/KR950010762B1/en
Publication of KR950013050A publication Critical patent/KR950013050A/en
Application granted granted Critical
Publication of KR950010762B1 publication Critical patent/KR950010762B1/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/06Continuously compensating for, or preventing, undesired influence of physical parameters
    • H03M1/0617Continuously compensating for, or preventing, undesired influence of physical parameters characterised by the use of methods or means not specific to a particular type of detrimental influence
    • H03M1/0619Continuously compensating for, or preventing, undesired influence of physical parameters characterised by the use of methods or means not specific to a particular type of detrimental influence by dividing out the errors, i.e. using a ratiometric arrangement
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/34Analogue value compared with reference values

Abstract

The method comprises the first step of determining the end point of analog digital conversion, the second step of calculating an absolute value from the difference of input digital data and current data and comparing it with a reference value, the third step of calculating the number of the case that the absolute value is bigger than the reference value is and the number of the case that the reference value is bigger than the absolute value is, the fourth step of comparing the reference value with the sum of the calculation above, the fifth step of comparing the sum of the number of cases, compared from the fourth step, with the reference value, the sixth step of comparing the data from the results of the fifth step with current data, and the seventh step of determining the equality of the data from the sixth step and current data.

Description

아날로그 디지탈 변환 데이타의 안정화 방법How to stabilize analog digital conversion data

제 1 도는 종래의 아날로그 디지탈 변환 데이타 안정화 장치의 블록 구성도1 is a block diagram of a conventional analog digital conversion data stabilization device

제 2 도는 종래의 입력 아날로그 신호와 디지탈 데이타의 변동을 나타낸 도면2 is a diagram showing variation of a conventional input analog signal and digital data.

제 3 도는 본 발명의 아날로그 디지탈 변환 데이타의 안정화 방법이 플로우차트3 is a flowchart of a method for stabilizing analog digital conversion data of the present invention.

제 4 도는 본 발명에 의한 아날로그 디지탈 변환 데이타 안정화 장치의 블록 구성도4 is a block diagram of an analog digital conversion data stabilization apparatus according to the present invention.

제 5 도는 본 발명에 적용된 아날로그 디지탈 변환기의 커런트 레벨 입력시의 확률 분포를 나타낸 도면5 is a diagram showing the probability distribution at the current level input of the analog digital converter applied to the present invention.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

3 : 아날로그 디지탈 변환기 4 : 마이컴3: analog digital converter 4: microcomputer

5 : 타이머5: timer

본 발명은 아날로그 디지탈 변환에 있어서, 아날로그 입력의 변화가 없음에도 불구하고 디지탈 출력에 변동이 발생하는 경우에 이 디지탈 신호를 입력으로 하여 처리하는 기기에서 변동 여부를 확률적 분포에 기준하여 판단하므로서 디지탈 변환 데이타를 안정화 시킬 수 있도록 한 아날로그 디지탈 변환 데이타 안정화 방법에 관한 것이다.According to the present invention, in the case of analog digital conversion, even if there is no change in the analog input, when the digital output is changed, the digital signal is judged on the basis of a probabilistic distribution to determine whether the digital signal is used as an input. The present invention relates to an analog digital conversion data stabilization method for stabilizing conversion data.

제 1 도는 종래의 아날로그 디지탈 변환기와 이 디지탈 데이타를 입력받아 안정화 시키는 프로세서의 블록 구성을 나타낸다.1 is a block diagram of a conventional analog digital converter and a processor for receiving and stabilizing this digital data.

아날로그 디지탈 변환기(1)는 입력(IN)되는 아날로그 신호를 설정된 비트수, 예를들면 8비트의 디지탈 데이타(DATA)로 변환하여 출력하고, 이 디지탈 데이타(DATA)는 마이컴(2)에 입력된다.The analog digital converter 1 converts an analog signal input IN into a set number of bits, for example, 8 bits of digital data DATA, and outputs the digital signal DATA. The digital data DATA is input to the microcomputer 2. .

마이컴(2)은 입력된 데이타(DATA)를 획득을 원하는 정보로 활용하게 되는데, 이러한 아날로그 디지탈 변환 데이타는 기기 주변의 여러 환경에 의하여 변동되게 되므로, 마이컴(2)은 이 데이타의 변동을 최소화하는 일련의 데이타 안정화 과정을 수행하게 된다.The microcomputer 2 utilizes the input data DATA as desired information. Since the analog digital conversion data is changed by various environments around the device, the microcomputer 2 minimizes the variation of the data. A series of data stabilization steps are performed.

제 2 도는 시간에 따라 변동되는 아날로그 입력(IN) 신호에 따른 출력 디지탈 데이타(DATA)의 변동을 나타내고 있다.2 shows a variation of the output digital data DATA according to the analog input IN signal which varies with time.

아날로그 디지탈 변환기(1)는 입력(IN)되는 아날로그 신호가 시간에 따라 변동되고, 이에 대응하여 아날로그 디지탈 변환기(1)에서 디지탈 변환된 데이타(DATA) 또한 변동됨을 알 수 있다.In the analog digital converter 1, it can be seen that the analog signal input IN fluctuates with time, and correspondingly, the data DATA digitally converted in the analog digital converter 1 also fluctuates.

이때 발생되는 데이타 변동의 LSB변동에 대응하는 방법은 두가지 정도로 대별되는데, 그 하나의 방법은, 필요로 하는 아날로그 디지탈 변환 비트(BIT)수보다 더 정밀한 비트수의 아날로그 디지탈 변환기(A/D변환기)를 사용하고, 이 변환된 데이타의 하위 N1비트는 사용하지 않는 방법이며, 예를들면 8비트의 디지탈 데이타(DATA)가 필요한 경우 12비트의 아날로그 디지탈 변환을 수행한후 하위 4개 비트를 버리는 방법이다.At this time, there are two methods for responding to LSB variation of data variation, one of which is an analog digital converter (A / D converter) having a bit more precise than the required number of analog digital conversion bits (BIT). The lower N1 bits of the converted data are not used.For example, if 8 bits of digital data are required, the lower 4 bits are discarded after performing 12 bits of analog digital conversion. to be.

다른 방법으로서, LSB쪽 비트의 변화가 있을때 이 변화의 정도가 일정한 값 N2 이상될때 새로운 이벤트(EVENT)가 발생한 것으로 간주하고 대응 처리를 수행하는 방법이다.As another method, when there is a change in the bit of the LSB side, a new event (EVENT) is regarded as occurring when the degree of the change is greater than or equal to a constant value N2 and a corresponding process is performed.

위의 첫번째 방법에서 N1은 통상 1 또는 2개 비트로 설정하며, 이 방법은 아날로그 디지탈 변환기 하드웨어 자체를 정밀도가 높은 것을 사용하는 방법이 되고, 두번째 방법에서 N2는 통상 3 또는 4정도로 설정하며, 이 방법은 변화의 정도가 큰 경우만을 이벤트로 간주하는 방법(입력에 대해 히스테리시스 특성을 적용한 방법)이 된다.In the first method above, N1 is usually set to 1 or 2 bits. This method uses the analog digital converter hardware itself with high precision. In the second method, N2 is usually set to 3 or 4, and this method is used. Is a method of considering the event only when the degree of change is large (a method of applying hysteresis characteristics to the input).

그러나 위와같은 종래의 아날로그 디지탈 변환 데이타 안정화 방법은 다음과 같은 문제점을 갖는다.However, the conventional analog digital conversion data stabilization method as described above has the following problems.

먼저, 첫번째 방법(정밀도가 높은 A/D변환기를 사용하고, 하위 비트를 버리는 방법)의 경우는 하위 비트를 사용하지 않기 때문에 사용하지 않는 하위 비트의 수보다 많은 폭으로 디지탈 데이타의 변동이 발생되면 이에 대처할 수 없고, 불필요한 변동이 발생되는 문제점이 있다.First, in the case of the first method (using a high-precision A / D converter and discarding the lower bits), since the lower bits are not used, if the digital data fluctuates more than the number of unused lower bits, There is a problem that can not cope with this, an unnecessary variation occurs.

그리고, 두번째 방법(히스테리시스 특성을 이용하는 방법)의 경우는 데이타 변동이 설정된 값인 N2 이상의 큰 경우만을 이벤트로 간주하기 때문에 N2 정도의 간격을 갖고 변화되는 것처럼 사용되어 데이타가 계단 형상을 보이면서 상승하거나 또는 하강하게 되고, 따라서 이 방법으로는 1스텝(STEP)씩의 변화를 주지 못하여 세밀한 제어에 적용할 수 없는 문제점이 있다.In the second method (method using the hysteresis characteristic), since the data change is regarded as an event only when a large value of N2 or more is set as an event, it is used as it is changed at intervals of about N2 so that the data rises or falls while showing a step shape. Therefore, there is a problem in that this method cannot be applied to fine control because it cannot change by one step.

본 발명의 통계적 처리에 의한 확률적 분포 특성을 이용해서 아날로그 디지탈 변환 데이타를 안정화 시키므로서 아날로그 디지탈 변환 데이타를 사용하는 기기의 정보 제공에 안정을 기할 수 있고, 세밀한 제어를 가능하게 하며, 불필요한 데이타 변동을 줄이고 신뢰성 높은 디지탈 데이타를 구할 수 있도록 한 아날로그 디지탈 변환 데이타 안정화 방법을 제공함을 목적으로 한다.By stabilizing the analog digital conversion data by using the stochastic distribution characteristic by the statistical processing of the present invention, it is possible to stabilize the information provision of the device using the analog digital conversion data, to enable fine control, and to change unnecessary data. The purpose of the present invention is to provide an analog digital conversion data stabilization method which can reduce the number and obtain reliable digital data.

제 3 도는 상기한 목적을 달성하는 본 발명의 아날로그 디지탈 데이타 안정화 방법을 나타낸 플로우차트이다.3 is a flowchart showing an analog digital data stabilization method of the present invention for achieving the above object.

제 3 도를 참조하면 본 발명의 아날로그 디지탈 데이타 안정화 방법은, 아날로그 디지탈 변환을 시작하고, 아날로그 디지탈 변환이 종료되었는가를 판단하는 제 1 과정과, 상기 제 1 과정에서 아날로그 디지탈 변환이 종료된 경우에는 입력 디지탈 데이타(DATA)와 현재 사용하고 있는 데이타(CL)와의 차의 절대치(S=ABS)(DATA-CL))를 산출하여 미리 설정된 기준값(TH)과 비교하는 제 2 과정과, 상기 제 2 과정에서 비교 결과 절대치(S)≥기준값(TH)인 경우의 횟수(EXCL)와 절대치(S)<기준값(TH)인 경우의 횟수(SCL)를 누산하는 제 3 과정과, 상기 제 3 과정에서 구한 누산 횟수의 합(SCL+EXCL)을 설정한 기준값(RE)과 비교하는 제 4 과정과, 상기 제 4 과정에서 비교 결과 누산 횟수의 합(SCL+EXCL)<기준값(RE)인 경우는 상기 제 1 과정으로 리턴하고, SCL+EXCL≥RE이면 누산 횟수(SCL)(EXCL)를 서로 비교하는 제 5 과정과, 상기 제 5 과정에서 비교 결과 SCL≥EXCL이면 데이타 변동이 없는 경우로 간주하고 SCL=EXCL=0으로 리세트하며, SCL<EXCL이면 SCL=EXCL=0으로 리세트함과 함께 현재 입력된 데이타(DATA)를 새로운 데이타(New EVENT)로 간주하고 이 새로운 데이타를 현재 사용하고 있는 데이타(EVENT)와 비교하는 제 6 과정과, 상기 제 6 과정에서 간주된 새로운 데이타와 현재 사용중인 데이타의 비교 결과 동일한 경우에는 상기 제 1 과정으로 리턴하고, 상이한 경우에는 새로운 데이타를 정상 데이타로서 처리하는 제 7 과정으로 이루어진다.Referring to FIG. 3, the analog digital data stabilization method of the present invention includes a first step of starting analog digital conversion and determining whether the analog digital conversion has ended, and, when the analog digital conversion is finished in the first step. A second step of calculating an absolute value (S = ABS) (DATA-CL) of the difference between the input digital data DATA and the currently used data CL and comparing the preset reference value TH with the second value; In the process, the third process of accumulating the number of times EXCL when the absolute value S is the reference value TH and the number SCL of the absolute value S <the reference value TH, and in the third process, A fourth step of comparing the sum SCL + EXCL obtained with the set reference value RE and a sum SCL + EXCL <reference value RE of the comparison result accumulated in the fourth step; Return to the first process, and if SCL + EXCL≥RE, accumulate the accumulated number SCL (EXCL). In the fifth process, and if the comparison result in the fifth process SCL≥EXCL, if there is no data change, it is assumed that there is no data change, and if it is SCL = EXCL = 0, it is reset to SCL = EXCL = 0. And the sixth step of considering the current data (DATA) as the new data (New EVENT) and comparing the new data with the currently used data (EVENT), and the new data and the current considered in the sixth step If the comparison result of the data being used is the same, it returns to the said 1st process, and if it differs, it consists of a 7th process of processing new data as normal data.

제 4 도는 상기한 바와같이 이루어진 본 발명의 아날로그 디지탈 변환 데이타 안정화 방법을 실행하는 장치의 한 예를 나타낸다.4 shows an example of an apparatus for executing the analog digital conversion data stabilization method of the present invention made as described above.

제 4 도에서 아날로그 디지탈 변환기(3)는 입력(IN)되는 아날로그 신호를 8비트의 디지탈 데이타(DATA)로 변환하여 마이컴(4)에 공급하며, 또한 아날로그 디지탈 변환기(3)는 디지탈 변환이 종료된 경우에 이를 마이컴(4)에 알려주기 위한 신호로서 아날로그 디지탈 변환 종료 인터럽트 신호(A/D END IRQ)를 출력하여 마이컴(4)에 입력해 준다.In FIG. 4, the analog digital converter 3 converts the analog signal input IN into 8-bit digital data DATA and supplies it to the microcomputer 4, and the analog digital converter 3 finishes the digital conversion. In this case, the analog digital conversion end interrupt signal (A / D END IRQ) is output as a signal for informing the microcomputer 4 and input to the microcomputer 4.

그리고, 아날로그 디지탈 변환기(3)는 타이머(5)로부터 공급되는 아날로그 디지탈 변환 스타트 신호(START)를 입력받았을때 아날로그 디지탈 변환을 실행하며, 타이머(5)는 마이컴(4)의 제어를 받아 설정된 시간에 의해 아날로그 디지탈 변환기(3)에 변환 스타트 신호(START)를 공급한다.When the analog digital converter 3 receives the analog digital conversion start signal START supplied from the timer 5, the analog digital converter 3 performs analog digital conversion. The timer 5 is controlled by the microcomputer 4 to set a time. By this, the conversion start signal START is supplied to the analog digital converter 3.

마이컴(4)은 상기 제 3 도의 제반 과정을 실행하는데, 타이머(5)를 제어하여 아날로그 디지탈 변환 스타트 신호(START)를 타이머 설정시간 간격으로 공급하도록 하고, 또 한편으로는 아날로그 디지탈 변환기(3)에서 변환 종료 신호인 인터럽트 신호(A/D END IRQ)가 입력되는가를 검색하여 이 신호가 입력되었을때 데이타 안정화를 위한 상기 제 3 도의 제반 과정을 수행하게 된다.The microcomputer 4 executes the above-described process of FIG. 3, and controls the timer 5 to supply the analog digital conversion start signal START at a timer set time interval, and on the other hand, the analog digital converter 3 In step S3, it is searched whether an interrupt signal (A / D END IRQ), which is a conversion termination signal, is input, and when the signal is input, the process of FIG. 3 for data stabilization is performed.

제 5 도는 상기한 바와같은 본 발명의 아날로그 디지탈 변환 데이타 안정화 방법에 적용되는 확률 분포를 나타내었다.5 shows the probability distribution applied to the analog digital conversion data stabilization method of the present invention as described above.

즉, 본 발명은 제 5 도에서와 같은 확률 분포를 갖고 발생하는 사건을 다음과 같은 기준에 의해 이벤트(EVENT)를 갱신하는 방법이다.That is, the present invention is a method of updating an event EVENT based on the following criteria for an event occurring with a probability distribution as shown in FIG.

여기서 P(x)는 x레벨의 A/D변환 입력이 들어오는 확률을 나타내고, CL은 커런트 레벨(CURRENT LEVEL), TH는 기준값을 나타내며, 이벤트 갱신의 기준은 다음의 식으로 주어지는 연산을 실행하므로서 구해지는 것이다. 즉,Where P (x) represents the probability that the A / D conversion input of the x level is input, CL represents the current level, TH represents the reference value, and the criteria for event update are obtained by performing the operation given by the following equation. To lose. In other words,

이다.to be.

그러나 실제적인 동작에서는 사건의 시행 횟수를 기준값(RE)으로 제한하고, 확률을 구하는데는 단순한연산만을 이용한다.In practical operation, however, the number of trials of an event is limited to the reference value (RE), and it is simple to calculate the probability. Use only operations

본 발명에서 제안된 방법은 아날로그 디지탈 변환 데이타를 정보로 요구하는 각 프로세서(제어기)의 적절한 동작속도를 갖게 하기 위하여 아날로그 디지탈 변환의 반복 간격(타이머로 설정한다), 기준값(TH)(RE)들을 각각 다르게 설정한다.The proposed method of the present invention sets the repetition interval (set by timer) and the reference value (TH) (RE) of the analog digital conversion in order to have an appropriate operation speed of each processor (controller) requesting the analog digital conversion data as information. Set them differently.

그러므로 기준값(TH)은 커런트 레벨(CL=현재 사용하고 있는 아나로그 디지탈 변환 결과)와 같은 레벨로 인정할 번위로 정의되고, 기준값(RE)은 사건 발생 횟수가 어느 정도가 되면 이벤트 처리를 할 것인가를 결정하는 기준값으로 정의된다.Therefore, the reference value TH is defined as the level to be recognized at the same level as the current level (CL = analog digital conversion result currently used), and the reference value RE is used to determine how many times the event occurs. It is defined as the reference value to determine.

제 3 도 및 제 4 도에서 보는 바와같이, 마이컴(4)은 타어미(5)를 제어하여 아날로그 디지탈(A/D) 변환을 위한 시간 간격을 설정하고 이 정보로 타이머(5)를 제어하여 설정된 시간 간격으로 변환 스타트 신호(START)를 발생시킨다.As shown in FIGS. 3 and 4, the microcomputer 4 controls the terminal 5 to set a time interval for analog digital (A / D) conversion and controls the timer 5 with this information. The conversion start signal START is generated at a set time interval.

타이머(5)에 설정되는 시간은 1/(원하는 이벤트 횟수*원하는 통계처리 횟수(RE))[sec]로 설정하며, 타이머(5)는 이 설정된 시간에 의하여 아날로그 디지탈 변환기(3)에 변환 스타트 신호(START)를 공급한다.The time set in the timer 5 is set to 1 / (the desired number of events * desired number of statistics processing (RE)) [sec], and the timer 5 starts the conversion to the analog digital converter 3 by this set time. Supply the signal START.

이 변환 스타트 신호를 입력받게 되면 아날로그 디지탈 변환기(3)는 입력되는 아날로그 신호를 디지탈 데이타(DATA)로 변환하여 마이컴(4)에 공급하고, 아날로그 디지탈 변환기(3)는 입력되는 아날로그 신호를 디지탈 변환 완료하면 변환 완료 신호(A/D END IRQ)를 마이컴(4)에 공급한다.When the conversion start signal is received, the analog digital converter 3 converts the input analog signal into digital data and supplies it to the microcomputer 4, and the analog digital converter 3 converts the input analog signal into digital conversion. Upon completion, the conversion completion signal (A / D END IRQ) is supplied to the microcomputer 4.

변환 완료 신호(A/D END IRQ)가 입력되면 마이컴(4)은 입력된 데이타(DATA)와 커런트 레벨(CL)의 차의 절대값을 산출한다.When the conversion completion signal A / D END IRQ is input, the microcomputer 4 calculates the absolute value of the difference between the input data DATA and the current level CL.

즉, ABS(DATA-CL)=S를 산출하고, 이 산출된 값을 상기 설정된 기준값(TH)과 비교한다.That is, ABS (DATA-CL) = S is calculated and this calculated value is compared with the set reference value TH.

비교 결과 S<TH이면 커런트 레벨로 들어온 사건 발생 횟수(SCL)를 카운트 업하여 누산(SCL=SCL+1)하고, 비교 결과 S≥TH이면 커런트 레벨과 다른 사건 발생횟수(EXCL)를 카운트 업하여 누산(EXCL=EXCL+1)한다.If the result of the comparison, S <TH, the number of occurrences (SCL) of the current level is counted up and accumulated (SCL = SCL + 1). If the result of the comparison is S≥TH, the number of occurrences of the event (EXCL) different from the current level is counted up. Accumulate (EXCL = EXCL + 1).

이와같이 커런트 레벨로 들어온 사건 발생 횟수(SCL)와 커런트 레벨과 다른 사건 발생 횟수(EXCL)의 누산이 완료되면 두 값을 SCL+EXCL의 연산으로 합산하고, 이 합산된 값의 절대값을 사건 발생 횟수가 어느 정도가 될때 이벤트 처리를 할 것인가를 결정하는 기준값(RE)과 비교한다.When the accumulation of the number of occurrences (SCL) of the current level and the number of occurrences of the event (EXCL) that differs from the current level is completed, the two values are added by the operation of SCL + EXCL, and the absolute value of the summed value is the number of occurrences of the event. Compare to the reference value (RE) which determines how much to handle the event when the time is reached.

비교 결과 ABS(SCL+ESCL)<RE이면 아날로그 디지탈 변환 완료를 판단하는 상기 단계로 리턴하고, ABS(SCL+ESCL)≥RE이면 상기 누산된 두 값(SCL)(EXCL)의 크기를 서로 비교한다.If the comparison result is ABS (SCL + ESCL) <RE, the process returns to the step of determining the completion of analog digital conversion. If ABS (SCL + ESCL) ≥RE, the magnitudes of the two accumulated values SCL (EXCL) are compared with each other. .

비교 결과 SCL≥EXCL이면 데이타 변동이 없는 경우로 간주하여 각 카운트값, SCL=EXCL=0으로 리세트 시키고 아날로그 디지탈 변환 완료를 판단하는 단계로 리턴하며, 비교 결과 SCL<EXCL이면 현재 입력된 데이타(DATA)를 새로운 데이타(New EVENT)로 간주하고 각 카운트값 SCL=EXCL=0으로 리세트시킨후 새로운 데이타를 현재 데이타와 서로 비교한다(New EVENT=EVENT).If the result of the comparison is SCL≥EXCL, it is regarded as if there is no data change, and resets each count value, SCL = EXCL = 0, and returns to determining the completion of analog digital conversion.If the comparison result is SCL <EXCL, the currently input data ( DATA) is regarded as new data and is reset to each count value SCL = EXCL = 0, and new data is compared with the current data (New EVENT = EVENT).

이와같이 새롭게 간주된 데이타와 현재 사용중인 데이타를 비교한 결과 두 데이타가 서로 상이한 값이면 아날로그 디지탈 변환 완료를 판단하는 단계로 리턴하고, 서로 다른 값이면 새로운 데이타를 정상 데이타로 간주하여(EVENT=New EVENT, CL=EVENT) 해당 이벤트 처리 루틴을 수행(CALL)한다.As a result of comparing the newly considered data with the currently used data, if the two data values are different from each other, the process returns to the step of determining the completion of the analog digital conversion, and if the different data values are different, the new data is regarded as normal data (EVENT = New EVENT). , CL = EVENT) Performs the event handling routine (CALL).

위와같은 일련의 과정을 아날로그 디지탈 변환기(3)에서 변환 완료 신호가 입력될때마다 이를 주기로 실행하므로서 아날로그 디지탈 변환 데이타를 안정화시킨다.The above series of processes are performed every time a conversion completion signal is input from the analog digital converter 3, thereby stabilizing the analog digital conversion data.

즉, 본 발명은 타이머(5)를 이용해서 아날로그 디지탈 변환 스타트 신호를 주기적으로 발생시키고(설정된 타이머 시간 간격으로 발생), 아날로그 디지탈 변환 완료 신호를 인터럽트로 하여 통계 처리를 실행하며, 이 통계 처리의 결과로 입력 데이타가 데이타 변동이 일어난 경우와 그렇지 않은 경우로 구분하여 데이타 처리를 수행하므로서 데이타 변동을 막고, 세밀한 데이타 제어를 가증하게 하며, 이러한 본 발명의 방법으로 전자 악기의 미디(MIDI)믹서 등과 같은 아날로그 디지탈 변환 데이타 입력의 변동에 민감한 제품에서도 안정된 데이타 처리와 높은 정밀도의 데이타 처리를 가능하게 하며, 적절한 이벤트 발생 횟수의 조절과 아날로그 디지탈 변환기를 이용하는 프로세서(제어기)의 동작에 고도의 신뢰성을 확보할 수 있는 효과가 있다.That is, the present invention periodically generates an analog digital conversion start signal using the timer 5 (generated at a set timer time interval), and executes statistical processing by interrupting the analog digital conversion completion signal. As a result, the input data is classified into a case where data fluctuations occur and a case where the data fluctuations do not occur, thereby preventing data fluctuations and increasing fine data control. The method of the present invention provides a MIDI mixer of an electronic musical instrument. Even in the products sensitive to the fluctuations of analog digital conversion data input, stable data processing and high precision data processing are possible, and high reliability is secured in the control of the appropriate number of event occurrences and the operation of the processor (controller) using the analog digital converter. It can work.

또한 본 발명의 아날로그 디지탈 변환 데이타 안정화 방법에 전 병렬형 아날로그 디지탈 변환기(FLASH TYPE A/D CONVERTOR)를 사용하는 경우는 타이머로 아날로그 디지탈 변환기에 인터럽트 신호를 주지않고 바로 마이컴에 인터럽트를 거는 방법을 사용할 수도 있다.In addition, when using the FLASH TYPE A / D CONVERTOR for the analog digital conversion data stabilization method of the present invention, a method of immediately interrupting the microcomputer without giving an interrupt signal to the analog digital converter using a timer may be used. It may be.

Claims (1)

아날로그 디지탈 변환을 시작하고, 아날로그 디지탈 변환이 종료되었는가를 판단하는 제 1 과정과, 상기 제 1 과정에서 아날로그 디지탈 변환이 종료된 경우에는 입력 디지탈 데이타(DATA)와 현재 사용하고 있는 데이타(CL)와의 차의 절대치(S=ABS(DATA-CL))를 산출하여 미리 설정된 기준값(TH)과 비교하는 제 2 과정과, 상기 제 2 과정에서 비교 결과 절대치(S)≥기준값(TH)인 경우의 횟수(EXCL)와 절대치(S)<기준값(TH)인 경우의 횟수(SCL)를 누산하는 제 3 과정과, 상기 제 3 과정에서 구한 누산 횟수의 합(SCL+EXCL)을 설정한 기준값(RE)과 비교하는 제 4 과정과, 상기 제 4 과정에서 비교 결과 누산 횟수의 합(SCL+EXCL)<기준값(RE)인 경우는 상기 제 1 과정으로 리턴하고, SCL+EXCL≥RE이면 누산 횟수(SCL)(EXCL)를 서로 비교하는 제 5 과정과, 상기 제 5 과정에서 비교 결과 SCL≥EXCL이면 데이타 변동이 없는 경우로 간주하고 SCL=EXCL=0으로 리세트하며, SCL<EXCL이면 SCL=EXCL=0으로 리세트함과 함께 현재 입력된 데이타(DATA)를 새로운 데이타(New EVENT)로 간주하고 이 새로운 데이타를 현재 사용하고 있는 데이타(EVENT)와 비교하는 제 6 과정과, 상기 제 6 과정에서 간주된 새로운 데이타와 현재 사용중인 데이타의 비교 결과 동일한 경우에는 상기 제 1 과정으로 리턴하고, 상이한 경우에는 새로운 데이타를 정상 데이타로서 처리하는 제 7 과정으로 이루어진 아날로그 디지탈 변환 데이타 안정화 방법.A first step of starting analog digital conversion and determining whether the analog digital conversion has ended; and, if the analog digital conversion is terminated in the first step, between the input digital data DATA and the currently used data CL. A second process of calculating an absolute value S = ABS (DATA-CL) of the difference and comparing it with a preset reference value TH, and the number of times when the absolute value S is a reference value TH in the second process; (3) a third step of accumulating the number SCL in the case of (EXCL) and an absolute value S <reference value TH, and a reference value RE that sets the sum SCL + EXCL of the number of accumulations obtained in the third step. If the sum of the result of the comparison in the fourth process (SCL + EXCL) < reference value (RE), the process returns to the first process, and if SCL + EXCL ≥ RE, the accumulation count (SCL). (EXCL) is compared with each other, and when the comparison result SCL≥EXCL in said fifth process, It is assumed that there is no other change, and it is reset to SCL = EXCL = 0. If SCL <EXCL, it is reset to SCL = EXCL = 0, and the currently input data DATA is regarded as new EVENT. When the sixth step of comparing this new data with the currently used data (EVENT) and the comparison result of the new data considered in the sixth step with the currently used data are returned to the first step, if different, And a seventh process of processing new data as normal data.
KR1019930021275A 1993-10-14 1993-10-14 Stability method of analog digital transform data KR950010762B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019930021275A KR950010762B1 (en) 1993-10-14 1993-10-14 Stability method of analog digital transform data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019930021275A KR950010762B1 (en) 1993-10-14 1993-10-14 Stability method of analog digital transform data

Publications (2)

Publication Number Publication Date
KR950013050A KR950013050A (en) 1995-05-17
KR950010762B1 true KR950010762B1 (en) 1995-09-22

Family

ID=19365786

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019930021275A KR950010762B1 (en) 1993-10-14 1993-10-14 Stability method of analog digital transform data

Country Status (1)

Country Link
KR (1) KR950010762B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1198004A3 (en) * 2000-10-13 2003-10-01 Texas Instruments Inc. Semiconductor device having power distribution lines thereon

Also Published As

Publication number Publication date
KR950013050A (en) 1995-05-17

Similar Documents

Publication Publication Date Title
Doney Moments of ladder heights in random walks
US5296856A (en) Window tracking ADC
CN1190988C (en) Method for reducing current consumption of mobile communication terminals
CN112165328B (en) ADC digital-to-analog conversion error correction method, device and medium
KR950010762B1 (en) Stability method of analog digital transform data
EP0483846A2 (en) Analog-to-digital converter circuit
JP4915172B2 (en) Arbitration circuit
EP0144143A2 (en) Circuit arrangement for adjusting sound volume
EP0009488B1 (en) Arrangement for measuring the ratio between a number of events occurring after each other in a first and second series of events
US20020194522A1 (en) Operation report creation system, operation report creation method, and operation report creation program
EP0221771B1 (en) Digital display apparatus
CA2037484C (en) Method and circuit arrangement for level monitoring
Callahan Random rounding: Some principles and applications
Wasserman et al. A program to calculate bootstrap confidence intervals for the process capability index Cpk
US5864493A (en) Self-adapting interval mean value filter
EP0633667A1 (en) Analogue-to-digital converters
KR100335468B1 (en) Analog-Digital Converter and Digital Processing System using the same
JPS645643B2 (en)
JPH01150201A (en) Storage device for waveform data
KR100453111B1 (en) An logarithm sweep method
JP3264347B2 (en) Short-time power calculator
JP3561737B2 (en) Calibration method of measuring instrument
JPS6131440Y2 (en)
SU385393A1 (en) ANALOG-DISCRETE CONVERTER
JPS58170223A (en) Pulse count system

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
LAPS Lapse due to unpaid annual fee