Claims (6)
통신용의 시리얼페리페럴인터페이스를 구비하는 마이크로콘트롤 유닛을 사용하는 펄스폭 계측방법으로, 상기 마아크로콘트로유닛에 설치된 CPU의 인터럽트수단과 상기 시리얼페리펠러인터페이스를 병렬로 접속하고, 이것에 펄스폭을 계측해아 할 펄스를 입력하고, 이 펄스의 계측 개시를 상기 인터럽트수단에 의하여 식별하고, 상기 시리얼페리페럴인터페이스는, 입력한 상기 펄스를 기준클록에 의하여 샘플링하면서 수신함으로써 입력펄스의 펄스폭을 계측하는 것을 특징으로 하는 펄스폭 계측방법.A pulse width measuring method using a microcontrol unit having a serial peripheral ferrite interface for communication, comprising the steps of: connecting an interrupt means of a CPU provided in the microcontroller unit and the serial ferrier pellet interface in parallel; And the serial peripheral interface measures the pulse width of the input pulse by sampling the input pulse with the reference clock and receiving the pulsed signal by sampling it with the reference clock Wherein the pulse width measuring method comprises the steps of:
제1항에 있어서, 상기 시리얼페리페럴인터페이스는, 적어도 8개의 기준클록에 의한 입력펄스의 샘플링에 의하여 초기상태로 되돌아와 입력펄스의 수신을 계속하고, 입력펄스의 종료시에 인터럽트를 발생하고, 상기 시리얼페리페럴인터페이스의 동작을 정지시키는 것을 특징으로 하는 펄스폭 계측방법.The serial peripheral interface of claim 1, wherein the serial peripheral interface returns to an initial state by sampling input pulses with at least eight reference clocks, continues receiving input pulses, generates an interrupt upon termination of an input pulse, And terminating the operation of the serial peripheral interface.
제1항 또는 제2항에 있어서, 상기 기준클록은, CPU클록을 분주하여 생성되고, 그 분주비의 변경에 의하여 계측하는 펄스폭의 분해능을 변경시키는 것을 특징으로 하는 펄스폭 계측방법.The pulse width measuring method according to claim 1 or 2, wherein the reference clock is generated by dividing the CPU clock, and the resolution of the pulse width measured by changing the division ratio is changed.
통신용의 시리얼페리페럴인터페이스를 구비하는 마이크로콘트롤 유닛을 사용하는 펄스폭 계측장치로, 펄스폭을 계측해야할 펄스를 입력하는 펄스입력부와, 상기 시리얼페리페럴인터페이스와 병렬로 접속하며, 상기 마이크로콘트롤유닛의 CPU에 인터럽트처리를 행하는 인터립트 수단과, 상기 인터럽트수단내에 설치되고, 상기 펄스입력으로부터 입력되는 펄스의 계측개시신호를 식별하는 식별수단과, 기준 클록을 발생하는 시프트클록회로를 구비하고, 상기 시피얼페리페럴인터페이스는, 상기 펄스입력으로부터 입력하는 입력펄스를 기준클록에 의하여 샘플링하여 수신하기 위한 수신수단을 가지며 이루어지는 것을 특징으로 하는 펄스폭 계측장치.A pulse width measuring apparatus using a microcontrol unit having a serial peripheral interface for communication, comprising: a pulse input unit for inputting a pulse to be measured for pulse width; and a control unit connected in parallel with the serial peripheral interface, And a shift clock circuit which is provided in the interrupt means and identifies a measurement start signal of a pulse input from the pulse input and generates a reference clock, Wherein the peripheral peripheral interface has reception means for sampling and receiving an input pulse input from the pulse input by a reference clock.
제4항에 있어서, 상기 시리얼페리페럴인터페이스는, 적어도 8개의 기준클록에 의한 입력펄스의 샘플링하는 수단과, 상기 기준클록에 따라 입력펄스의 종료시에 동작을 정지하는 동작정지수단을 가지며 이루어지는 것을 특징으로 하는 펄스폭 계측장치.5. The serial peripheral interface according to claim 4, wherein said serial peripheral interface comprises means for sampling input pulses by at least eight reference clocks and means for stopping operation at the end of input pulses in accordance with said reference clock The pulse width measuring apparatus comprising:
제4항에 있어서, 상기 시프트클록 발생회로는, CPU클록의 분주비의 변경에 의하여 계측하는 펄스폭의 분해능을 변경하여 기준클록을 발생시키는 것을 특징으로 하는 펄스폭 계측장치.The pulse width measuring apparatus according to claim 4, wherein the shift clock generating circuit generates a reference clock by changing a resolution of the pulse width measured by changing the frequency division ratio of the CPU clock.
※ 참고사항 : 최초출원 내용에 의하여 공개하는 것임.※ Note: It is disclosed by the contents of the first application.