manualshive.com logo in svg
background image

 ATmega328P Xplained Mini

 ATmega328P Xplained Mini

Preface

This user guide describes how to get started with the ATmega328P Xplained Mini evaluation kit. The evaluation kit is
a hardware platform to evaluate the ATmega328P microcontroller. The on-board mini embedded debugger provides
seamless integration with Atmel Studio and MPLAB

®

 X integrated development platform. The kit provides access to

the features of the ATmega328P enabling easy integration of the device in a custom design.

©

 2020 Microchip Technology Inc.

 User Guide

DS50002659B-page 1

Содержание ATmega328P Xplained Mini

Страница 1: ... is a hardware platform to evaluate the ATmega328P microcontroller The on board mini embedded debugger provides seamless integration with Atmel Studio and MPLAB X integrated development platform The kit provides access to the features of the ATmega328P enabling easy integration of the device in a custom design 2020 Microchip Technology Inc User Guide DS50002659B page 1 ...

Страница 2: ...2 Board Assembly 15 4 3 Target Headers and Connectors 16 4 4 Target Peripherals 17 4 5 mEDBG 19 4 6 Extension Header Area 20 4 7 Factory Programmed 21 5 Hardware Revision History and Known Issues 22 5 1 Identifying Product ID and Revision 22 5 2 Revision 4 22 6 Document Revision History 23 The Microchip Website 24 Product Change Notification Service 24 Customer Support 24 Microchip Devices Code Pr...

Страница 3: ...he Target MCU One Green mEDBG Status LED One Yellow User LED One Mechanical User Push Button Virtual COM Port CDC External Target CLK 16 MHz At 5V 8 MHz At 3 3V USB Powered 3 3V Regulator Arduino Shield Compatible Footprints Target SPI Bus Header Footprint Xplained Pro Extension Headers Can Easily Be Strapped In 1 2 Board Overview A brief overview of the default kit configuration headers and conne...

Страница 4: ...3 DIGITAL J200 DIGITAL J200 Table 1 1 Default Configurations Function Default Configuration Other Settings Kit power source J300 5 0V USB powered External input VIN 1 Target power J301 5 0V USB powered 3 3V from on board regulator 1 ATmega328P clock 16 MHz mEDBG clock 2 Internal oscillator 3 Info Changing the default settings requires modification of the kit using a soldering iron 1 Details on how...

Страница 5: ...indows Mac OS Linux to develop applications for Microchip microcontrollers and digital signal controllers It is called an Integrated Development Environment IDE because it provides a single integrated environment to develop code for embedded microcontrollers Xplained Products Xplained Evaluation Kits are a series of easy to use evaluation kits for Microchip microcontrollers and other Microchip pro...

Страница 6: ...get will still be in debug mode i e it will not be possible to program the target using the ISP interface 5 If the 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 ATmega328P Xplained Mini Getting Started 2020 Microchip Technology Inc User Gu...

Страница 7: ...al while debugging may result in unexpected behavior This signal is NOT available during a debugging session because the RESET line is actively used by the debugWIRE interface 2 3 3 Programming the Target Using an External Programmer How to program the target ATmega328P using the AVR JTAGICE mkII JTAGICE3 Atmel ICE or other programmers 1 Connect the External Programmer USB to the PC 2 Connect the ...

Страница 8: ...G may not be recognized by Atmel Studio anymore 2 3 5 Programming the ATmega32U4 Using a Bootloader This section describes how to use the bootloader to program the ATmega32U4 1 Launch Atmel Studio 2 Short strap J102 3 Open the programming dialog select the bootloader in the tool menu 4 Connect the ATmega328P Xplained Mini board USB connector to the PC ATmega328P Xplained Mini Getting Started 2020 ...

Страница 9: ...elect Programming Options 10 Click Run observe the status in the status field WARNING Changing the firmware in the ATmega32U4 will remove the programming and debugging capabilities of the mEDBG If the EEPROM is altered the mEDBG may not be recognized by Atmel Studio anymore ATmega328P Xplained Mini Getting Started 2020 Microchip Technology Inc User Guide DS50002659B page 9 ...

Страница 10: ...P must match the settings given in the terminal software Info The virtual COM port in the mEDBG requires the terminal software to set the Data Terminal Ready DTR signal to enable the UART pins connected to the ATmega328P If the DTR signal is not enabled the UART pins on the mEDBG are kept in high z tri state rendering the COM port unusable The DTR signal is automatically set by some terminal softw...

Страница 11: ...rget MCU LOWP mode where the mEDBG is set to run at 1 MHz Saving power while maintaining the USB connection for the COM port The external clock will be 1 MHz Table 3 3 Low Power Modes Operation Mode External CLK COM Port ISP dW Program ISP dW Debug EOF disabled disabled disabled disabled LOWP forced 1 MHz enabled useless useless Factory settings enabled enabled enabled enabled 3 2 2 mEDBG Fuse Fil...

Страница 12: ...cal fuses using Atmel Studio However it does not prevent users from setting fuses freely using the command line interface atprogram bundled with Atmel Studio ATmega328P Xplained Mini Xplained Mini 2020 Microchip Technology Inc User Guide DS50002659B page 12 ...

Страница 13: ...arget device WARNING Writing the FUSE bit to 0 enables modification of all fuses in the ATmega328P Setting wrong fuse settings may render the mEDBG not usable on the ATmega328P Xplained Mini As an example if an invalid clock setting is set recovery may require an external debugger 3 3 mEDBG Firmware Upgrade and Manual Bootloader Entry The mEDBG firmware is updated through the programming dialog in...

Страница 14: ...bles of connections in the sections below also describe which signals are shared between the headers and on board functionality The figure below shows the assembly drawing of the ATmega328P Xplained Mini to help the identification of components Figure 4 1 ATmega328P Xplained Mini Assembly Drawing ATmega328P Xplained Mini Hardware User Guide 2020 Microchip Technology Inc User Guide DS50002659B page...

Страница 15: ...r R301 to connect the kit input voltage to the ATmega328P and mEDBG Important If the target voltage and input voltage select headers are soldered in and used with a jumper the bypass 0Ω resistors have to be removed to avoid contention 4 2 Board Assembly The Xplained Mini board can easily be assembled into a product prototype for software development and hardware verification All signals of the ATm...

Страница 16: ...igh Low Header J201 Pin ATmega328P Pin Function 1 PD0 RXD ATmega328P USART Input Pin 2 PD1 TXD ATmega328P USART Output Pin 3 PD2 4 PD3 5 PD4 6 PD5 7 PD6 8 PD7 4 3 2 Board Power Header The J202 header enables connection to the ATmega328P Xplained Mini power system Table 4 3 J202 Power Header J202 Pin Signal Description 1 NC 2 VCC_TARGET The power source selected for the target selected by J301 3 RE...

Страница 17: ...4 6 PC5 ADC Input Channel 5 4 3 4 Target Programming The J204 header enables a direct connection to the ISP bus with an external programmer for programming of the ATmega328P Table 4 5 ISP Header J204 Pin ATmega328P Pin Function 1 PB4 MISO 2 VCC target 3 PB5 SCK 4 PB3 MOSI 5 PC6 RESET 6 GND 4 3 5 Target Additional I O Signals not available in any of the headers or connectors are available in column...

Страница 18: ...200 GND 100k R209 VCC_TARGET 100n C204 USER BUTTON 4 4 2 User LED There is one yellow LED D200 available for use by the application SW The LED is connected to ATmega328P pin 17 PB5 The SCK signal from the mEDBG is in tri state when not used ATmega328P Xplained Mini Hardware User Guide 2020 Microchip Technology Inc User Guide DS50002659B page 18 ...

Страница 19: ...8P via 0Ω resistors enabling easy disconnect from the ATmega328P if needed The RX TX silkscreen notation next to J104 refers to the RX and TX pins of the mEDBG ATmega32U4 Table 4 7 J104 USART Header J104 Pin ATmega32U4 ATmega328P Function 1 USART TxD PD3 PD0 RxD TxD out from ATmega32U4 2 USART RxD PD2 PD1 TxD RxD in to ATmega32U4 4 5 2 mEDBG JTAG Interface The mEDBG ATmega32U4 JTAG interface is av...

Страница 20: ...tions for an Xplained Pro Extension board are indicated in the table below Detailed wiring can be found in the selected extension board documentation Table 4 9 Extension Header Typical Signals Pin Signal Name Signal Description 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 ...

Страница 21: ...terface 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 4 7 Factory Programmed The ATmega328P is preprogrammed with a demo program ReMorse When the CDC COM port is connected to a terminal window 9600 8N1 the text you write will be transmitted via the LED in Morse code Any Morse code ...

Страница 22: ...he serial number which is listed under kit details contain the product identifier and revision The same information can be found on the sticker on the bottom side of the PCB Most kits will print the identifier and revision in plain text as A09 nnnn rr where nnnn is the identifier and rr is the revision Boards with limited space have a sticker with only a data matrix code which contains a serial nu...

Страница 23: ...chip format and replaced the Atmel document number 42287C Restructured the user guide Added the 5 Hardware Revision History and Known Issues chapter 42287C 08 2015 Updated version 42287B 10 2014 Updated version 42287A 05 2014 Initial document release ATmega328P Xplained Mini Document Revision History 2020 Microchip Technology Inc User Guide DS50002659B page 23 ...

Страница 24: ...ilable through the website at http www microchip com support Microchip Devices Code Protection Feature Note the following details of the code protection feature on Microchip devices Microchip products meet the specification contained in their particular Microchip Data Sheet Microchip believes that its family of products is one of the most secure families of its kind on the market today when used i...

Страница 25: ...oASIC Plus logo Quiet Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProvider Vite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the U S A Adjacent Key Suppression AKS Analog for the Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyCom CodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEM dsPICDEM net Dyna...

Страница 26: ...3 7252 China Xiamen Tel 86 592 2388138 China Zhuhai Tel 86 756 3210040 India Bangalore Tel 91 80 3090 4444 India New Delhi Tel 91 11 4160 8631 India Pune Tel 91 20 4121 0141 Japan Osaka Tel 81 6 6152 7160 Japan Tokyo Tel 81 3 6880 3770 Korea Daegu Tel 82 53 744 4301 Korea Seoul Tel 82 2 554 7200 Malaysia Kuala Lumpur Tel 60 3 7651 7906 Malaysia Penang Tel 60 4 227 8870 Philippines Manila Tel 63 2 ...

Отзывы: