Home
ATmega168 Xplained Mini User Guide (USER GUIDE)
Contents
1. Function 2 3 3 USART J102 The ATmega32U4 UASRT signals are available on J102 Table 2 3 J102 USART J102 pin ATmega32U4 ATmega168 Function 1 UART TXD Low PD1 TxD from ATmega32U4 2 UART RXD PD2 PDO _ 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 amp location ATmega168 pin J200 1 111 PBO J200 2 PBI J200 3 PB2 J200 4 PB3 J200 5 PB4 _ 5200 6 PBS J200 7 GND J200 8 AREF J200 9 PC4 J200 10 PC5 Table 2 5 J201 J201 pin ATmega168 pin J201 1 PDO Atmel ATmega168 Xplained Mini User Guide USER GUIDE 11 42250A MCU 02 2014 J201 pin J201 2 PD1 J201 3 PD2 J201 4 PD3 J201 5 PD4 J201 6 PDS J201 7 PDE J201 8 PDT 2 3 5 ATmega168 Analogue I O J203 The ATmega168 analogue I O pins are available in J203 Table 2 6 J200 J200 pin amp location J200 1 111 PCO J200 2 PC1 _ J200 3 PC2 J200 4 PC3 J200 5 PC4 J200 6 PCS 2 3 6 Power J202 The ATmega168 VCC and RESET is available in J202 Table 2 7 J100 Xplained Pro Extension Header NC ATmega168 Vcc R NC ATmega168 Vcc GND 7 GND I ATmega168 Vcc ONO A w N gt 2 3 7 ATmega168 ISP J204 J204 enable direct connection to ISP for programming of the ATmega168 or
2. Aa hea gedetindsctete 12 2 3 7 ATmega168 ISP J204 cece ence eee ee eee eee eeaes 12 ZA Board GUI scriere nosena ehi i ia E n se cated enedies 13 24A BEDS lt sitytsessidsteciscaetdecadd E E AE UNE E 13 24 2 BUON greer assie aea a aa aE S Eaa DEES 13 2 0 Factory Programmed Datassist rdir gei dene EKETE EES 13 3 Document Revision History sicicscccccccisccscdscccesenaveseacttaccennorsvede 14 ATmega168 Xplained Mini User Guide USER GUIDE 2 42250A MCU 02 2014 1 1 1 2 1 3 1 3 1 1 3 2 1 3 3 1 4 1 4 1 1 4 2 1 5 1 5 1 Getting Started Features The ATmega168 Xplained Mini evaluation board provides a development platform for the Atmel ATmega168 Design Documentation and Related Links The most relevant documents and software for the evaluation board Board Assembly The Xplained Mini board is very flexible and can be used in a number of ways E g as your own prototype for SW development and HW verification In Customer Development Assembly The ATmega168 Xplained Mini board can be wired into the customer prototype assembly by using the on board connector grid where most target signals are available Connecting an Arduino Shield By assembling receptacles in the marked positions Arduino shields can be mounted Standalone Node The ATmega168 Xplained Mini board can be used as a standalone node use the 4xAAA battery pack available in Atmel store to provide power Connecting the Kit How to
3. and Close in the Debug menu this will disable the DWEN fuse If any other cpu clk than the external clk supplied by the mEDBG is used the debugWIRE is not guaranteed to work 1 5 3 Programming the Target Using an External Programmer How to program the target ATmega168 using the AVR JTAGICE mkll JTAGICE3 or other Atmel Programmers 1 2 Atmel Connect the External Programmer to the PC Connect the External Programme to the evaluation board connector J204 Need the 6 pin 100mil adapter connected to the JTAGICE Go to Atmel Studio Tools Device Programming and select the External Programmer connected as Tool Select Device ATmega168PA Interface ISP and click Apply Select Memories and locate the source hex or elf file and click Program If the source contains fuse settings go to Production file and upload the elf file and program the fuses ATmega168 Xplained Mini User Guide USER GUIDE 4 42250A MCU 02 2014 Recommended fuse setting BOOTSZ 1024W_1C00 BOOTRST RSTDISBL DWEN SPIEN X WDTON EESAVE BODLEVEL DISABLE CKDIV8 CKOUT SUT_CKSEL EXTCLK_6CK_14CK_65MS 1 5 4 Programming the ATmega32U4 Using an External Programmer How to program the ATmega32U4 using the AVR JTAGICE mkll JTAGICE3 or other Atmel Programmers To restore the mEDBG FW use the tools mEDBG mEDBG _fw zip from the Studio installation 1 2 3 Important Connect the Extern
4. connect the evaluation board Atmel Studio How to connect the ATmega168 Xplained Mini board assembly to Atmel Studio 1 Download and install Atme Studio 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 Connect the ATmega168 UART to the mEBDG 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 ATmega168 UART to the PC 1 Connect the mEDBG USB to the PC 2 Use the Device Manager to find the COM port number 3 Default COM port settings are 9600baud N81 The COM port settings can be changed using the Device Manager 4 Ports COM amp LPT ECP Printer Port LPT1 i mEDBG Virtual COM Port COMS0 Programming and Debugging How to program and debug the Xplained Mini board Programming the Target Using mEDBG Using the Embedded Debugger on the Xplained Mini board to program the ATmeag168 via the SPI bus f http www atmel com tools XplainedMini aspx k http www atmel com tools atmelstudio aspx Atmel ATmega168 Xplained Mini User Guide USER GUIDE 3 42250A MCU 02 2014 Important Connect the mEDBG USB to the PC Go to Atmel Studio Tools Device Programming and select the connected mEDBG as Tool with Device ATmega168PA and Interface ISP click Apply Note that if ISP programming fails it could be because debugWIRE is enabled See
5. debugging chapter on how to disable debugWIRE mode Debugging the Target Using mEDBG on page 4 Select Memories and locate the source hex or elf file and click Program If the source contains fuse settings go to Production file and upload the elf file and program the fuses To set fuses manually click Fuses and select the setting Recommended fuse setting BOOTSZ 1024W_1C00 BOOTRST RSTDISBL DWEN SPIEN X WDTON EESAVE BODLEVEL DISABLE CKDIV8 CKOUT SUT_CKSEL EXTCLK_6CK_14CK_65MS If any other cpu clk than the external clk supplied by the mEDBG is used the debugWIRE is not guaranteed to work The mEDBG will prevent writing certain fuse combinations in order to protect your kit 1 5 2 Debugging the Target Using mEDBG Using the Embedded Debugger on the Xplained Mini board to debug the ATmega168 via debugWIRE 1 Be Geos o Important Start Atmel Studio Connect the mEDBG USB to the PC Open your project In the Project menu select the project properties page select the Tools tab and select mEDBG as debugger and debugWIRE as interface In the Debug menu click Start Debugging and Break 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 A debug session is started with a break in main debugging can start When exiting debug mode select Disable debugWIRE
6. tp Atmel Wireshark Interface ka 4 All Standalone WireShark interface for the ZigBit USB ASF sticks ATAVRRZUSBSTICK and the RF231 USB Stick i A t mMm el Debugging Development hn Atmel Kits i i Free 4 Devi B Getting started help for kits provided by Atmel such i oe as the Xplained Pro series Created by Atmel Version 11 5 ANR EN Data Size Viewer Free Downloads 1127 Projects Displays a list grouped by segment of a compiled Rating oor Toolchain application s symbols and their sizes Show via the E Tools Reviews Traini AStyle Extension oto 4 Utilities An extension for Artistic Style Emon Source code is available at http code google com 7 27 2013 Version 11 5 USB Driver Yemfication C VsVim Free Wireless VIM emulation layer for Visual Studio Updates 1 Download FreeRTOS Viewer This extension automatically retrieves and interprets kernel data structures when FreeRTOS source code i z ot 23 26 Start Flip if the USB stick is not recognized continue with step 5 Update the USB DFU driver ATmega168 Xplained Mini User Guide USER GUIDE 42250A MCU 02 2014 File Action View Help e 9 TEH e PRs b ca IDE ATA ATAPI controllers b Z Imaging devices 4 Jungo ull WinDriver gt Keyboards gt A Mice and other pointing devices p i Monitors D 1 Network adapters 4 gt Other devices adi DFU ATXMEGA256A3U gt J Ports COM amp LPT gt Processors
7. A Atmel 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 Atmel plo 6 7 8 9 10 msu i2 roe E NC RESET UCC NC JKLMNOPAQR UIN GND GND 5U PC5 PC4 PC3 PC2 PC1 PCO AUER CRORES ERC Hint 9 O a p a es sin m amp T a Zz a D a a a o w a yN a a a a a O a a A a a v O a o e a a o O a x a a a a o a a D 42250A MCU 02 2014 Atmel Table of Contents NniigolelUTeito n a A E E E 1 1 Getting Start d ssiri erini erener raae tetas EEES 3 WAS Fears qoi fensqasacactuwidinaancs ten at e ue a A E E aE 3 1 2 Design Documentation and Related Links eccccccceneneeee 3 1 3 Board ASSEMBLY iscsi ccene cnccaste cenesaeesaecssepearetasndaccenelaenesinpaeaestive 3 1 3 1 In Customer Development Assembly n 3 1 3 2 Connecting an Arduino Shield eeeeeeeeeee ee eeee ees 3 1 53 38 Standalone NOde 5 s sscetetesceceesceasdersseascueseeaeaccesoneast 3 1 4 Connecting the Wit sceseiviesssin
8. al Programme to the PC Connect the External Programme to the board connector J100 Go to Atmel Studio Tools Device Programming and select the External Programme connected as Tool select Device ATmega32U4 Interface JTAG and click Apply Select Memories and locate the source hex or elf file and click Program 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 CKOUT must be enabled the provide clock to the target 1 5 5 Bootloader This section describes how to use the bootloader to program the ATmega32U4 1 wo o NX 0 oO R Atmel Install the Bootloader interface on the PC as described in How to Install the Bootloader PC tool on page 6 Start the Bootloader PC GUI FLIP Short strap J102 Insert the USB stick in 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 Select Programming Options Click Run observe status in status field ATmega168 Xplained Mini User Guide USER GUIDE 5 42250A MCU 02 2014 1 5 6 How to Install the Bootloader PC tool How to i
9. 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
10. e done uate iesr daca rauk A Fri ERTELE ERANA 3 1 434 Atmel Studio cerminan E 3 1 4 2 Connect the ATmega168 UART to the mEBDG COM POM eee scateane tacth ea aE E E e A SEE 3 1 5 Programming and DEbUQGING i ccicceccctsoeenedsiepdencisnndarectorenececrys 3 1 5 1 Programming the Target Using MEDBG 3 1 5 2 Debugging the Target Using mEDBG nisce 4 1 5 3 Programming the Target Using an External Programmer ts sog cares orgs tainh ecu dexk aepduteatgwiacssisraeereerts 4 1 5 4 Programming the ATmega32U4 Using an External Programmet sais cecausednactahscuianaavaatsuhcedesusessntsenieniaaes 5 1S9 IBOOUOACSR sorea noite sane aE Paaa beaa Ba AEG 5 1 5 6 How to Install the Bootloader PC tool l c 6 1 6 Available Example Code ss 0 0 c25 c eceeesceeecadesias dues bien eeeeteeeeeoees 9 2 Hardware User Guide sii cmtecsiasscsicatastaasedostesinnseciasidonsensmianians 10 2 1 B rd OVEIWIOW piicc5cdeceessentten isn iecnteoangins hR PARON DR EE Ri 10 22 Glock DISHHDULOMN iscsi ce caer deekin ka ia E EEA FERRIS N 10 2 3 Headers and Connectors sicccic cscsineeseoeteenavteeesseeecnbesdusdnneh anes 10 234 JTAG N00 rini e is saten eek ence ES 10 29 2 USB INO gretsch e AE can otersena cnt SE GERR 11 23 39 USART J102 cick cee pees ieena EEEk TELEFE 11 2 3 4 ATmega168 Digital I O J200 and J201 ee 11 2 3 5 ATmegai168 Analogue I O J203 0 0 ee eeeeee eee eee 12 23 6 Power J202 i0i5c3cecaeseaganege ia tote miaii
11. h Smart card readers H DFU ATXMEGA256A3U Device type Other devices Manufacturer Unknown Location Port_ 0003 Hub_ 0004 Device status The drivers for this device are not installed Code 28 is no driver selected for the device information set or element To find a driver for this device click Update Driver Clik the Update Driver button and select Browse my computer Atmel ATmega168 Xplained Mini User Guide USER GUIDE 8 42250A MCU 02 2014 TS m oO LL Update Drivel Software PA TxmEga256A3U Browse for driver software on your computer Search for driver software in this location C Program Files x86 Atmel Flip 3 4 7 usb Include subfolders gt Let me pick from a list of device drivers on my computer This list will show installed driver software compatible with the device and all driver software in the same category as the device Ba Device Manager File Action View Help eo0 TISIA S R 4g NORLT0485 4 Atmel USB Devices id ATxmega256A3U gt gt Batteries gt 8 Bluetooth Radios gt giil Computer i ControlVault Device p c Disk drives gt A Display adapters gt DVD CD ROM drives gt os Human Interface Devices gt qq IDE ATA ATAPI controllers gt 285 Imanina devices 1 6 Available Example Code The ATmega168 is preprogrammed with a demo program ReMorse Source code is available in Atmel Spaces When the CDC COM
12. nstall the Bootloader PC GUI tool 1 Download the Flip in system programming tool installer from http www atmel com tools FLIP aspx FUP e L www atmel com tools FLIP aspx E Products Applications X Microcontrollers Home gt Products gt Microcontrollers gt Atmel AVR Atmel AVR 8 and 32 bit gt 32 bit AVR UC3 FLIP AVR XMEGA Microcontroller megaAVR Microcontroller 7 EE ape tinyAVR x Battery Management Automotive AVR ARM based Solutions 2 Run the Flip Installer F Flip 3 4 7 Setup Welcome to the Flip 3 4 7 Setup Wizard This wizard will guide you through the installation of Flip 3 4 7 Itis recommended that you dose all other applications before starting Setup This will make it possible to update relevant system files without having to reboot your computer Click Next to continue http www atmel com tools FLIP aspx Atmel ATmega168 Xplained Mini User Guide USER GUIDE 6 42250A MCU 02 2014 3 Download the Atmel USB extension and run the installer Atmel Tools Window Help Bl Command Prompt vA Device Programming G Add target E Code Snippets Manager Add in Manager Atmel Gallery Profile External Tools Import and Export Settings Customize Options IL Ctrl Shift P mz Ctrl K Ctrl B Sort by Highest Ranked Search Available Downloads P2
13. on All rights reserved Rev 42250A MCU 02 2014 Atmel Atmel logo and combinations thereof Enabling Unlimited Possibilities AvR and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries 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
14. 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 http spaces atmel com gf Atmel ATmega168 Xplained Mini User Guide USER GUIDE 9 42250A MCU 02 2014 2 Hardware User Guide 2 1 Board Overview Figure 2 1 ATmega168XMINloverview png USB Atmel i TE s mE NC RESET UCC NC 5U JK LMNOPAQR fe inl J201 io O a o a m m rad T a z o gt o a t m a o w 7a S a a R m Fo o m a a A a w a 9 a a o a S a a ra a o f a AB GD REME o J204 ISP SPI 2 2 Clock 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 Atmel ATmega168 Xplained Mini User Guide USER GUIDE 10 42250A MCU 02 2014 J100 pin Signal function GND JTAG_TDO VCC 5V0 JTAG_TMS RESET NC NC JTAG_TDI GND O AN DOO fF WwW DY oO 2 3 2 USB J101 J101 is a USB2 0 A PCB connector connecting the board to the PC Table 2 2 USB J101pin
15. to use the SPI bus to connect external equipment Table 2 8 J204 MISO _ VCC target ATmega168 SCK MOSI IRESE GND O O A wWwNnN Atmel ATmega168 Xplained Mini User Guide USER GUIDE 12 42250A MCU 02 2014 2 4 Board GUI 2 4 1 LEDs There are one LED available for use by application SW and one for the MEDBG Table 2 9 LEDs CED a Function D100 Green mEDBG will light during enumeration D200 Yellow ATmega168 pin 17 PB5 also connected to mEDBG SCK for ISP programming in 3 state when not used ao Salen SW200 D200 2 4 2 Button A button is available for general use by application SW Table 2 10 Button AE EULA LLa SW200 User defined high signal press to ground 8 PB7 negate 2 5 Factory Programmed Data The ATmega168 Xplained Mini board comes with a demo program preprogrammed in the ATmega168 FLASH using the external clock provided by the ATmega32U4 The ATmega32U4 is preprogrammed with the mEDBG Atmel ATmega168 Xplained Mini User Guide USER GUIDE 13 42250A MCU 02 2014 3 Document Revision History Document Comment revision 42250A 01 2014 Initial document release Atmel ATmega168 Xplained Mini User Guide USER GUIDE 14 42250A MCU 02 2014 Atmel Enabling Unlimited Possibilities Atmel Corporation 1600 Technology Drive San Jose CA 95110 USA T 1 408 441 0311 F 1 408 436 4200 www atmel com 2014 Atmel Corporati
Download Pdf Manuals
Related Search
Related Contents
AEG HM834080F-B User's Manual e/pop User Guide 1. In MANUAL DE USUARIO EStUfAS A pELLEt Cooktop NV4 - TC GMS User Manual (v8.3) Dale Tiffany TF90263 Instructions / Assembly TravRoute Pocket PC 5 User's Manual terminal traing manual halsey taylor owners manual manual del propietario halsey taylor Copyright © All rights reserved.
Failed to retrieve file