Stepping motor control device capable of reducing load on CPU
AssigneeKYOCERA Document Solutions Inc.
InventorGunmmun Ryu
Life of this patent
Estimating the term…
Abstract
A stepping motor control device comprises a plurality of buffers for storing data for driving a stepping motor, a read unit for reading the data from the buffer, and a write unit for writing the data in the buffer. The write unit includes a first mode for writing the data in the buffer in a process performed in a predetermined order, and a second mode for writing the data in the buffer in response to a request from the read unit to write the data.
Claims9
A stepping motor control device included in an image forming apparatus comprising:
- a CPU for performing a steady process normally including a series of processes regarding an image formation in the image forming apparatus in predetermined order and performing an interrupt process when said CPU receives a request for said interrupt process;
- a ring buffer having a plurality of buffers for storing pulse data, which contains a pulse width of a pulse to be outputted and the number of outputs of the pulse having the pulse width, for driving a stepping motor;
- and
- a read unit for reading pulse data from said ring buffer and outputting a pulse to a motor drive unit for driving said stepping motor based on the read pulse data;
- wherein said CPU determines, from a buffer designated by a write position register to the buffer preceding the buffer designated by a read position register along a predetermined circular moving direction of said write and read position registers among said plurality of buffers as a buffer in which pulse data can be written, in said steady process;
- and
- said CPU writes pulse data in said determined buffer when said CPU determines there is a buffer in which pulse data can be written and performs the series of processes regarding the image formation when said CPU determines there is no buffer in which pulse data can be written, in said steady process, and writes pulse data in all the plurality of buffers in said interrupt process when said CPU receives said request for said interrupt process;
- wherein said read unit determines from a buffer designated by the read position register to the buffer preceding the buffer designated by the write position register along said predetermined circular moving direction among said plurality of buffers as a buffer from which pulse data can be read, while said steady process is performed by said CPU;
- and
- said read unit reads pulse data from the determined buffer when said read unit determines there is a buffer from which pulse data can be read, and outputs said request for said interrupt process to said CPU when said read unit determines there is no buffer from which pulse data can be read.
A method for controlling a stepping motor included in an image forming apparatus by reading pulse data written in a ring buffer having a plurality of buffers with a read unit comprising:
- a write step of writing pulse data for driving the stepping motor in the plurality of buffers,
- wherein the write step includes a step of writing pulse data in said ring buffer in a steady process performed by a CPU in a predetermined order including a series of processes regarding an image formation in the image forming apparatus, and a step of writing pulse data in said ring buffer in an interrupt process performed when said CPU receives a request for said interrupt process from the read unit;
- and
- the write step further includes a step of determining based on a write position register and a read position register, among said plurality of buffers, from a buffer designated by the write position register to a buffer preceding a buffer designated by the read position register along a predetermined circular moving direction of the write and read position registers among said plurality of buffers as a buffer in which pulse data can be written, in said steady process, a step of writing pulse data in said determined buffer when it is determined there is a buffer in which pulse data can be written and performing the series of processes regarding the image formation when it is determined there is no buffer in which pulse data can be written, and further includes a step of writing pulse data in all of said plurality of buffers in said interrupt process;
- and further comprising:
- a read step of determining from a buffer designated by the read position register to the buffer preceding the buffer designated by the write position register along said predetermined circular moving direction among said plurality of buffers as a buffer from which pulse data can be read, while said steady process is performed by said CPU, based on said write position register and said read position register, among said plurality of buffers;
- reading pulse data from the determined buffer when said read unit determines there is a buffer from which pulse data can be read;
- and
- outputting said request for said interrupt process to said write unit when there is no buffer from which data can be read, as a result of the read step determination.
Dependencies are inferred from the claim text.