Atmel ATmega324PB Getting Started

Atmel ATmega324PB Getting Started

Avr 8-bit microcontrollers

Advertisement

AT06621: Getting Started with Atmel

Description

This application note is for getting started with the Atmel
®
AVR
based 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 of all tools required to start using
ATmega324PB and provides references for additional information.
Atmel-42626A-Getting-Started-with-Atmel-ATmega324PB_AT06621_Application Note-03/2016
AVR 8-bit Microcontrollers
ATmega324PB
APPLICATION NOTE
®
ATmega324PB

Advertisement

Table of Contents
loading

Summary of Contents for Atmel ATmega324PB

  • Page 1: Description

    • 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 of all tools required to start using ATmega324PB and provides references for additional information.
  • Page 2: Table Of Contents

    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 an Example Application in Atmel Studio........... 10 3. What’s next?......................13 4. Revision History.......................14...
  • Page 3: Getting Started With Atmel Atmega324Pb

    Compatibility between devices (portability) • Peripheral touch controller • Clock Failure Detection (CFD) Note: For more information about ATmega324PB, refer to the device datasheet. 1.2. Device Related Website Links The ATmega324PB product webpage is available at: http://www.atmel.com/devices/ATMEGA324PB.aspx Atmel AT06621: Getting Started with Atmel ATmega324PB [APPLICATION NOTE]...
  • Page 4 The Overview tab provides the basic information related to 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 parameters for the device. Atmel AT06621: Getting Started with Atmel ATmega324PB [APPLICATION NOTE] Atmel-42626A-Getting-Started-with-Atmel-ATmega324PB_AT06621_Application Note-03/2016...
  • Page 5: Atmega324Pb Xplained Pro Kit

    The Applications tab provides the recommended application areas (not limited to) for this device. http://www.atmel.com/devices/ATMEGA324PB.aspx?tab=applications • The Tools tab, all the related tools such as IDE, Programmer, Debugger, Evaluation Kits, BSDL files are listed. This tab features the link to ATmega324PB Xplained Pro kit’s webpage. http://www.atmel.com/devices/ATMEGA324PB.aspx?tab=tools 1.3. ATmega324PB Xplained Pro Kit The details about ATmega324PB Xplained Pro Kit is available in the following link.
  • Page 6 Figure 1-2. ATmega324PB Xplained Pro Webpage Documents tab displays the kit 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-Getting-Started-with-Atmel-ATmega324PB_AT06621_Application Note-03/2016...
  • Page 7: Atmel Studio

    1.5. Connecting the ATmega324PB Xplained Pro kit This section helps the user to connect the ATmega324PB Xplained Pro with the Atmel Studio 7. Download and install Atmel Studio 7 or later versions. Launch the Atmel Studio.
  • Page 8: Auto Board Identification Of Xplained Pro Kit

    Open Atmel Studio. • Go to, View > Available Atmel Tools. The EDBG should be listed in the tools as EDBG and the tool status should display as Connected. This indicates that the tool is communicating as expected with the Atmel Studio.
  • Page 9: Connect The Atmega324Pb Xplained Pro Uart To The Edbg Com Port

    1.5.2. Connect the ATmega324PB Xplained Pro UART to the EDBG COM Port Connect the EDBG USB to the PC. Use the Device Manager to find the COM port number. Default COM port settings are 9600 baud N 8 1. The COM port settings can be changed by using the Device Manager.
  • Page 10: Creating An Example Application In Atmel Studio

    Creating an Example Application in Atmel Studio After connecting the board, to create a new project in Atmel Studio, go to File > New > Project. Figure 2-1. Creating New Project in Atmel Studio In the New Project wizard displayed, select the GCC C executable Project template, name the project, and click OK to get the Device Selection wizard.
  • Page 11 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 internal pull-up have to be for the button. Set the MCUCR > PUD bit as logic zero to enable pull-up.
  • Page 12 Start a debug session on the board, where the user will be able to program and debug – Program the generated .hex file into the controller and execute the application Choose one of these options in Atmel Studio as shown in the following screen capture. Figure 2-6. Start without Debugging Figure 2-7. Start Debugging and Break...
  • Page 13: What's Next

    • Atmel Studio online help http://www.atmel.com/webdoc/atmelstudio/ • Atmel Studio offline help (After installing Atmel Studio) Open Atmel Studio, Help > View Help (Ctrl+F1) > Atmel Studio • ASF (Atmel Software framework) Getting Started and ASF Reference manual http://www.atmel.com/tools/AVRSOFTWAREFRAMEWORK.aspx?tab=documents • ASF online documentation http://asf.atmel.com/docs/latest/...
  • Page 14: Revision History

    Revision History 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_Application Note-03/2016...
  • Page 15 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...

Table of Contents