RA6T2
Vector control for permanent magnetic synchronous motor with encoder - AB
incremental type encoder
Abstract
This application note describes the sample program for a permanent magnetic synchronous motor drive with
vector control using encoder based on Renesas RA6T2 microcontroller. This application note also describes
how to use the motor control development support tool, 'Renesas Motor Workbench'.
The targeted software for this application is only to be used as reference purposes only and Renesas
Electronics Corporation does not guarantee the operations. Please use this after carrying out a thorough
evaluation in a suitable environment.
Operation checking device
Operations of the target software of this application note are checked by using the following device.
- RA6T2 (R7FA6T2BD3CFP)
Contents
1.
Overview ................................................................................................................................. 3
1.1
Development environment ...................................................................................................................... 3
2.
System overview ..................................................................................................................... 4
2.1
Hardware configuration ........................................................................................................................... 4
2.2
Hardware specifications .......................................................................................................................... 5
2.2.1
User interface ........................................................................................................................................ 5
2.2.2
Peripheral functions ............................................................................................................................... 7
2.3
Software configuration ........................................................................................................................... 18
2.3.1
Software file configuration ................................................................................................................... 18
2.3.2
Module configuration ........................................................................................................................... 19
2.4
Software specifications .......................................................................................................................... 20
2.5
Interrupt Priority ..................................................................................................................................... 21
3.
3.1
Contents of control ................................................................................................................................ 22
3.1.1
Motor start/stop.................................................................................................................................... 22
3.1.2
A/D Converter ...................................................................................................................................... 22
3.1.3
Modulation ........................................................................................................................................... 23
3.1.4
State transition..................................................................................................................................... 25
3.1.5
Start-up method ................................................................................................................................... 26
3.1.6
Position Profile Generation .................................................................................................................. 27
R01AN6208EJ0101 Rev.1.01
Oct 18, 2022
APPLICATION NOTE
Page 1 of 71