User guide

AVR1607
15
8311A-AVR-07/10
and secondly, a switch of the power bridge according to next expected position
and the direction of the rotation.
AWEX feature, described previously is configured on PortC.
Port C0 to C5 are the UH/UL/VH/VL/WH/WL outputs.
An example of Hall detection and the resulting actions is described below:
case HS_001: if (direction==CCW) {Set_Q1Q6();}
else {Set_Q5Q2();}
According to Table 1-1, the scheme following the Hall state 001 is T5 and T2
transi
stors ON (in CW direction)
Set_Q5Q2() instruction executes the AWEX operation :
AWEX_SetOutoutOveride(AWEXC,PIN5_bm | PIN0_bm)
which drives the Pins 0 and 5 connected to gate of T5 and T2 transistors.
6 RS232 Communication with firmware
6.1 Connecting ATAVRMC303 to use the RS232 interface
Connect PC com port to the ATAVRMC303 RS232 connector through a direct cable.
The serial configuration is:
• 3840
0 bauds,
8 bit data bit,
1 stop bit,
• no handshake,
6.2 PC applications
User can communicate with firmware through RS232 with usual PC serial
communication applications (i.e. Hyperterminal) or the Atmel “Motor Control Center”
application which can be downloaded from Atmel web at url : http://www.atmel.com
6.2.1 PC Terminal : RS232 Messages and Commands
At power u
p the following welcome message is received on terminal :
“ATMEL Motor Control Interface”.
The following commands can be sent to the firmware: