background image

7. 

Appendix

7.1 

Schematic

Figure 7-1. ATtiny3217 Curiosity Nano Schematic

1

1

2

2

3

3

4

4

5

5

6

6

7

7

8

8

D

D

C

C

B

B

A

A

of

 4

A

Tt

in

y3

21

C

ur

io

si

ty

 N

an

o

27

/1

1/2019

A

Tt

in

y3

21

7_

C

uri

os

it

y_

N

an

o_

Targe

t_

M

C

U

.S

ch

D

oc

Pr

oj

ec

t T

itle

PC

B

 Asse

mbly 

Numbe

r:

PC

B

A

 Re

vis

ion:

File:

PCB 

Numb

er:

PC

Re

vi

si

on

:

D

es

ig

ne

w

ith

Dra

wn 

By

:

M.LOPER

Sh

ee

t T

itle

A

T

tin

y32

17

 C

ur

ios

ity

 Na

no

Engineer:

PB

 / 

TF

A08-3055

2

Size

A

3

A09-3333

2

Page:

Date:

Alt

ium

.co

m

PA6_A

DC0_AIN6

PA7_A

DC0_AIN7

PA3_LED0_TCA0_WO3

PB6

PB5_ADC0_AIN8

PB4_TCA0_WO1

PC4_ADC1_AIN10

PC2_SPI0_MOSI

PC1_SPI0_MISO

PC0_SPI0_S

CK

PB0_I2C0_SCL

PB1_I2C0_SDA

PB

2_

T

OSC2

GND

V

C

C

_T

ARGET

100n

C200

PC3_SPI0_S

S

PC0_SPI0_S

CK

PC1_SPI0_MISO

PC2_SPI0_MOSI

PB0_I2C0_SCL

PB1_I2C0_SDA

PA

2_

U

SA

R

T0_RX

PA

1_

U

SA

R

T0_TX

PC

5_A

D

C

1_

A

IN

11

PC4_ADC1_AIN10

PA4_ADC0_AIN4

PB4_TCA0_WO1

PA5_TCA0_WO5

PA6_ADC0_AIN6

PB6

PB5_ADC0_AIN8

R203

U

SE

R

 L

E

D

V

C

C

_T

ARGET

PC3_SPI0_SS

GND

U

SE

R

 B

U

T

T

O

N

PB7_SW0

PA7_ADC0_AIN7

1k

R202

YELLOW

LED

SML-D12Y1WT86

2

1

D200

TS604VM1-035CR

1

3

4

2

SW200

GND

GND

GND

PA3_LED0_TCA0_WO3

PB7_SW0

BLM18PG471SN1

L200

2.

2u

F

C205

GND

DB

G0

CD

C_

UA

RT

TX

RX

U

A

R

T

CDC_TX

CDC_RX

DBG2

DB

G1

DB

G3

DB

G2

D

E

B

U

G

GE

R

 C

O

N

N

E

C

T

IO

N

S

DBG1

DBG3

DBG0

VO

FF

ID

_S

YS

ID_SYS

VOFF

TA

R

GE

T

 B

U

L

K

PB7_SW0

PA3_L

ED0_TCA0_WO3

VBUS

PB

3_

T

OSC1

PC5_ADC1_AIN1

1

PA0_U

PDI

GND

C

D

C

 R

X

3

CDC

 T

X

4

D

B

G

1

5

D

B

G

2

6

T

X

7

R

X

8

2 SD

A

9

3 S

CL

10

4

M

OS

I

11

M

IS

O

12

S

C

K

13

S

S

14

GN

D

15

(T

X

)

16

1 (RX

)

17

D

B

G

3

32

D

B

G

0

31

GN

D

30

V

C

C

29

P

W

M

3

24

A

D

C

 2

23

A

D

C

 1

22

A

D

C

 0

21

GN

D

20

3

19

2

18

A

D

C

 7

28

A

D

C

 6

27

A

D

C

 5

26

P

W

M

 4

25

DEBUGGER

TARGET

ID

2

VOFF

33

R

E

SE

R

VE

D

1

VB

US

34

CNAN

O34-

pin 

edg

e co

nne

ctor

J200

PB

2_

U

SA

R

T0_TX

PB

3_

U

SA

R

T0_RX

PB

2_

U

SA

R

T0_TX

PB

3_

U

SA

R

T0_RX

PA1_U

SART0_TX

PA

2_

U

SA

R

T0_RX

PA4_ADC0_AIN4

PB7_SW0

PA5_TCA0_WO5

PA0_UPDI

J203

J201

J204

J205

J206

A

Ttiny3217

J202

GND

GND

32

kH

C

R

Y

ST

A

L

J209

PB3_TOSC1

PB2_TOSC2

J210

J2

11

J212

J213

PB

2_

U

SA

R

T0_TX

PB

3_

U

SA

R

T0_RX

NC

13pF

C204

N

.M

10p

C203

N

.M

VCC_EDGE

VCC_EDGE

A

T

ti

ny

32

17

U

PD

I

G

PI

O

1

G

PI

O

0

N

A

D

B

G0

D

B

G1

D

B

G2

D

B

G3

D

eb

ug

ge

r

C

D

C

 T

X

C

D

C

 R

X

U

SA

R

T

0 R

X

U

SA

R

T

T

X

V

T

G

1.

8V

 - 

5.

5V

PA

3

P

B

7

-

PA

0

P

B

2

P

B

3

N

am

e

P

in

32.

76

8kH

z

XC200

N

.M

PA

2

1

PA

3(

CL

KI

)

2

GN

D

3

VC

C

4

PA

4

5

PA

5

6

PA6

7

PA7

8

PB7

9

PB6

10

PB5

11

PB4

12

(T

OS

C1

)PB

3

13

(T

OS

C2

)PB

2

14

PB

1

15

PB

0

16

PC

0

17

PC

1

18

PC2

19

PC3

20

PC4

21

PC5

22

(U

PD I/

RES

ET)

PA0

23

PA1

24

PA

D

25

A

Ttiny3217-MFR

U200

1k

N

O

T

E

 o

U

A

R

T/CDC:

RX

/T

on

 the

 h

ea

de

de

no

te

th

e

in

put

/o

utp

ut 

di

re

cti

on 

of

 th

sig

nal

re

sp

ec

ti

ve

 to 

it

's

 s

ou

rc

e.

CD

C T

is 

ou

tp

ut

 fr

om

 the

DEB

UGG

ER.

CD

RX

 is 

in

pu

t to

 the

 D

E

BU

GG

ER

.

TX

 is 

ou

tp

ut

 f

ro

th

TA

R

G

E

T

 d

ev

ice

.

RX

 is 

in

put

 to

 th

e T

A

R

G

E

T

 d

ev

ic

e.

NO

TE

 o

I2

C:

No

 p

ul

l-

up

on

 b

oa

rd

. Pu

ll

-u

ps

 s

ho

ul

be

mo

un

te

cl

os

to

 s

la

ve

 d

ev

ic

e(

s)

.

Cryst

al d

atash

eet:

Cc

ry

st

al

 =

 7

pF

m

ax

 E

S

R

 =

 7

0k

Ohm

Ac

cur

ac

y

±

20ppm

A

Ttiny

3217 d

atash

eet:

C

xi

=

 5

.5

pF

C

xo

ut

 =

 5

.5

pF

C

l

1/(

 (

1/

5.

5p

F)

+

 (

1/

5.5

pF

)

2.

75

pF

M

ax

im

um 

E

S

@

 1

2.

5p

=

 4

0k

Ohm

M

ax

im

um

 E

SR

 @

 7

.5

pF

 =

 8

0k

Ohm

Es

ti

ma

te

Cp

cb

 =

 0

.5

pF

Esti

mat

ed l

oad

C

 =

 2

 (

C

cr

ys

ta

l- 

Cp

ar

a -

 C

pc

b)

C

 =

 2

 (

7p

F

 -

 2

.7

5p

F

 -

 0

.5

pF

)

C

 =

 7

.5

pF

Sel

ec

ted

 in

 de

sig

n a

ft

er 

ver

ifi

ca

tio

n

C

=

 10

/13

pF

 ATtiny3217

Appendix

©

 2020 Microchip Technology Inc.

 User Guide

DS40002193A-page 30

Summary of Contents for ATtiny3217 Curiosity Nano

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Page 36: ...Figure 7 7 Select Target Device Figure 7 8 Select Debugger ATtiny3217 Appendix 2020 Microchip Technology Inc User Guide DS40002193A page 36...

Page 37: ...Figure 7 9 Configure Interface ATtiny3217 Appendix 2020 Microchip Technology Inc User Guide DS40002193A page 37...

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

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

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

Reviews: