background image

 

42250A-MCU-02/2014

USER GUIDE

ATmega168 Xplained Mini User Guide

Introduction

This user guide describes how to get started with the Atmel

®

 ATmega168

Xplained Mini board.
The ATmega168 Xplained Mini evalutation kit is a hardware platform to evaluate

the Atmel ATmega168 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 ATmega168

enabling easy integration of the device in a custom design

Summary of Contents for ATmega168

Page 1: ...rd The ATmega168 Xplained Mini evalutation kit is a hardware platform to evaluate the Atmel ATmega168 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 ATmega168 enabling easy integration of the device in a custom design ...

Page 2: ...sing mEDBG 3 1 5 2 Debugging the Target Using mEDBG 4 1 5 3 Programming the Target Using an External Programmer 4 1 5 4 Programming the ATmega32U4 Using an External Programmer 5 1 5 5 Bootloader 5 1 5 6 How to Install the Bootloader PC tool 6 1 6 Available Example Code 9 2 Hardware User Guide 10 2 1 Board Overview 10 2 2 Clock Distribution 10 2 3 Headers and Connectors 10 2 3 1 JTAG J100 10 2 3 2 ...

Page 3: ...A battery pack available in Atmel store to provide power 1 4 Connecting the Kit How to connect the evaluation board 1 4 1 Atmel Studio How to connect the ATmega168 Xplained Mini board assembly to Atmel Studio 1 Download and install Atmel Studio 2 version 6 2 or newer 2 Launch Atmel Studio 3 Connect the board to the USB port and it will be visible in Atmel Studio 1 4 2 Connect the ATmega168 UART to...

Page 4: ...2 Connect the mEDBG USB to the PC 3 Open your project 4 In the Project menu select the project properties page select the Tools tab and select mEDBG as debugger and debugWIRE as interface 5 In the Debug menu click Start Debugging and Break 6 Atmel Studio will display an error message if the DWEN fuse in the ATmega168 is not enabled click YES to make Studio set the fuse using the ISP interface 7 A ...

Page 5: ...and locate the source hex or elf file and click Program 5 If the source contain fuse settings go to Production file and upload the elf file and program the fuses Recommended fuse setting BODLEVEL 3V5 HWBE X OCDEN JTAGEN X SPIEN X WDTON EESAVE X BOOTSZ 2048W_3800 BOOTRST CKDIV8 CKOUT X SUT_CKSEL EXTXOSC_8MHZ_XX_258CK_65MS Important CKOUT must be enabled the provide clock to the target 1 5 5 Bootloa...

Page 6: ... 02 2014 6 1 5 6 How to Install the Bootloader PC tool How to install the Bootloader PC GUI tool 1 Download the Flip in system programming tool installer from http www atmel com tools FLIP aspx 3 2 Run the Flip Installer 3 http www atmel com tools FLIP aspx ...

Page 7: ... Xplained Mini User Guide USER GUIDE 42250A MCU 02 2014 7 3 Download the Atmel USB extension and run the installer 4 Start Flip if the USB stick is not recognized continue with step 5 5 Update the USB DFU driver ...

Page 8: ...ATmega168 Xplained Mini User Guide USER GUIDE 42250A MCU 02 2014 8 Clik the Update Driver button and select Browse my computer ...

Page 9: ...ammed with a demo program ReMorse Source code is available in Atmel Spaces 4 When the CDC COM port is connected to a terminal window the text you write will be transmitted via the LED in Morse code Any Morse code transmitted by using the switch will be displayed as text in the terminal window 4 http spaces atmel com gf ...

Page 10: ...ck Distribution The ATmega32U4 mEDBG has an external 16MHz XTAL The ATmega32U4 provides an external 16MHz clock to the ATmega168 target 2 3 Headers and Connectors The board connectors 2 3 1 JTAG J100 J100 is the JTAG programming header typically used by the JTAGICE for programming of the ATmega32U4 mEDBG Table 2 1 JTAG J100 pin Signal function 1 JTAG_TCK ...

Page 11: ...ART J102 The ATmega32U4 UASRT signals are available on J102 Table 2 3 J102 USART J102 pin ATmega32U4 ATmega168 Function 1 UART TXD PD3 PD1 TxD from ATmega32U4 2 UART RXD PD2 PD0 TxD from ATmega168 2 3 4 ATmega168 Digital I O J200 and J201 J200 and J201 provide access to ATmega168 digital I O pins Table 2 4 J200 J200 pin location ATmega168 pin J200 1 I11 PB0 J200 2 PB1 J200 3 PB2 J200 4 PB3 J200 5 ...

Page 12: ... I11 PC0 J200 2 PC1 J200 3 PC2 J200 4 PC3 J200 5 PC4 J200 6 PC5 2 3 6 Power J202 The ATmega168 VCC and RESET is available in J202 Table 2 7 J100 Xplained Pro Extension Header J202 pin Description 1 NC 2 ATmega168 Vcc 3 RESET 4 NC 5 ATmega168 Vcc 6 GND 7 GND 8 ATmega168 Vcc 2 3 7 ATmega168 ISP J204 J204 enable direct connection to ISP for programming of the ATmega168 or to use the SPI bus to connec...

Page 13: ...B5 also connected to mEDBG SCK for ISP programming in 3 state when not used 2 4 2 Button A button is available for general use by application SW Table 2 10 Button Button Function ATmega168 pin SW200 User defined high signal press to ground negate 8 PB7 2 5 Factory Programmed Data The ATmega168 Xplained Mini board comes with a demo program preprogrammed in the ATmega168 FLASH using the external clo...

Page 14: ...ATmega168 Xplained Mini User Guide USER GUIDE 42250A MCU 02 2014 14 3 Document Revision History Document revision Date Comment 42250A 01 2014 Initial document release ...

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

Page 16: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Atmel ATMEGA168XMINI ...

Reviews: