KR101058030B1 - Motor control device and method - Google Patents

Motor control device and method Download PDF

Info

Publication number
KR101058030B1
KR101058030B1 KR20050002450A KR20050002450A KR101058030B1 KR 101058030 B1 KR101058030 B1 KR 101058030B1 KR 20050002450 A KR20050002450 A KR 20050002450A KR 20050002450 A KR20050002450 A KR 20050002450A KR 101058030 B1 KR101058030 B1 KR 101058030B1
Authority
KR
South Korea
Prior art keywords
motor
processor
motor control
reference position
current position
Prior art date
Application number
KR20050002450A
Other languages
Korean (ko)
Other versions
KR20060082191A (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 KR20050002450A priority Critical patent/KR101058030B1/en
Publication of KR20060082191A publication Critical patent/KR20060082191A/en
Application granted granted Critical
Publication of KR101058030B1 publication Critical patent/KR101058030B1/en

Links

Images

Landscapes

  • Control Of Multiple Motors (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

본 발명은 디지털 카메라 동작 장치 및 방법에 관한 것으로, 모터 제어가 필요한 프로세서 내장 SOC(System on chip)에서 모터 제어부를 하드웨어로 구성함으로써, 모터 제어부가 모터를 제어하는 동안 프로세서가 다른 작업을 할 수 있도록 하여 시스템 성능을 향상시키는 모터 제어 장치 및 방법에 관한 것이다. 모터 제어 장치는 상기 모터의 초기 기준 위치를 생성하는 프로세서 및 상기 모터의 현재 위치와 상기 모터의 기준 위치를 비교하여 상기 모터의 이동을 제어하는 모터 제어수단을 포함한다. 본 발명에 따르면, 모터 제어가 필요한 프로세서 내장 SOC에서 모터 제어부를 하드웨어로 구성함으로써, 모터 제어부가 모터를 제어하는 동안 프로세서가 다른 작업을 할 수 있도록 하고, 모터 제어 결과를 인터럽트 방식으로 프로세서에 전송하여 시스템 성능을 향상시킬 수 있다.

Figure R1020050002450

The present invention relates to an apparatus and method for operating a digital camera, and by configuring a motor controller in hardware in a processor-integrated system on chip (SOC) requiring motor control, the processor may perform other tasks while the motor controller controls the motor. The present invention relates to a motor control apparatus and method for improving system performance. The motor control apparatus includes a processor for generating an initial reference position of the motor and motor control means for controlling movement of the motor by comparing a current position of the motor with a reference position of the motor. According to the present invention, by configuring the motor control unit in hardware in a processor-embedded SOC that requires motor control, the processor can perform other tasks while the motor control unit controls the motor, and transmits the motor control result to the processor in an interrupt manner. It can improve system performance.

Figure R1020050002450

Description

모터 제어 장치 및 방법{Apparatus and method for contrilling motor} Motor control device and method {Apparatus and method for contrilling motor}

도 1은 종래의 모터 제어 장치의 구성을 보이는 블록도 이다.1 is a block diagram showing the configuration of a conventional motor control apparatus.

도 2는 본 발명에 따른 모터 제어 장치의 구성을 보이는 블록도 이다.2 is a block diagram showing the configuration of a motor control apparatus according to the present invention.

도 3은 본 발명에 따른 모터 제어 방법의 동작을 보이는 흐름도 이다.3 is a flowchart showing the operation of the motor control method according to the present invention.

본 발명은 디지털 카메라 동작 장치 및 방법에 관한 것으로, 모터 제어가 필요한 프로세서 내장 SOC(System on chip)에서 모터 제어부를 하드웨어로 구성함으로써, 모터 제어부가 모터를 제어하는 동안 프로세서가 다른 작업을 할 수 있도록 하여 시스템 성능을 향상시키는 모터 제어 장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for operating a digital camera, and by configuring a motor controller in hardware in a processor-integrated system on chip (SOC) requiring motor control, the processor may perform other tasks while the motor controller controls the motor. The present invention relates to a motor control apparatus and method for improving system performance.

도 1은 종래의 모터 제어 장치의 구성을 보이는 블록도로서, 위치 검출부(11), DC 또는 스텝 모터(13), 모터 드라이브 IC(15), GPIO(General purpose input output) 제어부(17-1) 및 프로세서(17-2)를 포함하는 SOC(17)를 포함한다.1 is a block diagram showing the structure of a conventional motor control apparatus, which includes a position detecting unit 11, a DC or step motor 13, a motor drive IC 15, and a general purpose input output (GPIO) control unit 17-1. And an SOC 17 including a processor 17-2.

모터 제어가 필요한 SOC(17)에서 종래의 모터 제어는 일반적으로 GPIO 제어부(17-1)를 통해 이루어 졌으며, GPIO 제어부(17-1) 내부에 구비된 레지스터(미도시) 설정을 통하여 제어하였다. 또한 대부분의 모터 제어들은 폴링(Polling) 방식 으로 처리되어 프로세서(17-2)가 모터의 움직임과 위치를 지속적으로 파악하여 상당한 시간이 소모되었다.In the SOC 17 requiring the motor control, the conventional motor control is generally performed through the GPIO controller 17-1, and is controlled through a register (not shown) set inside the GPIO controller 17-1. In addition, most of the motor controls are handled in a polling manner, so that the processor 17-2 continuously detects the movement and position of the motor and consumes considerable time.

위치 검출부(11)는 DC 또는 스텝 모터(13)의 움직임값을 검출하여 GPIO 제어부(17-1)를 통해 프로세서(17-2)로 전송하고, 프로세서(17-2)는 DC 또는 스텝 모터(13)의 움직임을 모니터링하게 된다. 예를 들어, 디지털 카메라에서 보통의 포커스 렌즈(미도시)는 정밀한 구동이 필요하므로 DC 또는 스텝 모터(13)를 사용한다. 프로세서(17-2)가 포커스, 조리개, 셔터, 줌 신호를 생성하여 GPIO 제어부(17-1)를 통해 모터 드라이브 IC(15)로 인가하고, DC 또는 스텝 모터(13)는 모터 드라이브 IC(15)에 의해 구동된다. The position detecting unit 11 detects a motion value of the DC or step motor 13 and transmits the movement value of the DC or step motor 13 to the processor 17-2 through the GPIO control unit 17-1. 13) to monitor the movement. For example, a normal focus lens (not shown) in a digital camera uses a DC or step motor 13 because precise driving is required. The processor 17-2 generates the focus, iris, shutter, and zoom signals and applies them to the motor drive IC 15 through the GPIO controller 17-1, and the DC or step motor 13 supplies the motor drive IC 15. Driven by).

DC 또는 스텝 모터(13)의 움직임에 의해 렌즈 위치는 위치 검출부(11)에 의해 기구적인 기준 위치가 검출된다. 예를 들어, 포토 인터럽트 방식을 사용하는 경우, DC 또는 스텝 모터(13)의 움직임에 따라 인터럽트 신호가 온/오프 되며, 프로세서(17-2)는 이를 카운트하여 현재의 DC 또는 스텝 모터(13)의 위치를 파악하게 된다.The mechanical reference position is detected by the position detection unit 11 by the movement of the DC or step motor 13. For example, when the photo interrupt method is used, the interrupt signal is turned on / off according to the movement of the DC or step motor 13, and the processor 17-2 counts the current to the current DC or step motor 13. Will determine the location of.

종래의 SOC(17)에서는 모터 제어를 GPIO 제어부(17-1)를 통해 소프트웨어적으로 처리되며, DC 또는 스텝 모터(13)들을 제어할 수 있도록 모터 드라이브 IC(15)에서 펄스를 만들어 준다. 또한 DC 또는 스텝 모터(13)의 움직임에 의해 위치 검출부(11)에서 검출되는 신호는 SOC(17)로 전송되고, 프로세서(17-1)는 이를 검토하여 DC 또는 스텝 모터(13)의 현재 위치를 파악하고, 모터 드라이브 IC(15)에 피드백하게 된다. In the conventional SOC 17, the motor control is processed in software through the GPIO controller 17-1, and the motor drive IC 15 generates pulses to control the DC or step motors 13. In addition, the signal detected by the position detecting unit 11 by the movement of the DC or step motor 13 is transmitted to the SOC 17, the processor 17-1 examines the current position of the DC or step motor 13 And the feedback to the motor drive IC (15).                         

이와 같이 종래의 SOC(17)에서는 모터 제어를 프로세서(17-1)가 폴링 방식으로 처리하였다. 폴링 방식은 한 프로그램이나 장치에서 다른 프로그램이나 장치들이 어떠한 상태에 있는지를 지속적으로 체크하는 전송 제어 방식이다. 따라서, 프로세서(17-1)가 DC 또는 스텝 모터(13)를 제어하는 동안에는 다른 작업을 할 수 없다. 또한 주기적으로 DC 또는 스텝 모터(13)를 감시해야 하므로 전체적인 시스템 성능이 떨어진다.As described above, in the conventional SOC 17, the motor control was processed by the processor 17-1 in a polling manner. Polling is a transmission control method in which one program or device continuously checks a state of another program or device. Therefore, no other work can be performed while the processor 17-1 controls the DC or step motor 13. In addition, since the DC or step motor 13 must be monitored periodically, the overall system performance is reduced.

본 발명이 이루고자 하는 기술적인 과제는 모터 제어가 필요한 프로세서 내장 SOC에서 모터 제어부를 하드웨어로 구성함으로써, 모터 제어부가 모터를 제어하는 동안 프로세서가 다른 작업을 할 수 있도록 하고, 모터 제어 결과를 인터럽트 방식으로 프로세서에 전송하여 시스템 성능을 향상시키는 모터 제어 장치 및 방법을 제공하는데 있다.The technical problem to be achieved by the present invention is to configure the motor control unit in hardware in a processor-embedded SOC that requires motor control, so that the processor can perform other tasks while the motor control unit controls the motor, and the motor control result is interrupted. The present invention provides a motor control apparatus and method for transmitting to a processor to improve system performance.

본 발명이 이루고자 하는 상기 기술적인 과제를 해결하기 위한 모터 제어 장치는 상기 모터의 초기 기준 위치를 생성하는 프로세서; 및 상기 모터의 현재 위치와 상기 모터의 기준 위치를 비교하여 상기 모터의 이동을 제어하는 모터 제어수단을 포함하는 것이 바람직하다.Motor control device for solving the technical problem to be achieved by the present invention comprises a processor for generating an initial reference position of the motor; And motor control means for controlling movement of the motor by comparing a current position of the motor with a reference position of the motor.

본 발명에 있어서, 상기 모터의 현재 위치를 검출하여 상기 모터 제어부로 출력하는 위치 검출수단을 더 포함하는 것을 특징으로 한다.In the present invention, it further comprises a position detecting means for detecting the current position of the motor and outputs it to the motor control unit.

본 발명에 있어서, 상기 모터 제어수단은 상기 모터의 현재 위치와 상기 모 터의 기준 위치가 동일한 경우, 상기 프로세서에 인터럽트 신호를 발생하여 이를 알리는 것을 특징으로 한다.In the present invention, when the current position of the motor and the reference position of the motor is the same, the motor control means is characterized by generating an interrupt signal to the processor to inform it.

본 발명에 있어서, 상기 모터 제어 수단은 상기 모터의 현재 위치와 상기 모터의 기준 위치가 다른 경우, 소정의 모터 제어 신호를 출력하여 상기 모터의 위치를 변경하는 것을 특징으로 한다.In the present invention, when the current position of the motor and the reference position of the motor is different, the motor control means outputs a predetermined motor control signal, characterized in that for changing the position of the motor.

본 발명에 있어서, 상기 모터 제어수단은 상기 위치 검출수단으로부터 전송된 위치 검출 신호로 상기 모터의 현재 위치를 산출하고, 제어 신호에 의해 상기 모터가 이동해야할 위치를 산출하는 위치 산출부; 상기 프로세서로부터 전송된 상기 모터의 기준위치 및 상기 위치 산출부에서 산출된 상기 모터의 현재 위치를 저장하는 저장부; 및 상기 모터의 현재 위치와 상기 모터의 기준 위치를 비교하여, 상기 프로세서로 인터럽트 신호를 발생하거나, 상기 모터가 이동해야할 위치를 제어신호로써 상기 위치 산출부로 출력하여 상기 모터의 이동을 제어하는 모터 제어부를 포함하는 것을 특징으로 한다.In the present invention, the motor control means includes a position calculation unit for calculating the current position of the motor by the position detection signal transmitted from the position detection means, and calculates the position to which the motor to move by a control signal; A storage unit which stores a reference position of the motor transmitted from the processor and a current position of the motor calculated by the position calculator; And a motor controller comparing the current position of the motor with a reference position of the motor, generating an interrupt signal to the processor, or outputting a position to which the motor should move to the position calculator as a control signal to control the movement of the motor. Characterized in that it comprises a.

본 발명이 이루고자 하는 상기 기술적인 과제를 해결하기 위한 모터 제어 방법은 (a) 프로세서에 의해 생성된 모터가 이동해야할 초기 기준 위치를 수신하는 단계; 및 (b) 상기 모터의 현재 위치와 상기 모터의 기준 위치를 비교하여 상기 모터의 이동을 제어하는 단계를 포함하는 것이 바람직하다.The motor control method for solving the technical problem to be achieved by the present invention comprises the steps of (a) receiving an initial reference position to move the motor generated by the processor; And (b) comparing the current position of the motor with a reference position of the motor to control the movement of the motor.

본 발명에 있어서, 상기 모터의 현재 위치와 상기 모터의 기준 위치가 동일한 경우, 상기 프로세서에 인터럽트 신호를 발생하여 이를 알리고, 상기 모터의 현재 위치와 상기 모터의 기준 위치가 다른 경우, 상기 모터의 위치를 변경하는 것을 특징으로 한다.In the present invention, when the current position of the motor and the reference position of the motor is the same, it generates an interrupt signal to inform the processor, and informs this, if the current position of the motor and the reference position of the motor is different, the position of the motor It characterized in that to change.

이하, 첨부된 도면을 참조하여 본 발명을 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail the present invention.

도 2는 본 발명에 따른 모터 제어 장치의 구성을 보이는 블록도로서, 위치 검출부(21), DC 또는 스텝 모터(23), 모터 드라이브 IC(25), 모터 제어수단(27-1), 인터럽트 제어수단(27-2) 및 프로세서(27-3)를 포함하는 SOC(27)를 포함한다. 본 발명에서 모터 제어수단(27-1)은 위치 산출부(27-11), 저장부(27-12) 및 모터 제어부(27-12)를 포함한다.Fig. 2 is a block diagram showing the configuration of the motor control apparatus according to the present invention. The position detecting unit 21, the DC or step motor 23, the motor drive IC 25, the motor control means 27-1, and the interrupt control are shown. SOC 27 comprising means 27-2 and processor 27-3. In the present invention, the motor control means 27-1 includes a position calculator 27-11, a storage 27-12, and a motor controller 27-12.

시스템 성능을 향상시키기 위해, DC 또는 스텝 모터(23) 제어 시에 프로세서(27-3)의 작업을 최소화하여야 한다. 이를 위해 DC 또는 스텝 모터(23) 제어를 하드웨어적으로 모터 제어수단(27-1)에서 수행하도록 한다. 또한 모터 제어수단(27-1) 내부에 저장부(27-12)를 구비하여, 프로세서(27-3)가 원하는 DC 또는 스텝 모터(23)의 위치값을 저장하도록 한다. 이는 프로세서(27-3)가 위치값을 읽어 확인하는 횟수를 줄이기 위함이다. 또한 모터 제어수단(27-1)과 프로세서(27-3)의 데이터 전송 제어방식은 폴링방식이 아닌 인터럽트 방식으로 구현한다. DC 또는 스텝 모터(23)가 원하는 위치로 이동하였을 때 인터럽트 제어수단(27-2)을 통해 프로세서(27-3)에 모터의 이동이 끝났음을 알리는 신호를 전달함으로써 프로세서(27-3)의 작업을 최소화시킨다. 또한 인터럽트 신호가 발생되지 않을 경우, 프로세서(27-3)는 다른 작업을 할 수 있게 된다.In order to improve system performance, the work of the processor 27-3 should be minimized when controlling the DC or step motor 23. To this end, the DC or step motor 23 control is performed by the motor control means 27-1 in hardware. In addition, the storage unit 27-12 is provided inside the motor control unit 27-1 so that the processor 27-3 stores the desired position value of the DC or step motor 23. This is to reduce the number of times that the processor 27-3 reads and confirms the position value. In addition, the data transmission control method of the motor control means 27-1 and the processor 27-3 is implemented by an interrupt method rather than a polling method. When the DC or step motor 23 moves to the desired position, the interrupt control means 27-2 transmits a signal to the processor 27-3 to inform the processor 27-3 that the motor is finished. Minimize In addition, when the interrupt signal is not generated, the processor 27-3 may perform other tasks.

위치 검출수단(21)은 DC 또는 스텝 모터(23)의 움직임을 검출하여 모터 제어수단(27-1)으로 전송한다. 예를 들어, 포토 인터럽트 방식을 사용하는 경우, DC 또는 스텝 모터(13)의 움직임에 따라 인터럽트 신호가 온/오프 되며, 모터 제어수단(27-1)은 이를 카운트하여 현재의 DC 또는 스텝 모터(23)의 위치를 파악하게 된다.The position detecting means 21 detects the movement of the DC or step motor 23 and transmits it to the motor control means 27-1. For example, when the photo interrupt method is used, the interrupt signal is turned on / off according to the movement of the DC or step motor 13, and the motor control means 27-1 counts the current and the current DC or step motor ( 23) will be identified.

모터 드라이브 IC(25)는 모터 제어수단(27-1)에서 출력되는 모터 구동 신호를 수신하여 DC 또는 스텝 모터(23)의 이동을 제어한다.The motor drive IC 25 receives the motor drive signal output from the motor control means 27-1 to control the movement of the DC or step motor 23.

SOC(27)는 모터 제어수단(27-1), 인터럽트 제어수단(27-2) 및 프로세서(27-3)를 포함하여The SOC 27 includes a motor control means 27-1, an interrupt control means 27-2 and a processor 27-3.

SOC(27) 내부의 프로세서(27-3)는 포커스, 조리개, 셔터, 줌 신호에 따른 초기 DC 또는 스텝 모터(23)의 기준 위치값을 생성하고 이를 모터 제어수단(27-1)으로 전송한다. 프로세서(27-3)는 다른 작업 수행 중에 인터럽트 제어부(27-2)에 의해 발생된 인터럽트 신호에 의해 DC 또는 스텝 모터(23)가 정확한 위치로 이동하였음을 수신한다.The processor 27-3 in the SOC 27 generates a reference position value of the initial DC or step motor 23 according to the focus, iris, shutter, and zoom signals and transmits the reference position value to the motor control means 27-1. . The processor 27-3 receives that the DC or step motor 23 has moved to the correct position by the interrupt signal generated by the interrupt control unit 27-2 while performing another task.

모터 제어수단(27-1)은 위치 검출수단(21)으로부터 전송된 DC 또는 스텝 모터(23)의 현재 위치와 프로세서(27-3)로부터 전송된 DC 또는 스텝 모터(23)의 기준 위치를 비교하여, DC 또는 스텝 모터(23)의 이동을 제어한다.The motor control means 27-1 compares the current position of the DC or step motor 23 transmitted from the position detecting means 21 with the reference position of the DC or step motor 23 transmitted from the processor 27-3. The movement of the DC or step motor 23 is controlled.

이와 같은 모터 제어수단(27-1)은 위치 산출부(27-11) 저장부(27-12) 및 모터 제어부(27-13)를 포함한다.The motor control means 27-1 includes a position calculator 27-11 storage unit 27-12 and a motor controller 27-13.

DC 또는 스텝 모터(13)의 움직임에 따라 인터럽트 신호가 온/오프 되며, 위치 산출부(27-11)는 이를 카운트하여 DC 또는 스텝 모터(13)의 현재 위치를 산출한다. 또한 위치 산출부(27-11)는 모터 제어부(27-13)로부터의 모터 제어신호에 의 해 다음에 이동해야할 DC 또는 스텝 모터(13)의 속도 및 이동 위치를 산출하여 모터 드라이브 IC(25)로 출력한다.The interrupt signal is turned on / off according to the movement of the DC or step motor 13, and the position calculator 27-11 calculates the current position of the DC or step motor 13 by counting it. In addition, the position calculator 27-11 calculates the speed and the movement position of the DC or step motor 13 to be moved next by the motor control signal from the motor controller 27-13, and then the motor drive IC 25. Will output

복수의 레지스터를 구비한 저장부(27-12)는 프로세서(27-3)에서 생성된 DC 또는 스텝 모터(23)의 기준 위치값을 저장하고, 위치 산출부(27-11)에서 산출한 DC 또는 스텝 모터(23)의 현재 위치값을 저장한다.The storage unit 27-12 having a plurality of registers stores the DC position generated by the processor 27-3 or the reference position value of the stepper motor 23, and the DC calculated by the position calculator 27-11. Alternatively, the current position value of the step motor 23 is stored.

모터 제어부(27-13)는 저장부(27-12)에 저장된 DC 또는 스텝 모터(23)의 현재 위치와 DC 또는 스텝 모터(23)의 기준 위치를 비교한다. 비교 결과, DC 또는 스텝 모터(23)의 현재 위치와 기준 위치가 동일한 경우, 인터럽트 제어수단(27-2)로 인터럽트 요청 신호를 전송한다. 인터럽트 제어수단(27-2)은 모터 제어부(27-13)의 인터럽트 요청 신호를 수신하여 인터럽트를 발생하고, 프로세서(27-3)에 DC 또는 스텝 모터(23)의 위치 이동이 완료되었음을 알린다.The motor controller 27-13 compares the current position of the DC or step motor 23 stored in the storage unit 27-12 with the reference position of the DC or step motor 23. As a result of the comparison, when the current position and the reference position of the DC or step motor 23 are the same, the interrupt request signal 27-2 is transmitted to the interrupt control means 27-2. The interrupt control means 27-2 generates an interrupt by receiving the interrupt request signal from the motor control unit 27-13, and informs the processor 27-3 that the position movement of the DC or step motor 23 is completed.

비교결과, DC 또는 스텝 모터(23)의 현재 위치와 기준 위치가 다른 경우, 위치 산출부(27-11)로 이동 해야할 모터의 위치값 속도값 등의 모터 제어신호를 출력한다. 위치 산출부(27-11)는 모터 제어부(27-13)의 모터 제어신호를 수신하여 이동해야할 모터의 이동값을 산출하여 모터 드라이브 IC(25)로 출력한다. As a result of the comparison, when the current position and the reference position of the DC or step motor 23 are different, a motor control signal such as a position value speed value of the motor to be moved to the position calculating unit 27-11 is output. The position calculating unit 27-11 receives the motor control signal of the motor control unit 27-13, calculates a moving value of the motor to be moved, and outputs it to the motor drive IC 25.

모터 드라이브 IC(25)는 DC 또는 스텝 모터(23)를 구동하고, 위치 검출수단(21)은 DC 또는 스텝 모터(23)의 현재 위치를 검출하여 모터 제어수단(27-1)으로 전송한다. 모터 제어수단(27-1)은 상기의 과정을 반복하여 DC 또는 스텝 모터(23)의 현재 위치가 기준 위치와 일치하도록 DC 또는 스텝 모터(23) 제어를 수행한다.The motor drive IC 25 drives the DC or step motor 23, and the position detecting means 21 detects the current position of the DC or step motor 23 and transmits it to the motor control means 27-1. The motor control means 27-1 repeats the above process to perform the control of the DC or step motor 23 so that the current position of the DC or step motor 23 coincides with the reference position.

도 3은 본 발명에 따른 모터 제어 방법의 동작을 보이는 흐름도로서, 프로세 서(27-3)는 DC 또는 스텝 모터(23)가 이동해야할 기준 위치 데이터를 생성하여 모터 제어수단(27-1)으로 전송한다(301단계).3 is a flowchart showing the operation of the motor control method according to the present invention, wherein the processor 27-3 generates the reference position data to which the DC or step motor 23 should move to the motor control means 27-1. In step 301.

모터 제어수단(27-1)은 내부 저장부(27-12)에 프로세서(27-3)로부터 전송된 기준 위치 데이터를 저장한다(303단계).The motor control means 27-1 stores the reference position data transmitted from the processor 27-3 in the internal storage unit 27-12 (step 303).

모터 제어수단(27-1)은 위치 검출수단(21)에 의해 검출된 신호로부터 DC 또는 스텝 모터(23)의 현재 위치 데이터를 산출하고, 기준 위치 데이터와 비교한다(305단계).The motor control means 27-1 calculates the current position data of the DC or step motor 23 from the signal detected by the position detecting means 21 and compares it with the reference position data (step 305).

비교 결과, DC 또는 스텝 모터(23)의 현재 위치 데이터와 기준 위치 데이터가 동일한 경우(307단계), 모터 제어수단(27-1)은 인터럽트 제어부(27-2)에 인터럽트 요청 신호를 출력하고, 인터럽트 제어부(27-2)는 프로세서(27-3)에 인터럽트를 발생시킨 후, DC 또는 스텝 모터(23)의 위치 이동이 완료되었음을 알린다(309단계).As a result of the comparison, when the current position data and the reference position data of the DC or step motor 23 are the same (step 307), the motor control means 27-1 outputs an interrupt request signal to the interrupt control unit 27-2, The interrupt control unit 27-2 generates an interrupt to the processor 27-3, and notifies the completion of the movement of the position of the DC or step motor 23 (step 309).

그러나, 비교 결과, DC 또는 스텝 모터(23)의 현재 위치 데이터와 기준 위치 데이터가 다른 경우, 모터 제어수단(27-1)은 DC 또는 스텝 모터(23)의 위치를 변경시키기 위한 데이터를 생성 및 산출하여 모터 드라이브 IC(25)로 전송한다(311단계).However, as a result of the comparison, when the current position data and the reference position data of the DC or step motor 23 are different, the motor control means 27-1 generates and generates data for changing the position of the DC or step motor 23. It calculates and transmits it to the motor drive IC 25 (step 311).

모터 드라이브 IC(25)는 모터 제어수단(27-1)에서 출력되는 데이터로 DC 또는 스텝 모터(23)를 구동한다(313단계).The motor drive IC 25 drives the DC or step motor 23 with data output from the motor control means 27-1 (step 313).

DC 또는 스텝 모터(23)가 구동되면, 위치 검출수단(21)은 DC 또는 스텝 모터(23)의 현재 위치를 검출하고, 305단계로 복귀하여 모터 제어를 수행한다(315단계 ).When the DC or step motor 23 is driven, the position detecting means 21 detects the current position of the DC or step motor 23, and returns to step 305 to perform motor control (step 315).

이제까지 본 발명에 대하여 그 바람직한 실시 예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시 예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.So far I looked at the center of the preferred embodiment for the present invention. Those skilled in the art will appreciate that the present invention can be implemented in a modified form without departing from the essential features of the present invention. Therefore, the disclosed embodiments should be considered in descriptive sense only and not for purposes of limitation. The scope of the present invention is shown in the claims rather than the foregoing description, and all differences within the scope will be construed as being included in the present invention.

상술한 바와 같이 본 발명에 따르면, 모터 제어가 필요한 프로세서 내장 SOC에서 모터 제어부를 하드웨어로 구성함으로써, 모터 제어부가 모터를 제어하는 동안 프로세서가 다른 작업을 할 수 있도록 하고, 모터 제어 결과를 인터럽트 방식으로 프로세서에 전송하여 시스템 성능을 향상시킬 수 있다.As described above, according to the present invention, by configuring the motor control unit in hardware in a processor-embedded SOC that requires motor control, the processor can perform other tasks while the motor control unit controls the motor, and the motor control result is interrupted. Sending to the processor can improve system performance.

Claims (7)

디지털 카메라 내부에 구비된 모터를 제어하는 장치로서,A device for controlling a motor provided in a digital camera, 상기 모터의 초기 기준 위치를 생성하고, 다른 작업 수행 중에 인터럽트 신호에 의해 상기 모터가 정확한 위치로 이동하였음을 수신하는 프로세서;A processor for generating an initial reference position of the motor and receiving that the motor has moved to the correct position by an interrupt signal while performing another task; 상기 모터의 현재 위치와 상기 모터의 기준 위치를 비교하여 상기 모터의 이동을 제어하는 모터 제어수단; 및Motor control means for controlling movement of the motor by comparing a current position of the motor with a reference position of the motor; And 상기 모터의 현재 위치와 상기 모터의 기준 위치가 동일한 경우, 상기 프로세서로 인터럽트 신호를 발생하는 인터럽트 제어수단을 포함하는 모터 제어 장치.And an interrupt control means for generating an interrupt signal to the processor when the current position of the motor and the reference position of the motor are the same. 제 1항에 있어서, The method of claim 1, 상기 모터의 현재 위치를 검출하여 상기 모터 제어수단으로 출력하는 위치 검출수단을 더 포함하는 것을 특징으로 하는 모터 제어 장치.And a position detecting means for detecting a current position of the motor and outputting the current position to the motor control means. 삭제delete 제 1항에 있어서, 상기 모터 제어 수단은The method of claim 1, wherein the motor control means 상기 모터의 현재 위치와 상기 모터의 기준 위치가 다른 경우, 소정의 모터 제어 신호를 출력하여 상기 모터의 위치를 변경하는 것을 특징으로 하는 모터 제어 장치.And when the current position of the motor and the reference position of the motor are different, output a predetermined motor control signal to change the position of the motor. 제 2항에 있어서, 상기 모터 제어수단은The method of claim 2, wherein the motor control means 상기 위치 검출수단으로부터 전송된 위치 검출 신호로 상기 모터의 현재 위치를 산출하고, 제어 신호에 의해 상기 모터가 이동해야할 위치를 산출하는 위치 산출부; A position calculator for calculating a current position of the motor using a position detection signal transmitted from the position detecting unit, and calculating a position to which the motor should move according to a control signal; 상기 프로세서로부터 전송된 상기 모터의 기준위치 및 상기 위치 산출부에서 산출된 상기 모터의 현재 위치를 저장하는 저장부; 및 A storage unit which stores a reference position of the motor transmitted from the processor and a current position of the motor calculated by the position calculator; And 상기 모터의 현재 위치와 상기 모터의 기준 위치를 비교하여, 상기 프로세서로 인터럽트 신호를 발생하거나, 상기 모터가 이동해야할 위치를 제어신호로써 상기 위치 산출부로 출력하여 상기 모터의 이동을 제어하는 모터 제어부를 포함하는 것을 특징으로 하는 모터 제어 장치.Comparing the current position of the motor with the reference position of the motor, generating an interrupt signal to the processor, or outputting a position to be moved by the motor to the position calculator as a control signal to control the movement of the motor; Motor control device comprising a. 디지털 카메라 내부에 구비된 모터를 제어하는 방법으로서,As a method of controlling a motor provided in a digital camera, (a) 프로세서에 의해 상기 모터의 초기 기준 위치를 생성하는 단계;(a) generating an initial reference position of the motor by a processor; (b) 상기 모터의 현재 위치와 상기 모터의 기준 위치를 비교하는 단계; 및(b) comparing a current position of the motor with a reference position of the motor; And (c) 상기 모터의 현재 위치와 상기 모터의 기준 위치가 동일한 경우, 상기 프로세서에 인터럽트 신호를 발생하여 상기 모터가 정확한 위치로 이동하였음을 알리고, 상기 모터의 현재 위치와 상기 모터의 기준 위치가 다른 경우, 상기 모터의 위치를 변경하는 단계를 포함하는 모터 제어 방법.(c) If the current position of the motor and the reference position of the motor are the same, an interrupt signal is generated to the processor to inform the processor that the motor has moved to the correct position, and the current position of the motor and the reference position of the motor are different. If the motor control method comprising the step of changing the position of the motor. 삭제delete
KR20050002450A 2005-01-11 2005-01-11 Motor control device and method KR101058030B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR20050002450A KR101058030B1 (en) 2005-01-11 2005-01-11 Motor control device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR20050002450A KR101058030B1 (en) 2005-01-11 2005-01-11 Motor control device and method

Publications (2)

Publication Number Publication Date
KR20060082191A KR20060082191A (en) 2006-07-18
KR101058030B1 true KR101058030B1 (en) 2011-08-19

Family

ID=37172949

Family Applications (1)

Application Number Title Priority Date Filing Date
KR20050002450A KR101058030B1 (en) 2005-01-11 2005-01-11 Motor control device and method

Country Status (1)

Country Link
KR (1) KR101058030B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101321598B1 (en) * 2013-02-12 2013-10-28 주식회사 아진엑스텍 System on chip for controlling motor based on network and method for controlling thereof

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002354891A (en) * 2001-05-28 2002-12-06 Sanyo Electric Co Ltd Stepping motor controlling method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002354891A (en) * 2001-05-28 2002-12-06 Sanyo Electric Co Ltd Stepping motor controlling method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101321598B1 (en) * 2013-02-12 2013-10-28 주식회사 아진엑스텍 System on chip for controlling motor based on network and method for controlling thereof
WO2014126295A1 (en) * 2013-02-12 2014-08-21 Ajinextek Co., Ltd. System-on-chip for controlling motor based on network and method for controlling thereof
US10122318B2 (en) 2013-02-12 2018-11-06 Ajinextek Co., Ltd System on-chip for controlling motor based on network and method for controlling thereof

Also Published As

Publication number Publication date
KR20060082191A (en) 2006-07-18

Similar Documents

Publication Publication Date Title
CN110405750B (en) Motion control method and device of robot and robot
KR101058030B1 (en) Motor control device and method
JP2002118785A5 (en)
JP3566486B2 (en) Lens device and optical apparatus having the same
US6614994B2 (en) Shake detection device, optical device, camera system, and interchangeable lens
JPH11231202A (en) Device and method for controlling lens and storage medium
CN109202924B (en) Robot system
KR102570238B1 (en) Drive control device, drive control method, and drive control program
US6369918B1 (en) Apparatus, method, and computer program to reduce distortion of scanner restarts
JP2022115699A (en) Electric tool system, electric tool device and camera device
CN113556463B (en) Drive control device and method, drive system, and computer-readable recording medium
JP2012019466A (en) Imaging device, control device, control method and image transmission control program
CN116349422A (en) Motor control device, motor control method, and program
JP6768419B2 (en) Accessory device, image pickup device and communication control program
JP2004248392A (en) Motor control method and pulse generating ic for motor control
KR100423974B1 (en) Auto guided system and control method thereof
JPS61179431A (en) Controller for fast shooting drive
JP2004093603A (en) Action controller
JP2002315372A (en) Valve positioner, valve-driving actuator, method of controlling the valve-driving actuator and control program thereof
JP2023183206A (en) Subject tracking device, control method of subject tracking device and program
KR20210004957A (en) Control system, control method and control program
JP2021166368A (en) Information processing apparatus, information processing method, and program
JPH0973108A (en) Blur correcting device
JP2000311016A (en) Servo controller
JP2016058981A (en) Camera platform control

Legal Events

Date Code Title Description
N231 Notification of change of applicant
A201 Request for examination
N231 Notification of change of applicant
E902 Notification of reason for refusal
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20140730

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20150730

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20160728

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee