Atmel Atsamc21motor Smart Arm-based Microcontrollers User Guide

Atmel Atsamc21motor Smart Arm-based Microcontrollers User Guide

ATMEL logoATSAMC21MOTOR Smart ARM-Based Microcontrollers
User Guide

ATSAMC21MOTOR Smart ARM-Based Microcontrollers

SMART ARM-based Microcontrollers
ATSAMC21MOTOR
USER GUIDE

ATSAMC21 Microcontroller Card for Atmel Motor Control Starter Kit

The ATSAMC21J18A is an MCU card for Atmel® Motor control starter kits. The hardware has the Atmel SMART ARM® -based MCU, ATSAMC21J18A, with integrated on-board debug support. The MCU card can be directly used with the ATSAMBLDCHV-STK® high voltage motor control kit and the currently available  ATSAMD21BLDC24V-STK, a low voltage BLDC, PMSM motor control starter kit. The kit contains a driver board hardware with half-bridge power MOSFET drivers,  current and voltage sensing circuit, Hall, and Encoder interface, fault protection circuits, etc. Supported by the Atmel studio integrated development platform, the kit provides easy access to the features of ATSAMC21J18A MCU and explains how to integrate the device in a custom motor control application. Plug-able MCU cards are  vailable from Atmel, supporting other SMART ARM MCUs.
ATMEL ATSAMC21MOTOR Smart ARM-Based Microcontrollers - fig 1

ATSAMC21MOTOR Features

ATSAMC21MOTOR has the following features:
The same port pins are multiplexed between multiple functionalities. PFC, CAN, QTouch® , etc. interfaces are supported only in ATSAMBLDCHV-STK hardware as indicated below.

  • Debug support using on-board Atmel EDBG device
  • TCC PWM signals for three-phase half-bridge drive
  • ADC channels for common shunt and individual shunt phase current sensing
  • ADC channels for motor BEMF sensing
  • TCC PWM signals for PFC hardware drive (High Voltage kit)
  • ADC channels for PFC current sensing (High Voltage kit)
  • AC channels for BEMF signals (Low Voltage kit)
  • EXTINT hall sensor interface
  • EXTINT encoder sensor interface
  • PTC QTouch Interface signals (High Voltage kit)
  • CAN interface (High Voltage kit)
  • Atmel Xplained PRO extension signals support (Low Voltage kit)
  • Communication and Power status LEDs

ATSAMC21MOTOR Kit Content

ATSAMC21MOTOR Kit contains an ATSAMC21J18A MCU card that is pre-programmed with hall sensor based block commutation firmware for the ATSAMD21BLDC24V-STK setup. A quick start guide can be found in the ATSAMBLDC24V-STK User quide for Atmel Low voltage BLDC motor control kit. A nylon snap lock is attached to the MCU card that can be rotated to attach the card to the Driver base board in ATSAMD21BLDC24V-STK.
Figure 3-1. ATSAMC21MOTOR Kit ContentATMEL ATSAMC21MOTOR Smart ARM-Based Microcontrollers - fig 2

Design Documentation and Relevant Links

The following list contains links to the most relevant documents and software for ATSAMC21MOTOR:

  • ATSAMC21MOTOR – Product page.
  • ATSAMC21MOTOR User Guide – PDF version of this User Guide.
  • ATSAMD21BLDC24V-STK – Product page.
  • ATSAMBLDC24V-STK User guide – User guide for Atmel Low voltage BLDC motor control kit. It contains the quick start guide instructions and driver board descriptions.
  • ATSAMD21BLDC24V-STK Design Documentation – Package containing schematics, BOM, assembly drawings, 3D plots, layer plots, etc.
  • Atmel Studio – Free Atmel IDE for development of C/C++ and assembler code for Atmel microcontrollers.
  • EDBG User Guide – User guide containing more information about the on-board Embedded Debugger.
  • Atmel Data Visualizer – Atmel Data Visualizer is a program used for processing and visualizing data. Data Visualizer can receive data from various sources such as the Embedded Debugger Data Gateway Interface found on Xplained Pro boards and COM ports.
  • Xplained Pro products – Atmel Xplained Pro is a series of small-sized and easy-to-use evaluation kits for Atmel microcontrollers and other Atmel products. It consists of a series of low-cost MCU boards for evaluation and demonstration of features and capabilities of different MCU families.
  • ATSAMC21MOTOR – MCU datasheet.

ATSAMC21J18A MCU Board

The main components on the ATSAMC21MOTOR MCU card are highlighted in the PCB and in the block diagram given below.
Figure 5-1. MCU Board PCBATMEL ATSAMC21MOTOR Smart ARM-Based Microcontrollers - fig 3Figure 5-2. MCU Board Block Diagram

ATMEL ATSAMC21MOTOR Smart ARM-Based Microcontrollers - fig 4

5.1. Power Supply
The ATSAMC21J18A MCU takes 5VDC supply from the 67-pin edge connector. The EDBG debug MCU operates on a 3.3VDC supply from the same edge connector. The power supply selection jumper on the Driver board (ATSAMBLDCHV-STK and ATSAMBLDC24V-STK) should be connected to 5V (silk screen text) selection.
5.2. Main MCU Circuit
The ATSAMC21MOTOR has an ATSAMC21 device. The device is intended to work with the MCU internal clock source. An external reset switch is connected to the MCU RESET pin.
5.3. Embedded Debugger
The ATSAMC21J18A MCU is interfaced to the EDBG debug device. The EDBG uses SWD interface for programming and debugging the main MCU. A debug header is also provided on the MCU board with ARM Cortex® debug pinout. An external debugger can be connected to this debug port. The DGI is a proprietary communication interface used by the Atmel Data Visualizer software to communicate with the development kits through the EDBG. The SERCOM5 of the ATSAMC21J18A connected to the EDBG device, supports the DGI SPI interface and uses the Atmel ADP protocol. The MCU SERCOM5 is also connected to the UART channel of the EDBG through a pair of “normally open” jumpers; J201 and J202. Shorting these jumpers will enable the CDC UART interface for the main MCU. High Speed USB port of the EDBG is accessible at the driver board. EDBG USB enumerates as a composite device supporting debug, DGI SPI, and CDC interfaces.
5.4. 67-pin MCU-DRIVER Board Interface
MCU pins are connected to the 67-pin interface header as given in the table below. The MCU card can be used with the Motor control driver kits from Atmel. The table given below describes the interface with Atmel low voltage motor control starter kit. Signals indicated by “||” are jumper connected pins that share directly connected functionality. The normally-open jumper needs to be shorted in the PCB in order to access these additional features.
Table 5-1. ATSAMBLDC24V-STK and ATSAMC21J18A MCU Card Interface (67 pin NGFF connector) Description

PIN LV INTERFACE NameLV DRIVER BOARD  functionSAM C21 PINSAM C21 function
1     EDBG USB HSPEDBG USBEDBG_USB_HS_PEDBG_USB_HS_P
2     NCNCPA24CAN TX
3     EDBG USB HSNEDBG USBEDBG_USB_HS_NEDBG_USB_HS_N
4     EDBG ID2EDBG_ID2/EXT1_1EDBG PB01EDBG ID2
5     NCNCPA25CAN RX
6     EDBG ID1EDBG_ID1EDBG PA28EDBG_ID1
7     MCU USB DPTARGET_USB_HS_PNCNC
8     TARGET USB VBUSVCC_TARGET_USB_ P5V0NCNC
9     MCU USB DNTARGET_USB_HS_NNCNC
10    EDBG USB VBUSVCC_EDBG_USB_P5 V0VCC_EDBG_USB_P5 V0VCC_EDBG_USB_P5 V0
11    TARGET_USB_IDTARGET_USB_IDNCNC
12    TEMP SDATWI_SDA, EXT1_11PA22SERCOM3(PAD0)
13    TEMP SCLTWI_SCL, EXT_12PA23SERCOM3(PAD1)
14    FLASH SSSPI_SSPB13SERCOM4(PAD1)
15    FLASH MISOSPI_MISO, EXT1_17PB12SERCOM4(PAD0)
16    FLASH SCKSPI_SCK, EXT1_18PB15SERCOM4(PAD3)
17    FLASH MOSISPI_MOSI, EXT1_16PB14SERCOM4(PAD2)
18    MCU GPIO1EXT1_7(GPIO1)PA19PTC(X5)
19    MCU GPIO2EXT1_8(GPIO2)PB03TC6(W1)
20    MCU GPIO3EXT_3PA02ADC0(AIN0)
21    MCU GPIO4NC(GPIO4)PB22TC7(WO0)
22    MCU GPIO5EXT1_5(GPIO5)PB31GPIO
23    MCU GPIO6EXT1_6(GPIO6)PA17EXTINT1
24    MCU GPIO7Temp_Alert(GPIO7)PA27EXTINT15
25    OCPOCP(GPIO8)PA03ADC0(AIN1)
26    EXT1 RXDUART RXD_ EXT1_13PB17SERCOM5(PAD1)
27    EXT1 TXDUART TXD_EXT1_14PB02SERCOM5(PAD0)
28    PWM UHFET DriverPB30TCC0(WO0)
29    PWM ULFET DriverPA14TCC0(WO4)
30    PWM VHFET DriverPA05TCC0(WO1)
31    PWM VLFET DriverPA15TCC0(WO5)
32    PWM WHFET DriverPA10TCC0(WO2)
33    PWM WLFET DriverPA16TCC0(WO6)
34    MCU_GPIO8 (ISENSE_COMMON)EXT_15PB05ADC1(AIN7)
35    ATA RESETEXT1_4(GPIO10)PB16GPIO
36    ATA WDEXT1_10(GPIO11)PA12TCC2(WO0)
37    ATA SLEEPEXT1_9(GPIO12)PA13TCC2(WO1)
38    USHUNT_ADCCurrent sensePB08ADC0(AIN2)
39    VSHUNT_ADCCurrent sensePB09ADC0(AIN3)
40    WSHUNT_ADCCurrent sensePA08ADC0(AIN8)
41    MOTOR VDC (V SENSE)MOTOR_ADCPA09ADC0(AIN9)
42    BEMF U_ADCBEMF sense ADCPB00ADC1(AIN0)
43    BEMF V_ADCBEMF sense ADCPB01ADC1(AIN1)
44    BEMF_W_ADCBEMF sense ADCPB06ADC1(AIN8)
45    BEMF UPBEMD sense ACPA04ADC0(AIN4)
46    BEMF UNBEMD sense ACPB07ADC1(AIN9)
47    BEMF VPBEMD sense ACPA06ADC0(AIN6)
48    BEMF VNBEMD sense ACNCNC
49    BEMF WPBEMD sense ACPA07ADC0(AIN7)
50    BEMF WNBEMD sense ACNCNC
51    HALL1Hall interfacePB11EXTINT11
52    HALL2Hall interfacePB04EXTINT4
53    HALL3Hall interfacePA28EXTINT8
54    HALL TRX OEHALL_TRX_OENCNC
55    ENCODER_AEncoder InterfacePA18EXTINT2
56    ENCODER_BEncoder InterfacePB10EXTINT10
57    ENCODER_ZEncoder InterfacePB23EXTINT7
58    ENCODER_ENENCODER ENNCNC
59    NCNCVCC_P3V3VCC_P3V3
60    MCU BRAKENCPA11TC1(WO1)
61    NCNCVCC-P3V3VCC_P3V3
62    3V3 SUPPLY for MCUVCC_PVCC_TARGET_P5V0VCC_TARGET_P5V0
63    3V3 SUPPLY for MCUVCC_PVCC_TARGET_P5V0VCC_TARGET_P5V0
64    GNDGNDGNDGND
65    GNDGNDGNDGND
66    GNDGNDGNDGND
67    GNDGNDGNDGND

Product Compliance

RoHS and WEEE
The Atmel ATSAMC21MOTOR and its accessories are manufactured in accordance to both the RoHS Directive (2002/95/EC) and the WEEE Directive (2002/96/EC).
CE and FCC
The Atmel ATSAMC21MOTOR unit has been tested in accordance to the essential requirements and other relevant provisions of Directives:

  • Directive 2004/108/EC (class B)
  • FCC rules part 15 subpart B

The following standards are used for evaluation:

  • EN 61326-1 (2013)
  • FCC CFR 47 Part 15 (2013)

The Technical Construction File is located at:
Atmel Norway
Vestre Rosten 79
7075 Tiller
Norway
Every effort has been made to minimize electromagnetic emissions from this product. However, under certain conditions, the system (this product connected to a target application circuit) may emit individual electromagnetic component frequencies which exceed the maximum values allowed by the abovementioned standards. The frequency and magnitude of the emissions will be determined by several factors, including layout and routing of the target application with which the product is used.

Identifying Product ID and Revision

The revision and product identifier of the ATSAMC21MOTOR can be found by looking at the sticker on the bottom side of the PCB. The identifier and revision are printed in plain text as A09-nnnn\rr, where nnnn is the identifier and rr is the revision. Also the label contains a 10-digit unique serial number. The product identifier for  ATSAMC21MOTOR is A09-2550.

Revision

Kit assembly revision for initial version is A09-2550/03. Known issues in this revision are:
• PWM silk text for WH and UH are swapped

Document Revision History

Doc. rev……….42747A
Date……………………..09/2016
Comment……………. Initial document release

Atmel ATSAMC21MOTOR [USER GUIDE]
Atmel-42770A-ATSAMC21MOTOR_User Guide-09/2016
2016 Atmel© Corporation. / Rev.: Atmel-42770A-ATSAMC21MOTOR_User Guide-09/2016
Atmel® , Atmel® logo and combinations thereof, Enabling Unlimited Possibilities® , QTouch® , STK® , and others are registered trademarks or trademarks of Atmel Corporation in U.S. and other countries. ARM® , ARM Connected®  logo, Cortex® , and others are the registered trademarks or trademarks of ARM Ltd. Other terms and product names may be trademarks of others.

DISCLAIMER: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any
intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND
CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and products descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.
SAFETY-CRITICAL, MILITARY, AND AUTOMOTIVE APPLICATIONS DISCLAIMER: Atmel products are not designed for and will not be used in connection with any applications where the failure of such products would reasonably be expected to result in significant personal injury or death (“Safety-Critical Applications”) without an Atmel officer’s specific written consent. Safety-Critical Applications include, without limitation, life support devices and systems, equipment or systems for the operation of nuclear facilities and weapons systems. Atmel products are not designed nor intended for use in military or aerospace applications or environments unless specifically designated by Atmel as military-grade. Atmel products are not designed nor intended for use in automotive applications unless specifically designated by Atmel as automotive-grade.

ATMEL logoAtmel Corporation
1600 Technology Drive, San Jose, CA 95110 USA
T: (+1)(408) 441.0311
F: (+1)(408) 436.4200
www.atmel.com
Downloaded from Arrow.com.
ATMEL logo 1

References

Documents / Resouces

Download manual
Here you can download full pdf version of manual, it may contain additional safety instructions, warranty information, FCC rules, etc.


Related Manuals