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

©

 2015 Atmel Corporation. / Rev.: Atmel-42482A-Getting-Started-with-ATmega328PB_AT08401_Application Note-08/2015

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 ATmega328PB Xplained Mini

Page 1: ...d microcontroller Features Getting started with the ATmega328PB microcontroller and tools Getting started with Atmel ATmega328PB Xplained Mini Kit and Atmel Studio 6 2 This application note contains a...

Page 2: ...ard Identification of Xplained Mini Kit 8 1 5 2 Connect the ATmega328PB Xplained Mini UART to the mEDBG COM Port 9 1 6 Programming and Debugging 9 1 6 1 Programming the ATmega328PB Xplained Mini by us...

Page 3: ...C oscillator Security with fuses and lock bits Atmel QTouch Library support Compatibility between devices portability Peripheral touch controller Clock Failure Detection CFD Note For detailed informat...

Page 4: ...ize number of peripheral channels number of I O pins etc for this device can be found http www atmel com devices ATMEGA328PB aspx tab parameters Atmel AT08401 Getting Started with Atmel ATmega328PB AP...

Page 5: ...tions tab the recommended application areas not limited to for this device can be found http www atmel com devices ATMEGA328PB aspx tab applications In the Tools tab all the related tools like IDE pro...

Page 6: ...In the Documents tab all the kit related documents like schematics and user guide can be found Atmel AT08401 Getting Started with Atmel ATmega328PB APPLICATION NOTE Atmel 42482A Getting Started with A...

Page 7: ...mel Studio Webpage The Atmel Studio installer free IDE is available at http www atmel com tools ATMELSTUDIO aspx 1 4 2 Atmel Studio Microsite To learn more about Atmel Studio refer to the following mi...

Page 8: ...udio 6 2 SP2 Note There is no need to install part pack for Atmel Studio future versions 3 Launch the Atmel Studio 4 Connect the ATmega328PB Xplained Mini to the USB port and it will be visible in the...

Page 9: ...tings are 9600 baud N 8 1 The COM port settings can be changed by using the Device Manager 1 6 Programming and Debugging This section helps to program and debug the ATmega328PBXplained Mini kit by usi...

Page 10: ...nd Break 6 Atmel Studio will display an error message if the DWEN fuse in the ATmega328PB is not enabled click YES to make Studio set the fuse using the ISP interface 7 A debug session is started with...

Page 11: ...C executable Project template name the project and click OK to get the device selection wizard Figure 2 2 New Project Wizard 3 The Device Selection wizard will display as shown in Figure 2 3 Device Se...

Page 12: ...e pin will be driven low The PINx register is used to return the logic level available on the port pin In this example code the PB7 Button is used as input and the PB5 LED0 as output Here the LED0 is...

Page 13: ...d on ATmega328PB Xplained Mini as shown in Figure 2 6 Start without Debugging on page 13 and Figure 2 7 Start Debugging and Break on page 13 Figure 2 6 Start without Debugging Figure 2 7 Start Debuggi...

Page 14: ...mentation 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 evaluatio...

Page 15: ...ry Doc Rev Date Comments 42482A 08 2015 Initial document release Atmel AT08401 Getting Started with Atmel ATmega328PB APPLICATION NOTE Atmel 42482A Getting Started with ATmega328PB_AT08401_Application...

Page 16: ...ITS 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 representatio...

Reviews: