config_motor.h File Reference

This file contains the function declarations. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ALIGN_DUTY   150
 duty cycle during alignment
#define ALIGN_TIME   200
 length of alignment
#define IMAX   228
#define K_cur_scal   4
 Current regulation scale factor.
#define K_SPEED   34152
#define K_speed_scal   4
 Speed regulation scale factor.
#define Kd_cur   0
 Current regulation Derivative coefficient.
#define Kd_speed   0
 Speed regulation Derivative coefficient.
#define Ki_cur   3
 Current regulation Integral coefficient.
#define Ki_speed   30
 Speed regulation Integral coefficient.
#define Kp_cur   1
 Current regulation Proportional coefficient.
#define Kp_speed   30
 Speed regulation Proportional coefficient.
#define MC310_MOTOR
#define N_SAMPLE   8
#define POT_REF_MIN   180
#define RAMP_UP_INDEX_MAX   10
 number of locations in the 2 tables
#define RAMP_UP_PERIOD   50
 Define here the ramp-up characteristics.
#define RAMP_UP_STEP_MAX   40
#define TIMER1_AT_STARTUP_END   500

Enumerations

enum  { RUN = TRUE, STOP = FALSE }
 Define the two states of the motor. More...
enum  { CCW = TRUE, CW = FALSE }
 Define Direction of rotor : CCW (counter clock wise) and CW (clock wise). More...
enum  { OPEN_LOOP = 0, SPEED_LOOP = 1, CURRENT_LOOP = 2 }
 Regulation loop modes. More...
enum  Motor_Position {
  MS_001 = 1, MS_010 = 2, MS_011 = 3, MS_100 = 4,
  MS_101 = 5, MS_110 = 6
}
 This enumeration contains the 6 differents values for the Hall Sensors See design document. More...
enum  Motor_State {
  MS_ALIGN = 1, MS_RAMP_UP = 2, MS_LAST_RAMP_UP = 3, MS_RUNNING = 4,
  MS_STOP = 5
}


Detailed Description

This file contains the function declarations.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file config_motor.h.


Define Documentation

#define ALIGN_DUTY   150

duty cycle during alignment

Definition at line 132 of file config_motor.h.

Referenced by mci_run().

#define ALIGN_TIME   200

length of alignment

Definition at line 131 of file config_motor.h.

Referenced by mci_run().

#define IMAX   228

Definition at line 117 of file config_motor.h.

Referenced by mc_init_HW().

#define K_cur_scal   4

Current regulation scale factor.

Definition at line 94 of file config_motor.h.

Referenced by mc_control_current().

#define K_SPEED   34152

Definition at line 100 of file config_motor.h.

Referenced by mc_init(), and mci_get_measured_speed().

#define K_speed_scal   4

Speed regulation scale factor.

Definition at line 92 of file config_motor.h.

Referenced by mc_control_speed().

#define Kd_cur   0

Current regulation Derivative coefficient.

Definition at line 84 of file config_motor.h.

#define Kd_speed   0

Speed regulation Derivative coefficient.

Definition at line 77 of file config_motor.h.

#define Ki_cur   3

Current regulation Integral coefficient.

Definition at line 82 of file config_motor.h.

Referenced by mc_control_current().

#define Ki_speed   30

Speed regulation Integral coefficient.

Definition at line 75 of file config_motor.h.

Referenced by mc_control_speed().

#define Kp_cur   1

Current regulation Proportional coefficient.

Definition at line 80 of file config_motor.h.

Referenced by mc_control_current().

#define Kp_speed   30

Speed regulation Proportional coefficient.

Definition at line 73 of file config_motor.h.

Referenced by mc_control_speed().

#define MC310_MOTOR

Definition at line 119 of file config_motor.h.

#define N_SAMPLE   8

Definition at line 65 of file config_motor.h.

#define POT_REF_MIN   180

Definition at line 134 of file config_motor.h.

Referenced by main().

#define RAMP_UP_INDEX_MAX   10

number of locations in the 2 tables

Definition at line 126 of file config_motor.h.

Referenced by main().

#define RAMP_UP_PERIOD   50

Define here the ramp-up characteristics.

50 mS

Definition at line 125 of file config_motor.h.

Referenced by main().

#define RAMP_UP_STEP_MAX   40

Definition at line 127 of file config_motor.h.

Referenced by mci_run().

#define TIMER1_AT_STARTUP_END   500

Definition at line 129 of file config_motor.h.

Referenced by start_running_phase().


Enumeration Type Documentation

anonymous enum

Define the two states of the motor.

Enumerator:
RUN 
STOP 

Definition at line 56 of file config_motor.h.

00056 {RUN = TRUE, STOP = FALSE};

anonymous enum

Define Direction of rotor : CCW (counter clock wise) and CW (clock wise).

Enumerator:
CCW 
CW 

Definition at line 60 of file config_motor.h.

00060 {CCW = TRUE, CW = FALSE};

anonymous enum

Regulation loop modes.

Enumerator:
OPEN_LOOP 
SPEED_LOOP 
CURRENT_LOOP 

Definition at line 68 of file config_motor.h.

00068 {OPEN_LOOP  = 0, SPEED_LOOP = 1, CURRENT_LOOP = 2};

This enumeration contains the 6 differents values for the Hall Sensors See design document.


In this application, just 3 hall sensor are used Hall Sensor : position 1 to 6

Enumerator:
MS_001 
MS_010 
MS_011 
MS_100 
MS_101 
MS_110 

Definition at line 52 of file config_motor.h.

Enumerator:
MS_ALIGN 
MS_RAMP_UP 
MS_LAST_RAMP_UP 
MS_RUNNING 
MS_STOP 

Definition at line 53 of file config_motor.h.


Generated on Wed Oct 22 15:03:59 2008 for AVR172 : Atmel BLDC control on ATAVRMC310 with ATmega32M1 by  doxygen 1.5.7.1