AUTOMATED SPEED RAMP CONTROL OF STEPPER MOTORS
First Claim
1. A method for speed ramp control of a stepper motor using direct memory access (DMA) transfers, said method comprising the steps of:
- providing a numerically controlled oscillator (NCO) having oscillator and prescale value inputs and an output providing clock pulses, wherein a frequency of the clock pulses is a function of the oscillator frequency and the prescale value;
providing a table of acceleration and deceleration prescale values in a memory;
programming the NCO with the acceleration prescale values from the memory using direct memory access (DMA) transfers for a first number of clock pulses;
inhibiting DMA transfers to the NCO for a second number of clock pulses; and
programming the NCO with the deceleration prescale values from the memory using the DMA transfers for a third number of clock pulses.
13 Assignments
0 Petitions
Accused Products
Abstract
Automated speed ramp control of stepper motor acceleration and deceleration using direct memory access (DMA) and core independent peripherals (CIPs) comprises a numerically controlled oscillator (NCO) controlled through direct memory access (DMA) transfers of prescale values used in combination with a clock oscillator to generate clock pulses that are a function of the clock oscillator frequency and the prescale values. This automates changing the frequency of the NCO, thereby controlling steeper motor speed, without requiring computer processing unit (CPU) overhead. The DMA module is enabled during a first number of clock pulses for step speed acceleration, disabled during a second number of clock pulses for normal operation at full step speed, and then re-enabled during a third number of clock pulses for step speed deceleration. A table in memory may store and provide a plurality of acceleration and deceleration prescale values for DMA transfers to the NCO.
4 Citations
18 Claims
-
1. A method for speed ramp control of a stepper motor using direct memory access (DMA) transfers, said method comprising the steps of:
-
providing a numerically controlled oscillator (NCO) having oscillator and prescale value inputs and an output providing clock pulses, wherein a frequency of the clock pulses is a function of the oscillator frequency and the prescale value; providing a table of acceleration and deceleration prescale values in a memory; programming the NCO with the acceleration prescale values from the memory using direct memory access (DMA) transfers for a first number of clock pulses; inhibiting DMA transfers to the NCO for a second number of clock pulses; and programming the NCO with the deceleration prescale values from the memory using the DMA transfers for a third number of clock pulses. - View Dependent Claims (2, 3)
-
-
4. An apparatus for automated speed ramp control of stepper motor acceleration and deceleration, comprising:
-
an oscillator having an output; a numerically controlled oscillator (NCO) having oscillator and prescale value inputs and an output providing clock pulses, wherein the NCO oscillator input is coupled to the oscillator output and a frequency of the clock pulses from the NCO is a function of a frequency from the oscillator and the prescale value; a memory for storing a plurality of acceleration and deceleration prescale values; and a direct memory access (DMA) control circuit coupled between the NCO prescale value input and the memory, and the output of the NCO, wherein the DMA control circuit provides the NCO with the acceleration prescale values from the memory for a first number of clock pulses, inhibits the DMA control circuit for a second number of clock pulses, and then provides the NCO with the deceleration prescale values from the memory for a third number of clock pulses. - View Dependent Claims (5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. An apparatus for automated speed ramp control of stepper motor acceleration and deceleration, comprising:
-
an oscillator having an output; a numerically controlled oscillator (NCO) having oscillator and prescale value inputs and an output providing clock pulses, wherein the NCO oscillator input is coupled to the oscillator output and a frequency of the clock pulses is a function of a frequency from the oscillator and the prescale value; a memory for storing a plurality of acceleration and deceleration prescale values; a direct memory access (DMA) module coupled between the NCO prescale value input and the memory; a pulse width modulation (PWM) module having an input coupled to the clock output of the NCO; and a data signal modulator (DSM) having a first input coupled to the clock output of the NCO, a second input coupled to a fixed logic level, an output coupled to a DMA trigger input of the DMA module and a control input for selectively coupling the output of the DSM between the first and second inputs thereof; wherein the DMA module programs the NCO with the acceleration prescale values during a first number of clock pulses, does no programming of the NCO during a second number of clock pulses, and programs the NCO with the deceleration prescale values during a third number of clock pulses. - View Dependent Claims (15, 16, 17, 18)
-
Specification