ATAVRMC310 Atmel, ATAVRMC310 Datasheet - Page 10

no-image

ATAVRMC310

Manufacturer Part Number
ATAVRMC310
Description
BOARD EVAL MOTOR CTRL W/MEGA32M1
Manufacturer
Atmel
Series
AVR®r
Datasheets

Specifications of ATAVRMC310

Main Purpose
Power Management, Motor Control
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
ATmega32M1
Primary Attributes
3-Ph BLDC, Brushed DC, Stepper Motor- Controller Board
Secondary Attributes
Requires ATAVRMC300 Power Driver Board
Processor To Be Evaluated
ATmega32M1
Data Bus Width
8 bit
Interface Type
RS-232, USB
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
5. Software Description
5.1
10
Interface Functions
AVR194
Figure 8. PSCOUTnA & PSCOUTnB Basic Waveforms in Center Aligned Mode
Please refer to the ATmega32M1 data sheet to get the value of all timings according to register
values. The input clock of PSC comes from the internal PLL.
Two strategies can be used for PWM signals applied to the power stage. The first one (fast
decay) is to apply the PWM signals on the high side AND the low side of the power bridge and
the second one (slow decay) is to apply the PWM signals only on the high side of the power
bridge.
HTML documentation is delivered with the AVR194 software package. It can be opened thanks
to the readme.html file located in the source directory.
Atmel provides libraries to control Brushless DC motors. The first step is to configure and initial-
ize the microcontroller.
The function to be used is mc_init(). It calls hardware and software initialization functions and
sets up all motor parameters (motor direction, motor speed, motor run or motor stop).
After the microcontroller configuration and initialization, the motor can be started. Only a few
functions are needed to control the motor. All user functions are defined in the mc_interface.h
file:
void mci_run(void)
Bool mci_motor_is_running(void)
POCR_RB
POCRnSB
POCRnSA
PSCOUTnA
PSCOUTnB
Used to start the motor. The regulation loop function is launched to set the duty cycle. Then
the first phase commutation is executed.
Gets the command motor state. If ‘TRUE’ the motor is running. If ‘FALSE’ the motor is
stopped.
On Time 1
On Time 0
PSC Cycle
0
On Time 1
8138A–AVR–04/08

Related parts for ATAVRMC310