background image

2. 

Getting Started

2.1 

Quick Start

Steps to start exploring the ATtiny3217 Curiosity Nano Board:

1.

Download Atmel Studio/Microchip MPLAB

®

 X IDE.

2.

Launch Atmel Studio/Microchip MPLAB

®

 X IDE.

3.

Optional: Use 

MPLAB

®

 Code Configurator

 or 

Atmel START

 to generate drivers and examples.

4.

Write your application code.

5.

Connect a USB cable (Standard-A to Micro-B or Micro-AB) between the PC and the debug USB port on the
board.

Driver Installation

When the board is connected to your computer for the first time, the operating system will perform a driver software
installation. The driver file supports both 32- and 64-bit versions of Microsoft

®

 Windows

®

 XP, Windows Vista

®

,

Windows 7, Windows 8, and Windows 10. The drivers for the board are included with Atmel Studio/Microchip
MPLAB

®

 X IDE.

Kit Window

Once the board is powered, the green status LED will be lit, and Atmel Studio/Microchip MPLAB

®

 X IDE will auto-

detect which boards are connected. Atmel Studio/Microchip MPLAB

®

 X IDE will present relevant information like data

sheets and board documentation. The ATtiny3217 device on the ATtiny3217 Curiosity Nano Board is programmed
and debugged by the on-board debugger and, therefore, no external programmer or debugger tool is required.

Tip: 

 The Kit Window can be opened in MPLAB X IDE through the menu bar 

Window > Kit Window

.

2.2 

Design Documentation and Relevant Links

The following list contains links to the most relevant documents and software for the ATtiny3217 Curiosity Nano
Board:

MPLAB

®

 X IDE

 - MPLAB X IDE is a software program that runs on a PC (Windows

®

, 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.

Atmel Studio

 - Free IDE for the development of C/C++ and assembler code for microcontrollers.

IAR Embedded Workbench

®

 for AVR

®

 - This is a commercial C/C++ compiler that is available for AVR

microcontrollers. There is a 30-day evaluation version as well as a 4 KB code-size-limited kick-start version
available from their website.

MPLAB

®

 Code Configurator

 - MPLAB Code Configurator (MCC) is a free software plug-in that provides a

graphical interface to configure peripherals and functions specific to your application.

Atmel START

 - Atmel START is an online tool that helps the user to select and configure software components

and tailor your embedded application in a usable and optimized manner.

Microchip Sample Store

 - Microchip sample store where you can order samples of devices.

MPLAB Data Visualizer

 - MPLAB Data Visualizer is a program used for processing and visualizing data. The

Data Visualizer can receive data from various sources such as serial ports and on-board debugger’s Data
Gateway Interface, as found on Curiosity Nano and Xplained Pro boards.

Studio Data Visualizer

 

- Studio Data Visualizer is a program used for processing and visualizing data. The

Data Visualizer can receive data from various sources such as serial ports, on-board debugger’s Data Gateway
Interface as found on Curiosity Nano and Xplained Pro boards, and power data from the Power Debugger.

 ATtiny3217

Getting Started

©

 2020 Microchip Technology Inc.

 User Guide

DS40002193A-page 5

Содержание ATtiny3217 Curiosity Nano

Страница 1: ...features of the ATtiny3217 to explore how to integrate the device into a custom design The Curiosity Nano series of evaluation boards include an on board debugger No external tools are necessary to pr...

Страница 2: ...3 1 3 4 Special Commands 11 3 1 4 Data Gateway Interface DGI 12 3 1 4 1 Debug GPIO 12 3 1 4 2 Timestamping 12 3 2 Curiosity Nano Standard Pinout 13 3 3 Power Supply 13 3 3 1 Target Regulator 14 3 3 2...

Страница 3: ...tory 29 7 Appendix 30 7 1 Schematic 30 7 2 Assembly Drawing 32 7 3 Curiosity Nano Base for Click boards 33 7 4 Disconnecting the On board Debugger 34 7 5 Getting Started with IAR 35 The Microchip Webs...

Страница 4: ...egulator controlled by the on board debugger 1 8 5 5V output voltage limited by USB input voltage 500 mA maximum output current limited by ambient temperature and output voltage 1 2 Kit Overview The M...

Страница 5: ...ns on a PC Windows 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 singl...

Страница 6: ...Solutions Microchip PIC and AVR Device Solutions contains complete applications for use with Microchip development boards ready to be adapted and extended ATtiny3217 Curiosity Nano website Kit inform...

Страница 7: ...et application through terminal software A Data Gateway Interface DGI for code instrumentation with logic analyzer channels debug GPIO to visualize program flow The on board debugger controls a Power...

Страница 8: ...et Send Terminal Receive Terminal Send Info As shown in Figure 3 1 the debugger s CDC TX pin is connected to a UART RX pin on the target for receiving characters from the host computer Similarly the d...

Страница 9: ...packets that are already queued up for sending to the target will continue to be sent out but no further data will be accepted Remember Set up the terminal emulator to assert the DTR signal Without th...

Страница 10: ...system that has several limitations partly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application The Curiosity Nano USB Device is USB Chapter 9...

Страница 11: ...MPLAB X IDE which will automatically clear the CRC fuses after erasing 3 1 3 4 Special Commands Several utility commands are supported by copying text files to the mass storage disk The filename or e...

Страница 12: ...application They are typically used to plot the occurrence of low frequency events on a time axis for example when certain application state transitions occur The figure below shows the monitoring of...

Страница 13: ...ff input Disables the target regulator and target voltage when pulled low VTG Target voltage GND Common ground Figure 3 3 Curiosity Nano Standard Pinout USB DEBUGGER PS LED NC ID CDC RX CDC TX DBG1 DB...

Страница 14: ...programming dialog Any change to the target voltage is persistent even through a power toggle The resolution is less than 5 mV but may be limited to 10 mV by the adjustment program Info Voltage setti...

Страница 15: ...detects the new situation and turns the target voltage regulator back on 3 3 2 External Supply ATtiny3217 Curiosity Nano can be powered by an external voltage instead of the on board target regulator...

Страница 16: ...orst case current consumption of approximately 5 A Typical values may be as low as 100 nA 3 3 3 VBUS Output Pin ATtiny3217 Curiosity Nano has a VBUS output pin that can be used to power external compo...

Страница 17: ...PS LED is Lit 2 This can be the issue if power jumper J100 and or J101 is cut and the target voltage regulator is set to a value within the specified voltage range for the target device To fix this so...

Страница 18: ...they can be disconnected completely as described in 7 4 Disconnecting the On board Debugger 3 5 Programming External Microcontrollers The on board debugger on ATtiny3217 Curiosity Nano can be used to...

Страница 19: ...s Info Atmel Studio allows any microcontroller and interface to be selected when Hide unsupported devices is set to False also microcontrollers and interfaces which are not supported by the on board d...

Страница 20: ...ernal voltage as a reference for its level shifters Read more about the power supply in 3 3 Power Supply The on board debugger and level shifters actively drive data and clock signals DBG0 DBG1 and DB...

Страница 21: ...3 6 Connecting External Debuggers Even though there is an on board debugger external debuggers can be connected directly to the ATtiny3217 Curiosity Nano to program debug the ATtiny3217 The on board d...

Страница 22: ...Nano 2 3 4 5 6 7 8 1 VDD Ground DATA 2 VDD 3 Ground 4 PGD 5 Unused 6 Unused 7 Unused 8 Unused 1 Unused MPLAB PICkit 4 USB DEBUGGER PS LED NC ID CDC RX CDC TX DBG1 DBG2 VBUS VOFF DBG3 DBG0 GND VTG CURI...

Страница 23: ...D CDC RX CDC TX DBG1 DBG2 VBUS VOFF DBG3 DBG0 GND VTG CURIOSITY NANO CAUTION To avoid contention between the external debugger and the on board debugger do not start any programming debug operation wi...

Страница 24: ...PA5 ADC0 AIN5 PTC XY1 TCA0 WO5 PA6 PA6 ADC0 AIN6 PTC XY2 PA7 PA7 ADC0 AIN7 PTC XY3 PB5 PB5 ADC0 AIN8 PTC XY12 GND GND PB6 PB6 PB7 PB7 SW0 DEBUGGER ATtiny3217 Analog Debug I2C SPI UART Peripheral Port...

Страница 25: ...abled on pin PB7 Table 4 2 Mechanical Switch ATtiny3217 Pin Description Shared Functionality PB7 User switch SW0 Edge connector On board debugger 4 2 3 Crystal The ATtiny3217 Curiosity Nano Board has...

Страница 26: ...d debugger for programming and debugging MPLAB Data Visualizer can be used as a front end for the CDC and debug GPIO 4 2 4 1 On Board Debugger Connections The table below shows the connections between...

Страница 27: ...ATtiny3217 Pin Debugger Pin Function Shared Functionality PA0 DBG3 RESET J202 not connected by default Edge connector ATtiny3217 Hardware User Guide 2020 Microchip Technology Inc User Guide DS4000219...

Страница 28: ...six digits of the serial number which is listed under kit information contain the product identifier and revision Tip The Kit Window can be opened in MPLAB X IDE through the menu bar Window Kit Windo...

Страница 29: ...6 Document Revision History Doc rev Date Comment A 03 2020 Initial document release ATtiny3217 Document Revision History 2020 Microchip Technology Inc User Guide DS40002193A page 29...

Страница 30: ...29 PWM 3 24 ADC 2 23 ADC 1 22 ADC 0 21 GND 20 3 19 2 18 ADC 7 28 ADC 6 27 ADC 5 26 PWM 4 25 DEBUGGER TARGET ID 2 VOFF 33 RESERVED 1 VBUS 34 CNANO34 pin edge connector J200 PB2_USART0_TX PB3_USART0_RX...

Страница 31: ...NTs DBG2_CTRL VOFF CDC_RX_CTRL 47k R109 DBG1 CDC_TX_CTRL CDC_RX_CTRL SWCLK REG_ADJUST DBG2_GPIO DBG3_CTRL DBG2_CTRL UPDI UPDI GPIO GPIO RESET Signal DBG0 DBG1 DBG2 DBG3 ICSP Interface DAT CLK GPIO MCL...

Страница 32: ...0 5 P A J 1 0 2 0 4 P A J 1 0 2 0 3 P A J 1 0 2 0 2 P A J 1 0 2 0 1 C O J 1 0 2 P A J 1 0 5 0 1 1 P A J 1 0 5 0 1 0P A J 1 0 5 0 8 P A J 1 0 5 0 9 P A J 1 0 5 0 7 P A J 1 0 5 0 6 P A J 1 0 5 0 1 P A J...

Страница 33: ...CA0 WO1 PA5 PA5 ADC0 AIN5 PTC XY1 TCA0 WO5 PA6 PA6 ADC0 AIN6 PTC XY2 PA7 PA7 ADC0 AIN7 PTC XY3 PB5 PB5 ADC0 AIN8 PTC XY12 GND GND PB6 PB6 PB7 PB7 SW0 DEBUGGER ATtiny3217 Analog Debug I2C SPI UART Peri...

Страница 34: ...supply strap will disconnect the on board power supply Tip Any connection that is cut can be reconnected using solder alternatively a 0 0402 resistor can be mounted Tip When the debugger is disconnec...

Страница 35: ...g 1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project 2 In the category General Options select the Target tab Select the device for the project or if...

Страница 36: ...Figure 7 7 Select Target Device Figure 7 8 Select Debugger ATtiny3217 Appendix 2020 Microchip Technology Inc User Guide DS40002193A page 36...

Страница 37: ...Figure 7 9 Configure Interface ATtiny3217 Appendix 2020 Microchip Technology Inc User Guide DS40002193A page 37...

Страница 38: ...is available 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 pr...

Страница 39: ...lus ProASIC 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...

Страница 40: ...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 7...

Отзывы: