background image

Atmel Corporation

1600 Technology Drive, San Jose, CA 95110 USA

T:

 (+1)(408) 441.0311

F:

 (+1)(408) 436.4200

|

www.atmel.com

©

 2016 Atmel Corporation. / Rev.: Atmel-42626A-Getting-Started-with-Atmel-ATmega324PB_AT06621_Application Note-03/2016

Atmel

®

, Atmel logo and combinations thereof, Enabling Unlimited Possibilities

®

, AVR

®

, AVR Freaks

®

, megaAVR

®

, QTouch

®

, and others are registered trademarks or

trademarks  of  Atmel  Corporation  in  U.S.  and  other  countries.  ARM

®

  is  a  registered  trademark  of  ARM  Ltd.  Windows

®

is  a  registered  trademark  of  Microsoft

Corporation in U.S. and or other countries. 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.

Summary of Contents for ATmega324PB

Page 1: ...microcontroller Features Getting started with the ATmega324PB microcontroller and tools Getting started with Atmel ATmega324PB Xplained Pro Kit and Atmel Studio 7 This application note contains a list...

Page 2: ...io Microsite 7 1 5 Connecting the ATmega324PB Xplained Pro kit 7 1 5 1 Auto Board Identification of Xplained Pro Kit 8 1 5 2 Connect the ATmega324PB Xplained Pro UART to the EDBG COM Port 9 2 Creating...

Page 3: ...er Short interrupt latency four clock cycles Factory calibrated internal RC oscillator Security with fuses and lock bits Atmel QTouch Library support Compatibility between devices portability Peripher...

Page 4: ...the device such as Key Parameters Datasheet link to buy the device etc http www atmel com devices ATMEGA324PB aspx tab overview The Parameters tab provides the details of various configuration paramet...

Page 5: ...ts associated firmware if available The Applications tab provides the recommended application areas not limited to for this device http www atmel com devices ATMEGA324PB aspx tab applications The Tool...

Page 6: ...t related documents such as schematics and user guides http www atmel com tools ATMEGA324PB XPRO aspx tab documents Atmel AT06621 Getting Started with Atmel ATmega324PB APPLICATION NOTE Atmel 42626A G...

Page 7: ...getting started videos such as creating a new C GCC project debugging AVR applications debugging ARM applications etc are available http www atmel com Microsite atmel studio videos aspx 1 5 Connectin...

Page 8: ...ce Manager as displayed in the following screenshot Figure 1 5 Successful EDBG Driver Installation Open Atmel Studio Go to View Available Atmel Tools The EDBG should be listed in the tools as EDBG and...

Page 9: ...Device Manager to find the COM port number 3 Default COM port settings are 9600 baud N 8 1 The COM port settings can be changed by using the Device Manager Atmel AT06621 Getting Started with Atmel ATm...

Page 10: ...roject and click OK to get the Device Selection wizard Figure 2 2 New Project Wizard 3 The Device Selection wizard appears as shown in the following image Select the ATmega324PB device from megaAVR de...

Page 11: ...T has three registers DDRx PORTx and PINx The DDRx register is used to configure the port pin direction 1 Output 0 Input ATmega324PB Xplained Pro kit does not have pull ups connected and hence interna...

Page 12: ...Tool as EDBG and Interface as JTAG Figure 2 5 Tool and Interface Settings 8 To program and execute the application there are two options Start a debug session on the board where the user will be able...

Page 13: ...tion for various products http www atmel com webdoc Atmel Gallery https gallery atmel com Production Selection Guide Atmel MCU Selector on http www atmel com Ordering Samples and Buying evaluation boa...

Page 14: ...Doc Rev Date Comments 42626A 03 2016 Initial document release Atmel AT06621 Getting Started with Atmel ATmega324PB APPLICATION NOTE Atmel 42626A Getting Started with Atmel ATmega324PB_AT06621_Applicat...

Page 15: ...ROFITS 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 representa...

Reviews: