Home
        ATmega328PB Xplained Mini User Guide
         Contents
1.     Al t       el AVR 8 bit Microcontrollers    ATmega328PB Xplained Mini    USER GUIDE    Introduction    This user guide describes how to get started with the Atmel   ATmega328PB  Xplained Mini board  The ATmega328PB Xplained Mini evaluation kit is a  hardware platform to evaluate the Atmel ATmega328PB microcontroller  The  evaluation kit comes with a fully integrated debugger that provides seamless  integration with Atmel Studio 6 2  and later version   The kit provides access  to the features of the ATmega328PB enabling easy integration of the device  in a custom design     PD3 PD4 PD5 PD6 PI    COEF    PDO PD  PD2    Q  o    Atmel 42469A ATmega328PB Xplained Mini_User Guide 07 2015       Table of Contents    fal  cele  0  ee   ee 1  1  VOTING Started  c        PE EE aa 3  1 1     Eeal  les    25 cine Ses ccast sa Seveieccanestesace teceve E E T 3  1 2  Design Documentation and Related Links                        essen een 3  1 3   Xplained Mini Quick Start    eee cence enne enne en nnne nnne 3  1 3 1    Connect to Atmel Studio    eee eee erent enne nnne 3   1 332  sConnectto the COM POLL    ecco tois ertt Eee pai tect snake tese ook ERE ROSE ia SERE R D De iaa Id Opis 4   1 4     Programming and  Debuggihg         ota oi comes ritate taper doute iiaeiai raoin baa pos 4  1 4 1  Programming the Target using mEDBO                     sseseee eee 4   1 4 24  Debugging the Target using mEDBO                     senem nemen 5   1 4 3  Programming the Target using an External 
2.     On board debugger with full source level debugging support in Atmel Studio    Auto ID for board identification in Atmel Studio  e Access to all signals on target MCU    One green mEDBG status LED    One yellow user LED  e   One mechanical user push button      QTouch   user area  e     Virtual COM port  CDC     External target CLK 16MHz at 5V  8MHz at 3 3V  e USB powered  e   9V3 regulator    A Arduino shield compatible foot prints  e Target SPI bus header foot print  e     Xplained Pro extension headers can easily be strapped in  1 2  Design Documentation and Related Links  The most relevant documents and software for the evaluation board are available here   Design Documentation   ZIP file containing CAD source  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   Xplained   Atmel Xplained prototyping and evaluation platform   Atmel Spaces   Open Source projects for Xplained Mini   1 3  Xplained Mini Quick Start  How to connect the ATmega328PB Xplained Mini board embedded debugger to Atmel Studio and how to  connect the ATmega328PB UART to a COM port   1 3 1  Connect to Atmel Studio  How to connect the ATmega328PB Xplained Mini board embedded debugger to Atmel Studio to get  started with SW development   1  Download and install Atmel Studio version 6 2 or later versions   2  Launch Atmel Studio   3  Connect the board to the USB port and it will be visible 
3.    pin2 connected to pin1   Board and target powered by VBUS        3 3V USB pin2 connected to pin2 connected to pin1   Target powered by 3 3V and USB  pin3  remove R301 interface powered by VBUS    VIN pin2 connected to pin1   pin2 connected to pin3    Board and target powered by VIN   remove R300 J202 8  1 8V    VIN    5 5V    3 3V VIN pin2 connected to pin2 connected to pin3  Target powered by 3 3V  VIN as  pin3  remove R301 remove R300 regulator input  4V    VIN    16V    EN Tip  Use the BOD LEVEL fuse to avoid the following challenges     t For the CPU to successfully decode and execute instructions  the supplied voltage must always  stay above the minimum voltage level set by the chosen operating frequency     When supplied voltage drops below this level  the CPU may start to execute some instructions  incorrectly  The result is unexpected activity on the internal data and control lines     This activity may cause CPU Registers  I O Registers and Data Memories to get corrupted     To avoid these problems  the CPU should be prevented from executing code during periods of  insufficient supply voltage     mEDBG    The ATmega328PB Xplained Mini board has an embedded debugger programmer enabling debugging  and programming of the ATmega328PB without any additional external equipment     mEDBG Status LED  The mEDBG has a green status LED connected to ATmega32U4 PC6 to signal the embedded debugger  state     Atmel Atmel ATmega328PB Xplained Mini  USER GUIDE  16    Atmel 42469A 
4.   Tool information  Erase Chip     Erase now      Device information Flash  32 KB   Oscillator Calibration CAUsers tbjoernvold Documents svn ATmega328PB_Xplained_Mini 07_Firmware verification_firm  v  un          Memories  F  Erase device before programming     V  Verify Flash after programming   program     vei     Res          Fuses  Lock bits EEPROM  1 KB     Mo CAUsers tbjoernvold Documents svn ATmega328P_Xplained_Mini 06_Hardware Verification FW E Y  a   Production file c                    V  Verify EEPROM after programming  Program  Verify   Read       Erasing device    OK  Programming Flash   OK     Verifying Flash   OK   7  Verifying Flash  OK       L       4  NOTE  If a previous debug session was not closed by selecting  Disable debugWIRE and Close  in  the Debug menu  the DWEN fuse will be enabled and the target will still be in debug mode  i e  it  will not be possible to program the target using the SPI        o Erasing device failed    v   Details             Atmel Atmel ATmega328PB Xplained Mini  USER GUIDE  4    Atmel 42469A ATmega328PB Xplained Mini_User Guide 07 2015    5  Ifthe source file contains fuse settings  select  Production file  and upload the  elf file to program  the fuses     6  Select  Fuses  to program the fuses manually  Set the fuse s  and click  Program   Recommended  fuse settings    bas  aTML2323020200000051      Device Programming   B   EN     Tool Device Interface Device signature Target Voltage       menos  sme   se     aei    OAS 33v 
5.  DWEN fuse                 No             7  Adebug session is started with a break in main  debugging can start     8  When exiting debug mode select  Disable debugWIRE and Close  in the Debug tab  this will  disable the DWEN fuse     Atmel Atmel ATmega328PB Xplained Mini  USER GUIDE  5    Atmel 42469A ATmega328PB Xplained Mini_User Guide 07 2015    Important  If not exiting debug mode by selecting  Disable debugWIRE and Close  in the  x Debug menu  the DWEN fuse will be enabled and the target will still be in debug mode  i e  it  will not be possible to program the target using the SPI     Important  If any other CPU CLK than the external CLK supplied by the mEDBG is used the    debugWIRE is not guaranteed to work     may result in unexpected behaviour  This signal is NOT available during a debugging session     gt  Important  Applying a signal to J202 RESET  the RESET_SENSE signal  while debugging  because the RESET line is actively used by the debugWIRE interface    1 4 3  Programming the Target using an External Programmer  How to program the target ATmega328PB using the AVR   JTAGICE mkll  JTAGICE3  Atmel ICE  or  other Atmel Programmers     1  Connect the External Programmer USB to the PC   2  Connect the External Programmer to the ATmega328PB Xplained Mini board SPI connector     3  Go to Atmel Studio  click the Tools tab  select Device Programming  and select the External  Programmer connected as Tool with Device as ATmega328PB and Interface to SPI  click Apply   4  
6.  Ress   i    Interface settings Fuse Name Value                         Tool information  sovueveL  aver    rstose  E   Device information      DWEN m   Oscillator Calibration     nee  9  SPIEN y   iemories n  z  woron E  uses    9 EESAVE E    Lock bits                 9 Boorsz 2048W 3800     Production file  esoorrsst M    ckovs a     ckour   SuT_CKSEL  EXTCLK 6CK 14CK 65MS v    Fuse Register Value  EXTENDED     OxFE       HIGH OxD8   LOW Ox  0   A d   Copy to clipboard   I uto rea    Z  Verify after programming  Program   Verify     Rea                    Z  Verify registers   OK    Close          u  Ls           1 4 2  Debugging the Target using mEDBG    Using the Embedded Debugger on the ATmega328PB Xplained Mini board to debug the ATmega328PB  via debugWIRE     Start Atmel Studio    Connect the Xplained Mini USB to the PC    Open your project    Click the  Project  tab and select the project  properties   click the  Tools  tab and select mEDBG  as debugger and debugWIRE as interface    Click the  Debug  tab and select  Start Debugging and 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 SPI interface   Launch Failed i      Boo qw           gt    Failed to launch debug session with debugWIRE  This could be caused by reset line    circuitry or disabled debugWIRE interface  Make sure that the reset line is free before  continuing  Do you want to use SPI to enable the
7.  The external clock will be 1MHz     Table 1 1 Available Commands    Mode  Command     External CLK   COM port mEDBG program   mEDBG debug    Sleep OxFB  bit2 0  disabled disabled disabled disabled   1MHz OxFD  bit1 0    1MHz enabled useless useless   Factory settings   OXFF 16MHz   5V    enabled enabled enabled  8MHz   3V3     mEDBG Fuse Filter   The mEDBG does not initially allow users to program the CLK related fuses in the target  This is done to  avoid problems with the debugger when the target and mEDBG is not in CLK sync  This filter can be  disabled by issuing the command OxFE   bitO   0  enabling configuration of all ATmega328PB fuses     How to Issue Commands  The command line interface is supported by mEDBG version 1 6 or later     The mEDBG command line interface can be accessed with the Python script found on Atmel Spaces  Releases  mEDBG script zip      Atmel ATmega328PB Xplained Mini  USER GUIDE  8    Atmel 42469A ATmega328PB Xplained Mini User Guide 07 2015    If you have Studio 7 0  and later versions   the mEDBG included supports the command line interface  if    not  the mEDBG can be downloaded from  medbg fw zip      Basic Python is required to run the script  Python can be downloaded from    How to issue commands    6  7  8  9  1    Ord  ON ER    Install   Download the file  mMEDBG script zip  from   Unzip the file  mEDBG script zip     Edit  stuff py  to issue the selected command  c set suffer OxXX       Open a command window in the directory where  stu
8.  and debugging of the   ATmega32U4    Table 2 11 J100 JTAG Header   J100 pin   Signal name   Description   1 TCK     2 GND     3 TDO     4 VCC BOARD ATmega32U4 Voc    Atmel Atmel ATmega328PB Xplained Mini  USER GUIDE  17    Atmel 42469A ATmega328PB Xplained Mini_User Guide 07 2015    2 5 5     2 6          J100 pin   Signal name   Description    5 TMS  6 RESET Connected to ATmega32U4 only  7 NC  8  9             NC  TDI  10 GND                      mEDBG USB Interface  J101 is a Micro B USB connector connected to the embedded debugger  ATmega32UA      Table 2 12 J101 USB Header  1 VBUS  D           D   NC  GND          a fF WwW N                The VBUS has a resettable PTC fuse  F100   with a hold current of 0 5A and a trip current of 1 0A to  protect the USB host device     Extension Header Area    The marked area on the grid I7 to R8 can be used for strapping in an Xplained Pro extension header or a  10 pin Xplained RZ600 header     Extension header area    SPI SS  SPI MISO       The SPI bus signals are made available close to the header at row J and K  enabling easy connection to  header pin 15 to 18     Using Pin 11 to 20 enables connection of the 10 pin connector used on the RZ600 wireless modules and  the 10 pin Xplained sensor modules     Atmel Atmel ATmega328PB Xplained Mini  USER GUIDE  18    Atmel 42469A ATmega328PB Xplained Mini_User Guide 07 2015    2 7     The general bus connections for an Xplained PRO Extension board is indicated in the table below   detailed 
9. 28PB Xplained Mini_User Guide 07 2015             8 AREF     9 PC4 SDA  2 wire Serial Bus Data Input Output Line  Shared with  ADC4     10   PC5 SCL  2 wire Serial Bus Clock Line  Shared with ADC5       Table 2 2 J201 Digital I O High Low Header   1 PDO   TXD  ATmega328PB USART Output Pin    ppt  RXD  ATmega328PB USART Input Pin     PD2     PD3   PD4   PD5    PD6   PD7    el lolo   amp   o m       2 2 3    Board Power Header  The J202 header enables connection to the ATmega328PB Xplained Mini power system     Table 2 3 J202 Power Header    Description         2 VCC_TARGET The power source selected for the target   Select by J301     3 RESET SENSE This is a RESET signal monitored by the mEDBG  if pulled low the  target RESET line will be pulled low by the mEDBG  The ATmega32U4  internal pull up is enabled  This signal is not available during debugging       4  VCC P3V3   The 3 3V regulator output    5 VCC P5VO The selected power source   VIN or VBUS selected by J300    6 GND     7 GND     8 VCC_VIN The external power source connection     2 2 3  Target Analogue I O  The ATmega328PB ADC input pins are available in the J203 header     AREF is available in J200 pin 8     Atmel Atmel ATmega328PB Xplained Mini  USER GUIDE  12    Atmel 42469A ATmega328PB Xplained Mini User Guide 07 2015    Table 2 4 J203 Analogue Header    J203 pin   ATmega328PB pin    Function                               1 PCO ADC Input Channel 0  2 PC1 ADC Input Channel 1  3 PC2 ADC Input Channel 2  4 PC3 ADC In
10. 469A ATmega328PB Xplained Mini User Guide 07 2015    9    Atmel    Interface settings  Device information  Oscillator Calibration  Memories   Fuses   Lock bits    mEDBG   Debug host   Debug port   Serial number ATML2523010200000003   Connection com atmel avrdbg connection cmsis dap  Firmware Version la   Hardware Version 0    Atmel ATmega328PB Xplained Mini  USER GUIDE     Atmel 42469A ATmega328PB Xplained Mini User Guide 07 2015       10    2 1     2 2     2 2 1     Hardware User Guide  Enter a short description of your concept here  optional      This is the start of your concept     Board Overview  The ATmega328PB Xplained Mini headers overview               J300  Power source       SEREENIEM   EI rc 73 4100  JTAG    J104  COM  J102  BOOT strap  mEDBG LED  External Clock  J202  power I O    J200  Digital I O high    J203  analogue   O  J204  SPI  User button  User LED    J201  Digital I O low    Target Headers and Connectors  The ATmega328PB related headers     Target Digital I O  The J200 and J201 headers provide access to the ATmega328PB digital I O pins     Table 2 1 J200 Digital I O High Byte Header                                  J200 pin   ATmega328PB pin Function   1 PBO   2    PB m   3   PB2 SS  SPI Bus Master Slave select   4 PB3 MOSI  SPI Bus Master Output Slave Input I  l5 PBA MISO  SPI Bus Master Input Slave Output   le   PB5   SCK  SPI Bus Master clock Input  z GND                   Atmel Atmel ATmega328PB Xplained Mini  USER GUIDE  11    Atmel 42469A ATmega3
11. ATmega328PB Xplained Mini User Guide 07 2015    Table 2 9 mEDBG Green Status LED Function       mEDBG state  LED       Enumeration ON   During the initial USB connection process the LED is on until enumerated  or if not enumerated it is turned off within about 5 seconds    Programming ON The LED is on during programming  Debugging   ON   The LED is on when the debugger is running             2 5 2  mEDBG External Clock   The mbEDBG  ATmega32U4  clock out signal  PC7  is connected to the ATmega328PB external clock   input signal and can be used as the system clock source  The External Clock frequency is 16MHz when   the target is running at 5V and 8MHz when running at 3V3      Tip  The External Clock can be set to 1MHz to save power using the mEDBG command line     interface   EN Tip  There is a test point marked EXT CLK enabling easy measuring and or connection to the  a CLK signal    2 5 3    mEDBG COM Port Connection   The mEDBG provide a CDC COM port connection when connected to a USB host device    The mEDBG  ATmega32U4  USART is used for communication with the CDC COM port  The USART   TX RX signals are available on the J104 header and are also connected to the ATmega328PB via 00   resistors enabling easy disconnect from the ATmega328PB if needed    Table 2 10 J104 USART Header   1   USART TxD   PD3 TxD out from ATmega32U4     2   USART RxD PD2 PDO RxD i in to ATmega32U4    2 5 4    mEDBG JTAG Interface   The mEDBG  ATmega32U4  JTAG interface is available for programming
12. E 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 system
13. Programmer                      seeeeeene 6   1 4 4    Programming the ATmega32U4 using an External Programmer                             sss 6   1 4 5    Programming the ATmega32U4 using a Bootloader    7   E2XEESO TOPCee                                                    ceeds 8  1 5 1  Custom  Assembly    dee eet te hed ee elg FR e ne De ERE EUER ENTE e Rae de Vo HOD Quen aa 8   152  Standalone Node    eee ipd Loeb e le ed aane HUE 8   1 5 8    Connecting an Arduino Shield                        sseeee enn eene een 8   1 6  mEDBG Command Line Interface                     ciere succeeds renean inen ase resa Ree arme ane e 8  1 6 1    mEDBG Low Power Modes                sssseeeeeenen ener mener enne nennen 8   16 2  umBEDBG  Euse Filter    e rr terree ERR ERR to Etna Eee Re PI eben RR REPE S RRNRRRREEA 8   1 6 3  How to Issue Commands                ssssssssssssssseeeneeenennenen nennen nnne 8   2  Hardware User OLIEB   eiiis ie cunttsk ipai dasmid lintdasatianadaastuGeiantd Uil dnt pad agus Segue Lid 11  21  IO MI                                    11  2 2  Target Headers and Connectors    eee eee aeaa inne san tene Hed aiu a EE deca Et 11  22 1   Target Digital   O     cee ceed eel ette tte eee ee 11   2 2 4  Board Power Header    err REPERI R REX aapi atadai ridhoi Erning 12   2 2 3  Target Analogue l O                     ssssssssssssseseeeeeeee nnne nennen nennen enne nen tentes nen enne 12   2 2 4    Target  Programimlbg  ie ennemi pe t repe re prse i ee RP E Ries e
14. Select  Memories  and locate the source  hex or  elf file and click Program     1 4 4  Programming the ATmega32U4 using an External Programmer    How to program the ATmega32U4 using the AVR   JTAGICE mkll  JTAGICE3  Atmel ICE  or other Atmel  Programmers     1  Connect the External Programmer USB to the PC   2  Connect the External Programmer to the ATmega328PB Xplained Mini board JTAG connector     3  Goto Atmel Studio  click the Tools tab  select Device Programming  and select the connected  mEDBG as Tool with Device as ATmega32U4 and Interface to JTAG  click Apply     4  Select  Memories  and locate the source  hex or  elf file and click Program     Atmel Atmel ATmega328PB Xplained Mini  USER GUIDE  6    Atmel 42469A ATmega328PB Xplained Mini_User Guide 07 2015                r    Atmel ICE  41800001190      Device Programmi i     W          Tool Device Interface Device signature Target Voltage    tinge    Amau E   es   8  Interface settings Device         Tool information Erase Chip     Erase now  Device information Flash  32 KB     Oscillator Calibration Tmega328PB_Xplained_Mini 07_Firmware shipment_firmware medbg_images 2 0 0 38 medbg hex    m       Memories  V  Erase device before programming          V  Verify Flash after programming  Program   very   Read     uses  Lock bits EEPROM  1 KB         CAUsers tbjoernvold Documents svn ATSAMD10_Xplained_Mini ATSAMD10 XMINI O7_Firmware        Production file           VI Verify EEPROM after programming  Program   Verify   Re
15. ad               7  ok  L    Select  Fuses  to program the fuses manually  Set the fuse s  and click  Program   Recommended  fuse settings     7           Atmel ICE  041800001190      Device Programmi i Et                                             Tool Device Interface Device signature Target Voltage    Atmel ICE    ATmega32U4    JTAG   0x1 E9587 50V E  Interface settings Fuse Name Value  Tool information GsoDLEVEL  2vo   xwee F  Device information   9  OCDEN  Oscillator Calibration  ui QGracEN      vi  iemories  z D SPIEN E      worn E  Lock bits E    EESAVE ivi  Production file  9 BooTsz 2048W  3800 z     BOOTRST   ckoive V    ckout y                                               EXTENDED     OxF6 E  HIGH 0x91 ry  LOW OXiE T  Copy to clipboard   7  Auto read es 2     V  Verify after programming  Program    very    Red        Read registers  OK  Close       1 4 5  Programming the ATmega32U4 using a Bootloader  This section describes how to use the bootloader to program the ATmega32U4     Atmel    QX lh Sd Oo  NI    Install the Bootloader interface on the PC  download the installer from FLIP    Start the Bootloader PC GUI  FLIP     Short strap J102    Connect the ATmega328PB Xplained Mini board USB connector to the PC    Select Device   ATmega32U4  Device   Select     Select USB communication  Ctrl U     Select memory area to program  use the toggle memory button bellow the Atmel logo    Select Load Hex file  Ctri L      Atmel ATmega328PB Xplained Mini  USER GUIDE  7    Atm
16. are available on the ATmega328PB Xplained Mini board  The QTouch area can  be configured as buttons or as a limited slider  For a typical button or slider reference design use the QT1  Xplained Pro extension   EN Tip  There is a range of QTouch reference designs demonstrated with the QT Xplained Pro   lt    extensions located at  Xplained   Atmel Xplained prototyping and evaluation platform   Table 2 7 QTouch Buttons Wiring  Button   ATmega328PB PTC  A PE2 via 100k  Y6  V PE3 via 100k  Y7  R PC3 via 100k  Y3  S Connected via 0O to A enabling slider  configuration   In the default HW configuration the QTouch area can be configured in SW as 3 buttons or as a limited  slider   Atmel Atmel ATmega328PB Xplained Mini  USER GUIDE  15    Atmel 42469A ATmega328PB Xplained Mini_User Guide 07 2015    2 4     2 5     2 5 1     To get 4 buttons the S touch area can be connected to e g  PC2 by removing the OQ resistor R214 and  adding a wire or a 100k resistor from PC2  D1  to the test point in B5 5     On board Power Supply    The ATmega328PB Xplained Mini board has an on board 3 3V regulator  150mA  which can be used to  power the ATmega328PB     The J300 and J301 headers configure the ATmega328PB power supply and the board power source     The default configuration is set by R300 and R301 00 resistors which can be easily removed to change  the default configuration     Table 2 8 Board Power Options    J301 connection  J300 connection   target board    5V  Default  pin2 connected to pin1
17. ars ideae PERS 13   2 2 5  Target Additional l O                   ssesssssssssseseeeeeneneeneen nennen nnne nennen nene 13  roit                                                                O 13  ZROEMEMN ce DER 14   292   User ll B e eee rete rere erry reer ener cree eer rer ere tere er Mi LLLA I ueni D DE 14   VR Cei 15   2 4  On board Power Supply                  sssssssssssssseen enne enne nn nen terrens nn ten resins en nennt 16  WE dsIcmec                                                                      16  2 5 4   mEDBG Sltatus LED    eerte i ESPERE LE Enia E desea ted Dueb ek sep pends 16   2 5 2   mEDBOG External CIOCK              ce eerta ceti dene ect p dead Re duse 17   2 5 8    mEDBG COM Port Connection                  ssessseseeneenmenen eene mener 17   2 5 4    MEDBG JTAG Interface    iine rotate ener terae cue xe rage adag Ede to va ende 17   2 5 5  MEDBG USB Interface    entr rt eda ea ga fad needa dec ue de ec 18   20  Extension Header Ar  a      ieieroa creto ec ectetur de tla ode ve oda Pied 18  2 7  Factory Programmed                  sssssssssseseeee eene enne ene en nene enne neret nens enn en nennen nene 19  2 8  Document Revision History    ene enne enne nnne 20    Atmel    Atmel ATmega328PB Xplained Mini  USER GUIDE     Atmel 42469A ATmega328PB Xplained Mini_User Guide 07 2015       2    1  Getting Started  1 1  Features  The ATmega328PB Xplained Mini evaluation board provides a development platform for the Atmel  ATmega328PB   Key Features
18. el 42469A ATmega328PB Xplained Mini User Guide 07 2015    1 5     1 5 1     1 5 2     1 5 3     1 6     1 6 1     1 6 2     1 6 3     Atmel    9  Select Programming Options   10  Click  Run   observe status in status field     Board Assembly  The Xplained Mini board can easily be assembled into a product prototype for software development and  hardware verification     Custom Assembly  All signals of the ATmega328PB are available in the Xplained Mini board connector grid  enabling easy  connection of external sensors and output devices in order to prototype the customer specific application     Standalone Node  The ATmega328PB Xplained Mini board can be used as a standalone node with an external power  source  e g  the 4xAAA or 2xAAA battery pack available from Atmel     Connecting an Arduino Shield  Arduino   shields can be mounted in the marked positions  J200  J201  J202  and J203       mEDBG Command Line Interface  The mEDBG has a command line interface enabling configuration of the mEDBG     mEDBG Low Power Modes  There are two modes enabling the Xplained Mini to save power when connected to an external power  source other than an USB connection     Sleep Mode where the mEDBG is disabled  When enabled the ATmega32U4 will enter sleep mode if not  enumerated within about 5sec  In this mode the external clock is not available to the target MCU     1MHz Mode where the mEDBG ATmega32UA is set to run at 1MHz  saving power while maintaining the  USB connection for the COM port 
19. ff py  is located   Browse to the  folder right   click on folder with shift pressed and select    Open command window here       Connect the Xplained Mini    Run  stuff py   cAPython27 python stuff py     The script will print the selected tool and display SUFFER setting    Recycle power  disconnect connect the board  for the change to take effect     0  Edit  stuff py  to issue the command c set suffer OxFF  to reset to factory setting        r          C  Windows system32 cmd exe i Ar      C  Users thjoernvo ld Documents mEDBG_script gt c  Python2  python stuff  py  CMSIS    DAP DLL loaded   CMSIS    DAP tools detected  1   Tool   gt     Serial number  ATML2523616266660663  Vendor  Atmel   Product  mEDBG CMSIS   DAP   Device  Atmel ATmega328PB   Packet size  64    Selected mEDBG CATML2523616266000003 gt   Connected   Starting session      SUFFER reads as    xFB   SUFFER reads as    xFF   Ending session      CMSIS DLL freed    C  Users thjoernvo ld Documents mEDBG_script gt _    How to upgrade the Xplained Mini mEDBG    Topo    Start Atmel Studio   Connect the Xplained Mini to the computer   In Atmel Studio  select Tools     Device programming  Ctrl     Shift     P     In the Device Programming window  select Tool to mEDBG and click Apply  If there is a new  mEDBG version available  the Atmel Studio will ask if you want to upgrade     To verify mEDBG version  click  Tool Information  when mEDBG is selected as Tool     Atmel ATmega328PB Xplained Mini  USER GUIDE     Atmel 42
20. in Atmel Studio   Atmel Atmel ATmega328PB Xplained Mini  USER GUIDE  3    Atmel 42469A ATmega328PB Xplained Mini_User Guide 07 2015    1 3 2    Connect to the COM Port  How to connect the ATmega328PB UART to a COM port   All Xplained Mini boards have an embedded debugger  mEBDG  with a number of features  among them  a CDC COM port  which enables the user to connect the ATmega328PB UART to the PC   1  Connect the Xplained Mini USB to the PC   2  ACOM port named  mEDBG Virtual COM Port  will be available     3  Start a terminal emulator or other applications using the COM port  typical COM port settings are  9600 baud N81     1 4  Programming and Debugging  Programming and debugging the ATmega328PB Xplained Mini     The target micro controller is the ATmega328PB   The mEDBG FW is running on the ATmega32U4     1 4 4  Programming the Target using mEDBG  Using the Embedded Debugger on the ATmega328PB Xplained Mini board to program the  ATmega328PB and setting the fuses   1  Connectthe Xplained Mini USB to the PC     2  Goto Atmel Studio  click the Tools tab  select Device Programming  and select the connected  mEDBG as Tool with Device as ATmega328PB and Interface to SPI  click Apply     3  Select  Memories  and locate the source  hex or  elf file and click Program                mEDBG  ATML2523010200000003      Device Programming s       toe bae   f o   Tool Device Interface Device signature Target Voltage      ATmega328PB    IP   0x1E9516 Read 33V E  Interface settings Device  
21. ll be displayed  as text in the terminal window     The ATmega32UA is preprogrammed with the mEDBG     Atmel Atmel ATmega328PB Xplained Mini  USER GUIDE  19    Atmel 42469A ATmega328PB Xplained Mini User Guide 07 2015    2 8  Document Revision History          Document revision Comment  42469A 07 2015 Initial document release  Atmel Atmel ATmega328PB Xplained Mini  USER GUIDE  20    Atmel 42469A ATmega328PB Xplained Mini_User Guide 07 2015       Atmel Enabling Unlimited Possibilities    RZmRBgOIN    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 42469A ATmega328PB Xplained Mini User Guide 07 2015    Atmel   Atmel logo and combinations thereof  Enabling Unlimited Possibilities   AVR    QTouch   and others are registered trademarks or trademarks of Atmel  Corporation in U S  and 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  TH
22. put Channel 3  5 PC4 ADC Input Channel 4  6 PC5 ADC Input Channel 5          2 2 4    Target Programming    The J204 header enable direct connection to the SPI bus with an external programmer for programming    of the ATmega328PB     Table 2 5 SPI Header                      J204 pin ATmega328PB pin   l   Function  1 PB4 MISO  2 VCC target  3   PB5 SCK  4   PB3 MOSI  5 PC6 RESET  6 GND                   2 2 5  Target Additional I O    Signals not available in any of the headers or connectors  are available in column 5 of the grid     Table 2 6 Additional I O                ATmega328PB pin Grid position  PEO J5  PE1 I5  PE2 H5  PE3 G5                2 3  Target GUI    The ATmega328PB Xplained Mini has One LED  one push button  and a QTouch area     Atmel    Atmel ATmega328PB Xplained Mini  USER GUIDE     Atmel 42469A ATmega328PB Xplained Mini_User Guide 07 2015    13    QTouch        SW200 D200    2 3 1  Push Button  A general purpose push button  SW200  is connected to PB7     USER BUTTON  VCC nd           SKRAAKEOI0    SW200    GND          2 3 2  User LED  There is one yellow LED  D200  available for use by the application SW     The LED is connected to ATmega328PB pin 17   PB5 and to the SPI bus SCK signal for  SCK is in 3   state when not used by the mEDBG     Atmel Atmel ATmega328PB Xplained Mini  USER GUIDE  14    Atmel 42469A ATmega328PB Xplained Mini User Guide 07 2015       USER LED                                     2 3 83    QTouch buttons  Up to 4 QTouch buttons 
23. s 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     
24. wiring can be found in the selected extension board documentation     Table 2 13 Extension Header Typical Signals    1 ID Communication line to the ID chip on the Xplained extension board  2 GND Ground  3 ADC    Analog to digital converter  alternatively positive part of differential ADC  4 ADC    Analog to digital converter  alternatively negative part of differential ADC  5 GPIO1 General purpose I O  6 GPIO2 General purpose I O  7 PWM    Pulse width modulation  alternatively positive part of differential PWM  8 PWM      Pulse width modulation  alternatively negative part of differential PWM  9 IRQ GPIO Interrupt request line and or general purpose I O  10 SPI SS B  Slave B select for SPI and or general purpose I O  GPIO  11 I2C_SDA Data line for 12C interface  12 PE SCL Clock line for I C interface  13 UART_RX Receiver line of ATmega328PB USART  14 UART_TX Transmitter line of ATmega328PB USART  15 SPI SS A Slave A select for SPI  16 SPI MOSI Master out slave in line of serial peripheral interface  17 SPI MISO Master in slave out line of serial peripheral interface  18 SPI SCK Clock for serial peripheral interface  19 GND Ground  20 VCC Power for extension board    Factory Programmed  The ATmega328PB is preprogrammed with a demo program  ReMorse     Source code is available in Atme  Spaces     When the CDC COM port is connected to a terminal window  9600 N81   the text you write will be  transmitted via the LED in Morse code  Any Morse code transmitted by using the switch wi
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
FT00536-0.00-0179FV A2X90-VM  Mr. Coffee PR12A User's Manual  quinzaine de l`architecture contemporaine  Manual de instrucciones Manual de instruções  Tecumseh AVD5548EXH Drawing Data  Panasonic TH-42LF30U Specification Sheet  Brochure Leviton Seguridad y Control  Ver.5 真円度・円筒形状測定解析プログラム  取扱説明書はこちら  Protocole Centre hospitalier Page 1/3 Contenu Structures    Copyright © All rights reserved. 
   Failed to retrieve file