Claims (16)
상이한 출력주기를 갖는 두개의 분리된 시간가변변수 출력주기의 시작과 끝을 기록하는 상기 마이크로제어기의 한쌍의 출력포트에서 신호를 발생하기 위해 프로그램가능한 타이머를 가지며, 상기 출력 주기의 장단을 결정하는 단계, 긴 주기에서 짧은 주기를 연속적으로 감산하는 단계, 긴 주기와 짧은 주기간의 차이가 짧은 주기의 값보다 적을때 상기 차이를 제1메모리된 차이로 기억시키는 단계, 각 감산후에 짧은 주기의 값을 타이머에 로드시키는 단계, 로드된 각 시간마다 타이머를 작동시키는 단계, 타이머가 짧은 출력주기의 값이 로드된 후 종료되는 각시간마다 짧은 출력주기와 연결된 출력포트를 토글시키는 단계, 상기 주기간의 차이가 짧은 주기의 값보다 작게될때 상기 제1메모리된 차이를 타이머에 로드시키는 단계, 타이머 작동단계, 및 제1메모리된 값이 로드된 후 종료후에 긴 출력 주기와 연결된 출력포트를 토글시키는 단계로 구성되는 것을 특징으로하는, 단일 마이크로제어기를 사용하는 방법.Having a programmable timer for generating a signal at a pair of output ports of said microcontroller for recording the start and end of two separate time variable variable output periods having different output periods, determining the short and long duration of said output periods; Successively subtracting short periods from long periods, storing the difference as a first memorized difference when the difference between the long and short periods is less than the value of the short periods, and counting the value of the short periods after each subtraction. Loading a timer, operating a timer for each loaded time, toggling an output port connected to a short output cycle at each time when the timer ends after the value of the short output cycle is loaded, and having a short difference between the cycles. Loading the first memorized difference into a timer when the value of the period is smaller than a period, a timer operating step, and And toggling an output port associated with a long output period after termination after the first memorized value is loaded.
제1항에 있어서, 타이머가 상기 제1메모리 값으로 종료된 후 상기 제1메모리 값과 짧은 출력주기 값 사이의 차이를 표시하는 제2메모리값으로 타이머에 로드시키는 단계, 타이머 작동개시단계, 및 상기 메모리값이 로드된후 타이머가 종료될때 짧은 출력주기와 연결된 출력포트를 토글시키는 단계를 더 포함하는 것을 특징으로 하는 마이크로 제어기를 사용하는 방법.The method of claim 1, further comprising: loading the timer with a second memory value indicating a difference between the first memory value and the short output period value after the timer has finished with the first memory value, starting the timer operation, and And toggling an output port coupled with a short output period when the timer expires after the memory value has been loaded.
단일 마이크로제어기는, 차량의 측정된 차량속도와 엔진 rpm을 나타내는 출력신호를 발생하는 프로그램 가능한 타이머를 구비하며, 속도 및 rpm이용장치에 각각 연결된 한쌍의 출력포트와 차량휘일의 회전에 따라 신호를 발생하는 제1신호 발생수단 및 차량엔진 크랭크샤프트의 회전에 따라 신호를 발생하는 제2신호발생수단에 각가 연결된 한쌍의 입력포틀르 구비하고, 상기 제1 및 제2신호 발생 수단에 의해 발생된 신호를 판독하는 단계, 차량속도와 엔진 rpm에 따라 상이한 주기를 가진 출력신호를 발생하도록 상기 신호를 측정하는 단계, 짧은 주기를 가진 출력신호와 긴 주기를 가진 출력신호를 결정하도록 상기 출력 신호를 소팅하는 단계, 짧은 주기를 가진 출력신호를 타이밍하고 짧은 주기를 가진 출력신호를 타이밍하는 타이머가 종료되는 각 시간마다 짧은 주기를 가진 출력신호에 대응하는 출력 포트를 토글시키며, 짧은주기를 가진 출력신호와 상기 최종 출력의 관계를 결정하여 긴 주기를 가진 출력신호를 타이밍하는 단계, 및 긴 출력신호가 짧은 출력신호와의 소정관계에 있는 각 시간마다 긴 주기를 가진 출력신호에 대응하는 출력포트를 토글시키는 단계로 구성되는 것을 특징으로 하는, 상기 단일 마이크로제어기를 사용하는 방법.The single microcontroller has a programmable timer that generates an output signal indicative of the measured vehicle speed and engine rpm of the vehicle, and generates a signal according to the rotation of the vehicle wheel and a pair of output ports connected to the speed and rpm utilization device, respectively. A pair of input ports each connected to the first signal generating means and a second signal generating means for generating a signal according to the rotation of the vehicle engine crankshaft, and receiving the signals generated by the first and second signal generating means. Reading, measuring the signal to generate an output signal having a different period according to vehicle speed and engine rpm, sorting the output signal to determine an output signal with a short period and an output signal with a long period Each time the timer for timing the output signal with a short period and timing the output signal with a short period ends. Toggling an output port corresponding to an output signal having a short period every time, determining a relationship between the output signal having a short period and the final output, and timing an output signal having a long period, and outputting a short output signal. And toggling an output port corresponding to an output signal with a long period at each time in a predetermined relationship with the first microcontroller.
제3항에 있어서, 상기출력 신호간의 관계를 결정하는 단계는, 긴 주기를 가진 출력신호에서 짧은 출력을 가진 출력신호를 연속적으로 감산하고 출력 신호간의 차이를 짧은 주기보다 작게되는 제1수량을 규정하기 위해 출력신호간의 차이를 시간측정하는 타이머를 사용하며, 그리고 타이머가 상기 제1수량을 종료시킬 때 긴 출력신호에 대응하는 출력포트를 토글시켜 실행되는 것을 특징으로 하는 마이크로제어기를 사용하는 방법.The method of claim 3, wherein the determining of the relationship between the output signals defines a first quantity in which an output signal having a short period is continuously subtracted from the output signal having a long period and the difference between the output signals is smaller than a short period. And a timer for timing the difference between the output signals, and toggling the output port corresponding to the long output signal when the timer terminates the first quantity.
제4항에 있어서, 상기 출력 신호간의 관계를 결정하는 단계는, 제1수량이 종료된 후 제2수량을 시간측정 하기위해 타이머를 사용하고, 짧은 출력 신호와 상기 제1수량간의 차이와 동일하게 설정되는 제2수량이 종료될 때 짧은 출력주기에 대응하는 출력포토를 토글시켜 더 실행되는 것을 특징으로 하는 마이크로제어기를 사용하는 방법.5. The method of claim 4, wherein determining the relationship between the output signals comprises using a timer to time the second quantity after the first quantity has ended and equalizing the difference between the short output signal and the first quantity. And executing the output port corresponding to the short output period when the second quantity to be set is terminated to further execute.
단일 마이크로제어기는 측정된 차량속도와 차량의 엔진 rpm을 표시하는 출력신호를 발생하는 프로그램 가능한 타이머를 자지며, 각각 속도 및 rpm이용장치에 접속된 한쌍의 출력포트와 차량휘일의 회전에 따라 신호를 발생하는 제1신호발생수단과 차량엔진크랭크 샤프트의 회전에 따라 신호를 발생하는 제2신호발생수단에 각각 접속된 한쌍의 입력포트를 가지며, 상기 제1 및 제2신호 발생수단에 의해 발생된 신호를 판독하는 단계, 차량속도와 엔진 rpm에 대응하며 상이한 주기를 가진 출력신호를 발생하기 위해 상기 신호를 측정하는 단계, 긴 주기를 가진 출력신호와 짧은 주기를 가진 출력신호를 결정하기위해 상기 출력신호를 소팅하는 단계, 긴주기로부터짧은주기를 연속적으로 감산하는 단계, 긴 주기와 짧은 주기간의 차이가 짧은 주기의 값보다 작을 때 제1메모리 차이로서 상기 차이를 기억시키는 단계, 각각의 감산후에 짧은 주기의 값을 타이머에 로드시키는 단계, 로드된 각시간마다 타이머를 작동시키는 단계, 타이머가 짧은 출력주기의 값으로 로드된후 종료되는 각 시간마다 짧은 출력주기와 연결된 출력 포트를 토글시키는 단계, 상기 주기간의 차이가 짧은 주기의 값보다 작게될때 사기 제1메모리 차이를 타이머에 로드시키는 단계, 타이머 작동단계, 및 제1메모리 값으로 로드된후 타이머가 종료된후에 긴 출력 주기와 연결되는 출력 포트를 토글시키는 단계로 구성되는 것을 특징으로 하는 단일 마이크로제어기를 사용하는 방법.A single microcontroller has a programmable timer that generates an output signal that indicates the measured vehicle speed and engine rpm of the vehicle, and outputs a signal based on the rotation of the vehicle wheel and a pair of output ports connected to the speed and rpm utilization devices, respectively. A first signal generating means and a pair of input ports respectively connected to the second signal generating means for generating a signal according to the rotation of the vehicle engine crankshaft, the signal generated by the first and second signal generating means Reading the signal, measuring the signal to generate an output signal having a different period and corresponding to the vehicle speed and the engine rpm, and determining the output signal having a long period and the output signal having a short period. Sorting, subtracting short periods from long periods continuously, and the difference between the long and short periods is less than the value of the short period. Storing the difference as a first memory difference, loading a value of a short period into the timer after each subtraction, operating a timer for each loaded time, and the timer being loaded with a value of the short output period. Toggling the output port connected to a short output period for each time that is terminated afterwards, loading a fraudulent first memory difference into the timer when the difference between the periods is smaller than the value of the short period, the timer operating step, and the first memory Toggling an output port connected to a long output period after the timer has expired after being loaded with a value.
제6항에 있어서, 타이머가 상기 제1메모리값을 종료한 후 짧은 출력주기의 값과 상기 제1메모리값사이의 차이를 나타내는 제2 메모리값을 타이머에 로드시키는 단계, 타이머를 작동시키는 단계, 및 상기 제2메모리 값이 로드된후 타이머가 종료될때 짧은 출력주기와 연결된 출력 포트를 토글시키는 단계를 더 포함하는 것을 특징으로 하는, 마이크로제어기를 사용하는 방법.7. The method of claim 6, further comprising: loading a timer with a second memory value representing a difference between the value of the short output period and the first memory value after the timer terminates the first memory value, operating the timer; And toggling an output port coupled with a short output period when a timer expires after the second memory value has been loaded.
제7항에 있어서, 상기 제1메모리값이 사기 타이머의 로드한계를 표시하는 소정값보다 작다면 상기 제2의 출력 포트를 동시에 토글시키는 단계를 더 포함하는 것을 특징으로 하는 마이크로제어기를 사용하는 방법.8. The method of claim 7, further comprising: simultaneously switching the second output port if the first memory value is less than a predetermined value indicating a load limit of the fraud timer. .
제8항에 있어서, 메모리 값이 상기 소정값보다 작을때 후속 측정사이클로 상기 제1메모리되어 긴 출력주기의 값을 조정하는 단계를 더 포함하는 것을 특징으로 하는, 마이크로 제어기를 사용하는 방법.9. The method of claim 8, further comprising the step of adjusting the value of the first memory-long output period in a subsequent measurement cycle when the memory value is less than the predetermined value.
제7항에 있어서, 제2메모리값이 소정로드한계보다 적은지를 결정하는 단계, 제1메모리 값으로 타이머를 로드시키는 단계, 타이머를 작동시키는 단계, 및 제2메모리값이 상기 소정 로드한계보다 적다면 타이머가 종료될때 양 출력포트를 토글시키는 단계를 더 포함하는 것을 특징으로 하는, 마이크로제어기를 사용하는 방법.8. The method of claim 7, further comprising: determining whether the second memory value is less than a predetermined load limit, loading a timer with the first memory value, operating a timer, and a second memory value being less than the predetermined load limit. If the timer expires, further comprising the step of toggling both output ports.
제10항에 있어서, 제2메모리값이 상기 소정 로드한계보다 적다면 후속측정사이클로 긴 타이머 주기의 값을 조정하는 단계를 더 포함하는, 마이크로 제어기를 사용하는 방법.11. The method of claim 10, further comprising adjusting a value of a long timer period with a subsequent measurement cycle if a second memory value is less than the predetermined load limit.
차량의 엔진 rpm 및 휘일속도신호를 측정하고, 상기 차량의 측정된 엔진 rpm 및 휘일속도를 나타내는 상기 마이크로제어기의 출력 포트에서 신호를 발생하는 한쌍의 타이머를 가지며, 상기 마이크로 제어기로 엔진 rpm 및 차량속도를 나타내는 펄스입력신호를 제공하는 단계, 차량속도를 표시하는 펄스입력의 주파수에 비례하여 변하는 크기로 속도출력주기신호와 엔진 rpm을 표시하는 펄스입력의 주파수에 비례하여 변하는 크기로 rpm 출력 주기신호를 발생하기위해 상기 타이머중 하나를 사용하는 단계, 짧은 상기 출력주기신호를 시간측정 하기 위해 다른 타이머를 사용하며 따라서 상기 마이크로제어기의 대응출력을 제어하는 단계, 및 다른 출력주기신호를 시간측정하기 위해 짧은 출력주기신호의 값을 이용하며 따라서 상기 마이크로 제어기의 다른 대응 출력 포트를 제어하는 단계로 구성되는 것을 특징으로 하는, 마이크로 제어기를 사용하는 방법.It has a pair of timers for measuring the engine rpm and wheel speed signals of the vehicle and generating a signal at the output port of the microcontroller indicating the measured engine rpm and wheel speed of the vehicle, and the engine rpm and vehicle speed with the microcontroller. The step of providing a pulse input signal indicating a, the speed output cycle signal to a magnitude that changes in proportion to the frequency of the pulse input indicating the vehicle speed and the rpm output cycle signal to a magnitude that changes in proportion to the frequency of the pulse input indicating the engine rpm Using one of the timers to generate, using another timer to time short the output period signal and thus controlling the corresponding output of the microcontroller, and short to time another output period signal. Using the value of the output period signal and thus Yes output how to use, a microcontroller, characterized in that consisting of a step of controlling the port.
제12항에 있어서, 짧은 주기를 가진 출력신호를 시간측정하고, 짧은 주기를 가진 출력신호와 상기 최종언급된 출력신호의 관계를 결정하여 긴 주기를 가진 출력신호를 시간측정하는 타이머가 종료될때마다 짧은 주기를 가진 출력신호에 대응하는 출력포트를 토글시키는 단계, 및 긴 출력 신호가 짧은 출력 신호와 소정관계에 있는 각 시간마다 긴 주기를 가진 출력신호에 대응하는 출력포트를 토글시키는 단계를 포함하는 것을 특징으로 하는 마이크로제어기를 사용하는 방법.13. The method of claim 12, wherein each time the output signal having a short period is measured and the timer for measuring the output signal having a long period is determined by determining a relationship between the output signal having a short period and the final output signal. Toggling the output port corresponding to the output signal having a short period, and toggling the output port corresponding to the output signal having a long period each time a long output signal has a predetermined relationship with the short output signal. A method of using a microcontroller, characterized in that.
제12항에 있어서, 긴 주기를 가진 출력신호로부터 짧은 주기를 가진 출력신호를 연속적으로 빼는 단계, 출력신호들간의 차이가 짧은 주기보다 적게되는 제1수량을 한정하기위해 출력신호간의 차이를 시간측정하는 타이머를 사용하는 단계, 및 타이머가 상기 제1수량을 종료시킬 때 긴 출력 신호에 대응하는 출력포트를 토글시키는 단계를 포함하는 것을 특징으로 하는, 마이크로제어기를 사용하는 방법.13. The method of claim 12, further comprising the steps of: continuously subtracting the output signal with a short period from the output signal with a long period, time difference between the output signals to define a first quantity such that the difference between the output signals is less than the short period. Using a timer, and toggling an output port corresponding to a long output signal when the timer terminates the first quantity.
제12항에 있어서, 상기 일 타이머는 종료되면서 일정한 소정시간 주기가 재로드되며, 상기 출력주기신호를 발생하는 단계는, 제1타이머의 종료에 의해 발생된 최소한 소정수의 타이머 인터럽트를 포함하는 주기이상 대응입력신호를 포함하는 타이머 주기의 시작과 끝사이의 네트시간을 타이머 주기의 길이에 의해 체배된 타이머 주기의 수에 더하는 단계, 펄스수에 의해 분할하는 단계, 및 소정 측정인자로 체배되는 단계를 포함하는 것을 특징으로 하는, 마이크로제어기를 사용하는 방법.The method of claim 12, wherein the one timer is terminated and a predetermined predetermined period of time is reloaded, and the generating of the output period signal includes a period including at least a predetermined number of timer interrupts generated by the termination of the first timer. Adding the net time between the start and the end of the timer period including the corresponding input signal to the number of timer periods multiplied by the length of the timer period, dividing by the number of pulses, and multiplying by a predetermined measurement factor. Characterized in that it comprises a, microcontroller.
제14항에 있어서, 상기 일 타이머는 종료되면서 일정한 소정시간 주기로 재로드되고, 상기 출력주기신호를 발생하는 단계는, 제1타이머의 종료에 의해 발생되는 최소한 소정수의 타이머인터럽트를 포함하는 주기이상으로 대응 입력신호를 포함하는 펄스를 카운트하는 단계, 개시펄스 및 종료펄스와 대응하는 타이머주기의 시작과 끝 사이에 네트시간을 타이머주기의 길이에 의해 체배된 타이머주기의 수에 더하는 단계, 펄스수에 의해 포함하는 단계, 및 소정 측정인자로 체배되는 단계를 포함하는 것을 특징으로 하는, 마이크로 제어기를 사용하는 방법.15. The method of claim 14, wherein the one timer is terminated and reloaded at a predetermined predetermined time period, and the generating of the output period signal comprises: at least a period including at least a predetermined number of timer interrupts generated by the end of the first timer. Counting pulses including the corresponding input signal, adding the net time between the start and end pulses and the start and end of the corresponding timer period to the number of timer cycles multiplied by the length of the timer cycle, And multiplying by a predetermined measurement factor.
※ 참고사항 : 최초출원 내용에 의하여 공개하는 것임.※ Note: The disclosure is based on the initial application.