ATA6834-DK Atmel, ATA6834-DK Datasheet - Page 17

no-image

ATA6834-DK

Manufacturer Part Number
ATA6834-DK
Description
BOARD BLDC MOTOR CTRL ATA6833/34
Manufacturer
Atmel
Type
MOSFET & Power Driverr
Datasheets

Specifications of ATA6834-DK

Main Purpose
Power Management, Motor Control
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
ATA6833 / ATA6834, ATmega32M1
Primary Attributes
3-Ph BLDC, IC with FET Driver, LIN Transceiver, Volt Regulator, Watchdog
Secondary Attributes
LCD with Touch Screen on MCU Controller Board
Product
Power Management Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
8.2
Figure 8-5.
8.3
9143C–AUTO–03/10
Diagrams
Modules
Flow Chart in Normal Operation
Main loop
Main loop
TASK_motor_demo
Each loop
20 ms frame
200 ms frame
The following diagram shows the flow chart in normal operation.
Doxygen documentation is included in the software package. Use the DOC/index.html file in
the root directory to open the documentation.
The following description contains all relevant function modules for the motor control.
Initialize peripherals (e.g. ADC, timers, etc.) and service modules (e.g. LCD, Touch screen
and Motor Control etc.). Shows Startup Screen and launches Touch Screen Calibration (in
first usage only). Starts Motor Control Application (call of TASK_motor_demo).
This function is called frequently by the main function. It handles the motor control comman-
dos depending on the touch screen user input and displays the corresponding values for
s p e e d a n d d u t y c y c l e . A t e a c h c a l l t h e m o t o r s p e e d i s u p d a t e d ( b y c a l l i n g
mc_update_measured_speed_rpm). Every 20 ms the PI controller (mc_control_speed) is exe-
cuted and different motor control commandos are performed depending on the touch screen
activity. The display content is updated every 200 ms and the speed is regulated in ramp
mode.
This function initializes the PLL (64 MHz) as input clock for the PSC and the PSC (Power
Stage Controller) for the PWM signal generation, the 16-bit timer and the analog comparators
for each hall sensor.
BLDC Motor Control Kit with ATA6833/ATA6834
int main(void)
void TASK_motor_demo(void)
void mc_init(void)
Measure motor speed
Slow start
LIN remote control
PI controller
Check for Touch Sreen Event
Ramp Mode Control
Up-date displayed values
Up-date displayed buttons
Comparator 1
Interrupts Service Routines:
Timer8: Timer Compare Interrupt
Timer16: Timer Overflow Inerrupt
LIN Transfer Complete Interrupt
Save in each comparator interrupt the time
stamp of Timer16 for speed measurement
Switch Motor Commutation
Generates flags for times bases 20 ms,
200 ms, 1s
For time out recognition for hall sensors
Handles all LIN header and response frames
coming from LIN master
Comparator 2
Comparator 3
17

Related parts for ATA6834-DK