background image

6. 

Appendix

6.1 

Schematics

Figure 6-1. AVR-BLE Target 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

 5

A

V

R

-B

L

E

2020

-01-09

A

V

R

-B

LE

_T

ar

ge

t_

M

C

U

.S

ch

D

oc

Pr

oj

ec

t T

itle

PC

B

 A

ss

em

bl

N

um

ber:

PC

B

A

 R

ev

is

ion:

Fil

e:

P

C

B

 N

um

be

r:

P

C

B

 

R

ev

ision:

De

sig

n

ed

 w

it

h

D

ra

w

B

y:

M

ic

ro

ch

ip

 N

or

w

ay

Sh

ee

t T

itle

Ta

rg

et

 M

C

U

E

ng

ineer:

T

F

A

08-3038

2

Size

A

3

A

09-3314

3

Pa

ge

:

Date:

A

lti

um

.c

om

GND

100n

C200

1k

R210

U

S

E

R

 L

E

D

S

V

C

C

_T

A

RGET

PF

3_S

W0_

DG

I_F

W

U

S

E

R

 B

U

T

T

O

N

D

B

G

0

C

D

C

_

U

A

R

T

TX

RX

U

A

R

T

D

B

G

1

D

B

G

2

218

5-1

08S

S0C

YN

P1

1

2

3

4

5

6

7

8

J200

218

5-1

08S

S0C

YN

P1

1

2

3

4

5

6

7

8

J201

m

ik

ro

B

U

S

GND

GND

A

N

R

ST

C

S

SCK

M

IS

O

M

O

SI

+3.

3V

GND

PWM

INT

RX

TX

SC

L

SD

A

+

5V

GND

H

ea

d

er

 (F

em

al

e)

T

M

RN4870

10uF/10V

C202

10nF

C201

330

R

R20

7

1

2

4

3

5

KM

R22

1G

SW200

1k

R209

1k

R208

GND

S

D

A

5

S

C

L

6

G

N

D

4

V

C

C

8

P

A

D

9

N

C

1

N

C

2

N

C

3

N

C

7

U2

01

G

ND

G

ND

100

k

R20

1

V

C

C

_T

A

RGET

V

C

C

_T

A

RGET

PA

3_

I2

C

_S

C

L

PA

2_

I2

C

_S

D

A

V

C

C

_T

A

RGET

G

ND

100n

C204

C

ry

p

to

A

u

th

en

ti

ca

ti

on

T

M

T

em

p

er

at

u

re

 Se

n

so

r

GND

V

C

C

_T

A

RGET

4.7

k

R20

4

4.7

k

R20

5

V

C

C

_T

A

RGET

V

C

C

_T

A

RGET

T

P2

11

TP203

TP210

TP212

TP208

2

1

G

R

E

E

N

 L

ED

SM

L

-P12MTT86R

D200

R

E

D

 L

ED

SM

L

-P12VTT86R

2

1

D201

D

ef

au

lt

 I

2C

 a

dd

re

ss

: 0

x1

8

P

D

5_

M

B

U

S

_R

ST

PA

3_I

2C

_SC

L

PA

2_I

2C

_SD

A

P

D

7_

M

B

U

S

_A

IN

P

D

6_

M

B

U

S

_I

N

T

D

ef

au

lt

 I

2C

 a

dd

re

ss

: 0

x5

8

2

1

B

L

U

E

 L

ED

SM

L

P13

BC8TT86

D20

2

V

C

C

_T

A

RGET

GN

D

PC

0_

U

A

R

T

1_TX

PC

1_

U

A

R

T1_RX

TP214

100n

C205

SW

0

V

B

U

S

0R

R206

+

5V

TP213

TP209

D

A

TA

A

T

E

C

C

60

8A

D

B

G

3

PA

3_I

2C

_SC

L

PA

2_I

2C

_SD

A

V

C

C

_T

A

RGET

PD

2_

B

L

E

_R

X

_I

ND

10k

R20

0

N

.M

.

3-

ax

ia

l A

cc

el

er

at

io

n

 S

en

sor

V

C

C

_T

A

RGET

G

ND

100

n

C20

6

G

ND

100

n

C20

7

G

ND

A

lt

er

na

te 

I2

C

 a

dd

re

ss

: 0

x1

9

V

C

C

_T

A

RGET

PA

3_I

2C

_SC

L

PA

2_I

2C

_SD

A

1uF

C203

G

ND

A

T

meg

a320

8

PC

2_

A

C

C

L

_I

NT1

MCP9844

S

D

A

5

S

C

L

6

E

V

E

N

T

7

G

N

D

4

A

2

3

A

1

2

A

0

1

V

D

D

8

E

P

9

U202

PA

5_

SP

I_

M

IS

O

PA

6_

SP

I_

SCK

PA

4_

SP

I_

M

O

SI

PA

7_

SP

I_

C

S

S

D

O

/

A

S

E

L

1

S

D

x

2

V

D

D

I

O

3

N

C

4

IN

T1

5

IN

T2

6

V

D

D

7

G

N

D

I

O

8

G

N

D

9

C

S

B

1

0

PS

11

SC

x

12

B

M

A

253

U203

51

2k

 x

 8

 S

er

ia

l F

la

sh

V

C

C

_T

A

RGET

G

ND

100n

C208

G

ND

V

C

C

_T

A

RGET

PF

5_E

RR

_L

ED

P

D

1_

M

B

U

S_PWM

PF

4_D

A TA

_L

ED

_D

GI

B

L

E

ERR

PF

3_

SW

0_

D

G

I_FW

TP201

PD

0_S

PI_

CS

PA

5_S

PI_

MIS

O

PA

6_S

PI_

SC

K

PA

4_S

PI_

MO

SI

V

C

C

_T

A

RGET

TP207

TP206

TP202

TP204

TP205

P

A

3

1

(E

XT

CL

K)

PA

0

30

PA

1

31

PA

2

32

P

A

4

2

P

A

5

3

P

A

6

4

P

A

7

5

P

C

0

6

P

C

1

7

P

C

2

8

PC

3

9

PD

0

10

PD

1

11

PD

2

12

PD

3

13

PD

4

14

PD

5

15

PD

6

16

P

D

7

1

7

A

V

D

D

1

8

G

N

D

1

9

(

T

O

S

C

1

)

 

P

F

0

2

0

(

T

O

S

C

2

)

 

P

F

1

2

1

P

F

2

2

2

P

F

3

2

3

P

F

4

2

4

PF

5

25

PF

6

26

UP

DI

27

VD

D

28

GN

D

29

P

A

D

3

3

A

T

m

eg

a3208-MFR

U2

00

10k

R21

2

PF

6_R

ST

PA

7_

SP

I_

C

S

PA

6_

SP

I_

SCK

PA

5_

SP

I_

M

IS

O

PA

4_

SP

I_

M

O

SI

G

ND

P

F

1_

C

D

C

_U

A

R

T2_RX

PF

4_

D

A

TA

_L

E

D

_D

G

I

P

D

7_

M

B

U

S_

A

IN

P

F

0_

C

D

C

_U

A

R

T2_TX

PA

3_

I2

C

_S

C

L

PF

3_

SW

0_

D

G

I_FW

P

D

5_

M

B

U

S_

R

ST

P

D

4_

H

O

L

D#

PD

3_

B

L

E

_R

ST

PD

0_

SP

I_

C

S

PD

2_

B

L

E

_R

X

_I

ND

P

D

6_

M

B

U

S_

INT

PA

2_I

2C

_SD

A

PA

0_B

LE

_U

AR

T0_

TX

PA

1_B

LE

_U

AR

T0_

RX

PA

1_

B

L

E

_U

A

R

T0_RX

PA

0_

B

L

E

_U

A

R

T

0_TX

UP

DI

PF

5_E

RR

_L

ED

BL

E_L

ED

B

L

E

_L

E

D

PF2_EVENT

PF

2_E

VE

NT

PC

0_

U

A

R

T1_TX

PC

1_

U

A

R

T1_RX

PC

2_

A

C

C

L

_I

NT1

PD

3_

B

L

E

_R

ST

V

C

C

_T

A

RGET

PC

3_

A

C

C

L

_I

NT2

PC

3_

A

C

C

L

_I

NT2

PD

4_H

OL

D#

P

D

1_

M

B

U

S_PWM

10k

R20

2

C

E

#

1

S

O

/

S

I

O

1

2

W

P

#

3

V

S

S

4

V

D

D

8

H

O

L

D

#

7

S

C

K

6

S

I

/

S

I

O

0

5

SS

T

25

PF

04

0C

T

-4

0I

/NP

U204

P

2_

0/

M

O

D

E

 p

in

 h

as

 a

in

te

rn

al

 p

ul

l-

up

 o

ab

ou

50

ko

hm

.

U

PD

I

PF

6_

R

ST

10

k

R

21

1

V

C

C

_T

A

RGET

PC

2_

A

C

C

L

_I

NT1

0R

R203

0R

R213

V

D

D

3

V

O

U

T

1

V

S

S

2

M

C

P1

11

T

-195

U20

5

N

.M

.

GN

D

V

C

C

_T

A

RGET

R

T

S

C

T

S

P02

P07

P12

P13

P27

P35

PCO

BKO

PF

3_

SW

0_

D

G

I_FW

PF

4_

D

A

TA

_L

E

D

_D

G

I

RN4870_TX

RN4870_RX

C

ro

ss

in

g RX

/TX here!

RN4870_RX

RN4870_TX

PF

3_

SW

0_

D

G

I_FW

100n

C209

GN

D

GN

D

M

ak

su

re

 th

at

 th

C

D

C

 U

A

R

T

 p

in

ar

no

t u

se

(d

ri

ve

hi

gh) w

hen operat

ing 

in

 ba

tt

er

y m

od

to

 

av

oid

 po

w

er

in

the debugg

er

 th

ro

ug

h its I/

O

 p

in

(c

au

si

ng

 le

ak

ag

fr

om

 V

C

C

_T

A

R

G

E

T

 t

V

C

C_

D

EB

U

G

GE

R

).

G

N

D

1

G

N

D

2

G

N

D

3

V

B

A

T

4

P

2_

2

5

V

D

D

_I

O

6

V

D

D

_I

O

7

U

L

P

C

_O

8

P

2_

3

9

B

K

_O

10

P

1_

1

12

P

1_

0

16

P

3_

6/

R

T

S

17

P

2_

0/

M

O

D

E

18

P

2_

4

19

N

C

20

R

S

T

21

U

A

R

T

_R

X

22

U

A

R

T

_T

X

23

P

3_

1

24

P

3_

2

25

P

3_

3

26

P

3_

4

27

P

3_

5

28

P

0_

7

29

P

0_

2

30

G

N

D

31

G

N

D

32

G

N

D

33

P

2_

7/

T

X

_I

N

D

11

P

1_

2/

S

C

L

13

P

1_

3/

SD

A

14

P

0_

0/

C

T

S

15

RN4870-V/RM140

M

20

0

 

Appendix

©

 2020 Microchip Technology Inc.

 User Guide

DS50002956A-page 24

Содержание AVR-BLE

Страница 1: ...A secure element Connected represented by the RN4870 BLE module In addition the AVR BLE Development Board features the following elements The on board debugger PKoB nano supplies full programming and debugging support through Atmel Studio Microchip MPLAB X IDE It also provides access to a serial port interface serial to USB bridge and two logic analyzer channels debug GPIO A mikroBUS socket enable...

Страница 2: ... Peripherals 15 4 Hardware Revision History and Known Issues 22 4 1 Identifying Product ID and Revision 22 4 2 Revision 3 22 4 3 Revision 2 22 5 Document Revision History 23 6 Appendix 24 6 1 Schematics 24 6 2 Assembly Drawing 27 The Microchip Website 28 Product Change Notification Service 28 Customer Support 28 Microchip Devices Code Protection Feature 28 Legal Notice 28 Trademarks 29 Quality Man...

Страница 3: ...erial port USB CDC Two logic analyzer channels DGI GPIO USB or Battery Powered 1 2 Board Overview The AVR BLE development board is a hardware platform that is being used to evaluate the ATmega3208 AVR microcontroller and RN4870 BLE module Figure 1 1 AVR BLE Development Board Front Side Micro USB Connector Debugger Power Status LED ATECC6080A Crypto Data LED Green Error LED Red SST25PF040CT Serial ...

Страница 4: ...Figure 1 2 AVR BLE Development Board Back Side CR2032 Battery Holder Additional RN4870 GPIO Introduction 2020 Microchip Technology Inc User Guide DS50002956A page 4 ...

Страница 5: ...T PF2 SPI MOSI PA4 BMA 253 INT2 PC3 MIC33050 DC DC Converter BMA253 Acceleration Sensor ATECC608A Secure Element PD1 PD6 PC1 PC0 PA3 PA2 5 0V GND SST25PF040C 4MB FLASH PF4 PF5 Micro USB Connector PKoB Nano Debugger Programmer MCP9844 Temperature Sensor AN RST SPI CS SPI SCK SPI MISO SPI MOSI 3 3V GND ATmega3208 MCU User Switch 0 RN4870 Bluetooth Low Energy Module PD7 PD5 PA7 PA6 PA5 PA4 PF3 PWM IN...

Страница 6: ...to create a custom application 1 View the source code at the avr lightblue explorer demo GitHub page 2 Read through the README md to get more information on how to expand the solution 3 Download the project from GitHub and open it in the latest version of MPLAB X IDE 4 Connect a USB cable Standard A to Micro B or Micro AB between the Windows Mac or Linux device and the debug USB port on the AVR BL...

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

Страница 8: ...ly during power up Power up The LED is ON Normal operation The LED is ON Programming Activity indicator The LED blinks slowly during programming debugging Drag and drop programming Success The LED blinks slowly for 2 sec Failure The LED blinks rapidly for 2 sec Fault The LED blinks rapidly if a power Fault is detected Sleep Off The LED is OFF The on board debugger is either in a sleep mode or powe...

Страница 9: ...s the CDC will enumerate as Curiosity Virtual COM Port and appear in the Ports section of the Windows Device Manager The COM port number can also be found there Info On older Windows systems a USB driver is required for CDC This driver is included in installations of Atmel Studio Microchip MPLAB X IDE On Linux machines the CDC will enumerate and appear as dev ttyACM Info tty devices belong to the ...

Страница 10: ...connected to the debugger s CDC TX pin 3 1 2 5 Advanced Use CDC Override Mode In normal operation the on board debugger is a true UART bridge between the host and the device However in certain use cases the on board debugger can override the basic operating mode and use the CDC TX and RX pins for other purposes Dropping a text file into the on board debugger s mass storage drive can be used to sen...

Страница 11: ...EX file the binary data are encoded in ASCII with metadata providing a large overhead so one MB is a trivially chosen value for disk size It is not possible to format the CURIOSITY drive When programming a file to the target the filename may appear in the disk directory listing This is merely the operating system s view of the directory which in reality has not been updated It is not possible to r...

Страница 12: ...ry according to the programming interface of the target device Debugger firmware v1 16 or newer Info The commands listed here are triggered by the content being sent to the mass storage emulated disk and no feedback is provided in the case of either success or failure 3 1 4 Data Gateway Interface DGI Data Gateway Interface DGI is a USB interface for transporting raw and time stamped data between o...

Страница 13: ...ements at 2 MHz frequency providing a timestamp resolution of a half microsecond 3 2 Power Supply The board can be powered through the USB port or by a CR2032 battery It will automatically switch to the battery if USB power is not available While powered through USB the board generates 3 3V for the debugger ATmega3208 and peripherals During battery operation the ATmega3208 and peripherals run dire...

Страница 14: ...8 I O pins as input and disable the digital input buffer Important USART pins PF0 and PF1 are connected directly to the on board debugger It is important to tri state the USART pins when the board is powered from a CR2032 battery to prevent powering the debugger through its I O pins Doing so will increase the power consumption and cause undefined behavior from the on board debugger Info The load s...

Страница 15: ...r is not needed anymore place a jumper cap on the pin header 3 5 Peripherals 3 5 1 ATmega3208 Microchip ATmega3208 is a microcontroller featuring the AVR processor with hardware multiplier running at up to 20 MHz and with 32 KB Flash 4 KB SRAM and 256 bytes of electrically erasable programmable read only memory EEPROM in a 28 or 32 pin package It uses the latest Core Independent Peripherals CIPs w...

Страница 16: ...2 54 mm pitch female headers and is ready to mount add on boards Table 3 3 mikroBUS Socket Pinout mikroBUS Socket Pin ATmega3208 Pin Function Shared Functionality AN PD7 ADC AIN7 RST PD5 GPIO CS PA7 SPI0 CS SCK PA6 SPI0 SCK SST25PF040CT MISO PA5 SPI0 MISO SST25PF040CT MOSI PA4 SPI0 MOSI SST25PF040CT 3 3V VDD VCC_TARGET GND GND Ground PWM PD1 TCA0 WO1 INT PD6 GPIO RX PC1 UART1 RX TX PC0 UART1 TX SC...

Страница 17: ...om the ATmega3208 the debugger as well as by a physical switch allows the module to be put in a Test Mode where the RN4870 firmware can be updated The module has one of its GPIO pins connected to an LED By default this will indicate connection status but the user can configure it for a number of other functions Many of the other RN4870 GPIO pins are available as pads around the label on the back s...

Страница 18: ...ns ATECC608A Pin ATmega3208 Pin Function Shared Functionality SDA PA2 TWI0 SDA MCP9844 BMA253 and mikroBUS SCL PA3 TWI0 SCL MCP9844 BMA253 and mikroBUS 3 5 5 SST25PF040CT Serial Flash The SST25PF040CT is a 4 Mbit Serial Flash with extended operating voltage range and low power consumption Additional Features Operating Voltage Range 2 3V to 3 6V Active Read Current 5 mA typical Power Down Standby C...

Страница 19: ...x18 Table 3 7 MCP9844 Connections MCP9844 Pin ATmega3208 Pin Function Shared Functionality SDA PA2 TWI0 SDA ATECC608A BMA253 and mikroBUS SCL PA3 TWI0 SCL ATECC608A BMA253 and mikroBUS Event PF2 ASYNC External Interrupt 3 5 7 BMA253 Acceleration Sensor The Bosch BMA253 is a low g acceleration sensor with digital output for measurements of acceleration in three perpendicular axes Additional Feature...

Страница 20: ...ng their connected I O lines to GND Table 3 9 LED Connections LED ATmega3208 Pin Function Shared Functionality Green Data LED PF4 TCA0 WO4 On board debugger Red Error LED PF5 TCA0 WO5 Blue BLE LED Connected to BLE module RN4870 3 5 9 Mechanical Switch The AVR BLE board has one mechanical switch This is a generic user configurable switch that will drive the connected I O line to ground GND when it ...

Страница 21: ...arget and the debugger section All connections between the target and the debugger are tri stated as long as the debugger is not actively using the interface Hence since there are little contaminations of the signals the pins can be configured to anything the user wants For further information on how to use the capabilities of the on board debugger see 3 1 On Board Debugger Overview Table 3 11 On ...

Страница 22: ... Window Kit Window The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifier and revision printed 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 containing the product identifier revision and serial number The serial number string has the...

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

Страница 24: ...U203 512k x 8 Ser ial Flash VCC_TARGET GND 100n C208 GND VCC_TARGET PF5_ERR_LED PD1_MBUS_PWM PF4_DATA_LED_DGI BLE ERR PF3_SW0_DGI_FW TP201 PD0_SPI_CS PA5_SPI_MISO PA6_SPI_SCK PA4_SPI_MOSI VCC_TARGET TP207 TP206 TP202 TP204 TP205 PA3 1 EXTCLK PA0 30 PA1 31 PA2 32 PA4 2 PA5 3 PA6 4 PA7 5 PC0 6 PC1 7 PC2 8 PC3 9 PD0 10 PD1 11 PD2 12 PD3 13 PD4 14 PD5 15 PD6 16 PD7 17 AVDD 18 GND 19 TOSC1 PF0 20 TOSC2...

Страница 25: ...3 SW 3 SW 6 FB CFF 11 MIC33050 SYHL U301 100k R305 10uF 10V C302 GND GND VCC_DEBUGGER VCC_TARGET 1 2 CH7410 2032LF J300 VBUS MIC94165 VIN B2 VOUT A1 VIN A2 EN C2 GND C1 VOUT B1 U300 MIC94165 VIN B2 VOUT A1 VIN A2 EN C2 GND C1 VOUT B1 U302 GND GND GND GND 2M R300 VBAT 0R R301 0R R304 1 2 1125 1102S0S113R1 J301 N M 2 1 4 SS G D S 3 MIC94050 Q300 0R R303 1k R306 P3V3_ENABLE VBAT_OUT 2 1 NSR20F30NXT5G...

Страница 26: ...D 28 VDDCORE 29 VDDIN 30 SWDCLK PA30 31 SWDIO PA31 32 SAMD21E18A MUT U100 USBD_P USBD_N 1u C101 VCC_MCU_CORE VCC_DEBUGGER VCC_DEBUGGER GND GND GND GND DBG2 S1_0_TX S0_2_TX DAC VTG_ADC RESERVED S0_3_CLK DBG0_CTRL CDC_TX_CTRL BOOT DEBUGGER POWER STATUS LED 1k R104 DBG1 DBG1_CTRL REG_ENABLE 100k R101 100k R102 SWCLK 100k R109 GND SRST DEBUGGER TESTPOINT DBG2_CTRL CDC_RX_CTRL 100k R106 SWCLK DBG2_GPIO...

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

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

Страница 29: ...ASIC Plus 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 Adjacent Key Suppression AKS Analog for the Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyCom CodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEM dsPIC...

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

Отзывы: