AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06...

39
STK525 ............................................................................................ Hardware User Guide

Transcript of AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06...

Page 1: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

STK525.............................................................................................

Hardware User Guide

Page 2: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

STK525 Hardware User Guide Use

Section 1Introduction ........................................................................................... 1-3

1.1 Overview ...................................................................................................1-31.2 STK525 Starter Kit Features .....................................................................1-4

Section 2Using the STK525................................................................................. 2-6

2.1 Overview ...................................................................................................2-62.2 Power Supply ............................................................................................2-72.3 RESET ....................................................................................................2-102.4 AT90USBxxx AVR Microcontroller..........................................................2-112.5 Serial Links .............................................................................................2-112.6 On-board Resources...............................................................................2-142.7 STK500 Resources .................................................................................2-192.8 In-System Programming .........................................................................2-202.10 Test Points ..............................................................................................2-232.11 Configuration Pads .................................................................................2-242.12 Solder Pads ............................................................................................2-25

Section 3Troubleshooting Guide ....................................................................... 3-26

Section 4Technical Specifications ..................................................................... 4-27

Section 5Technical Support ............................................................................... 5-28

Section 6Complete Schematics ......................................................................... 6-29

r Guide 1

7608A–AVR–04/06

Page 3: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Section 1

Introduction

Congratulation for acquiring the AVR® STK525 Starter Kit. This kit is designed to givedesigners a quick start to develop code on the AT90USBxxx and for prototyping andtesting of new designs.

1.1 Overview

This document describes the STK525 dedicated to the AT90USBxxx AVRmicrocontroller. This board is designed to allow an easy evaluation of the product usingdemonstration software.

To complement the evaluation and enable additional development capability, theSTK525 can be plugged into the Atmel STK500 Starter Kit Board in order to use theAT90USBxxx with advanced features such as variable VCC, variable VRef, variableXTAL, etc. and supports all AVR development tools.

To increase its demonstrative capabilities, this stand alone board has numerous on-board resources (USB, RS232, joystick, data-flash, microphone and temperaturesensor).

This user guide acts as a general getting started guide as well as a complete technicalreference for advanced users.

STK525 Hardware User Guide 1-3

7608A–AVR–04/06

Page 4: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Introduction

Figure 1-1 . STK525 Board

1.2 STK525 Starter Kit Features

The STK525 provides the following features:

� AT90USBxxx TQFP device (2.7V<Vcc<5.5V),

� AVR Studio® software interface (1),

� USB software interface for Device Firmware Upgrade (DFU bootloader) (2)

� STK500 compatible

� Power supply flagged by “VCC-ON” LED:

– regulated 3 or 5V,– from an external power connector,– from the USB interface (USB device bus powered application),– from STK500 (2),

� ISP connector for on-chip ISP,

� JTAG connector:

– for on-chip ISP,– for on-chip debugging using JTAG ICE,

� Serial interfaces:

– 1 USB full/low speed device/host interface– RS-232C ports with RTS/CTS handshake lines,

� On-board resources:

– 4+1-ways joystick,– 4 LEDs,– temperature sensor,– microphone,– serial dataflash memory,

1-4 STK525 Hardware User Guide

7608A–AVR–04/06

Page 5: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Introduction

� On-board RESET button,

� On-board HWB button for force bootloader section execution at reset.

� System clock:

– external clock from STK500 expand connectors– 8 MHz crystal,

� Numerous access points for test.

Notes: 1. The STK525 is supported by AVR Studio®, version 4.12SP2 or higher. For up-to-dateinformation on this and other AVR tool products, please consult our web site. Thenewest version of AVR Studio®, AVR tools and this User Guide can be found in theAVR section of the Atmel web site, http://www.atmel.com.

2. ATMEL Flip®, In System Programming Version 3 or Higher shall be used for DeviceFirmware Upgrade. Please consult Atmel web site to retrieve the latest version of Flipand the DFU bootloader Hex file if needed.

STK525 Hardware User Guide 1-5

7608A–AVR–04/06

Page 6: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Section 2

Using the STK525

This chapter describes the board and all its features.

2.1 Overview

Figure 2-1 . STK525 Overview

USB MiniAB RS232 JTAG ISP External Power

Joystick Potentiometer ResetCrystal Microphone

STK

500

Exp

and0

STK

500

Exp

and1

Data FlashLEDS

Vcc Src.Setting

TQFP64 Socket

Pin1

�C Sensor

Vbus Gen.Setting

BootloaderActivation

STK525 Hardware User Guide 2-6

7608A–AVR–04/06

Page 7: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

2.2 Power Supply

The on-board power supply circuitry allows various power supply configurations.

2.2.1 Power Supply Sources

The power supply source can come from three different (3) and exclusive sources:

� USB connector,

� JACK PWR connector (J6, See Figure 2-2),

� STK500

USB powered: When used as a USB device bus powered application, the STK525 can be powered viathe USB VBUS power supply line.

JACK PWR connector: – Need of a male JACK outlet,– Input supply from 9 up to 15V (1) DC,– No specific polarization (2) is required.

Figure 2-2 . JACK PWR Connector (J6)

Figure 2-3 . Male JACK Outlet and Wires

STK500 Powered: (c.f. “STK500 Resources” on page 19).

Notes: 1. 15V is the maximum level limitation of an unidirectional transit diode.2. There is a diode (bridge) voltage level between the negative output of the power

supply and the STK525 “GND”. This could introduce some gap of voltage duringmeasurement and instrumentation.

3. Caution: Do not mount more than one power supply source on STK525.

+-

STK525 Hardware User Guide 2-7

7608A–AVR–04/06

Page 8: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

2.2.2 Power Supply Setting

Table 2-1 . Power Supply (1) Setting

Notes: 1. Caution: The STK500 has its own “ON/OFF” switch

Vcc SourceJumper position

VCC powersupply value

Comments View

VBUS 5VBUS

(4,7V to 5.0V)

This is the default configuration.

This should be used for a typical USB device “bus powered” application.

In this mode, the STK525 is powered directly from the USB bus, and no other external power supply is required.

REG 5 5V

This configuration can be used for a USB “self powered” device application” or when operating has a USB host.

To use this configuration an external power supply must be connected to J6 connector.

REG 3.3 3.3V

This configuration allows the STK525 to be used in a 3V range application.

This configuration can be used with both device or host mode USB applications.

To use this configuration an external power supply must be connected to J6 connector.

STKDepends on STK500 VTG

setting

This configuration allows the STK525 to be used with an STK500 board.

In this mode, the STK525 power supply is generated and configured according to the “VTG” parameter of the STK500 (1).

VCCSource

Reg 5

Reg 3.3

VBUS 5

STK

VCCSource

Reg 5

Reg 3.3

VBUS 5

STK

VCCSource

Reg 5

Reg 3.3

VBUS 5

STK

VCCSource

Reg 5

Reg 3.3

VBUS 5

STK

2-8 STK525 Hardware User Guide

7608A–AVR–04/06

Page 9: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

2.2.3 VBUS Generator Setting

When using the AT90USBxxx microcontroller in USB host mode. The STK525 shouldprovide a 5V power supply over the VBUS pin of its USB mini AB connector.

A couple of transistors on the STK525 allows the UVCON pin of the AT90USBxxx tocontrol the VBUS generation (See Figure 2-4). In this mode the STK525 is powered byexternal power supply source (J6 or STK500 expand0/1 connectors). JP7 allows toselect the 5V source used by the VBUS generator.

Figure 2-4 . VBUS generator schematic

Table 2-2 . VBUS Generator Setting

M1

FDV304P/FAI

R33

100k

VTG

STK

Ext

Q2BC847B

-

C344.7uF

21

3

JP7

VBUS genR3210k

UVCON

VBUS

“Vbus Gen”Jumper position

STK525 power supply Comments View

“Ext” External power supply from J6

This is the default configuration.

The VBUS generator source is the on-board 5V regulator.

“Stk”External power supply from Expand0/1 (connected to a STK500)

The VBUS generator source is the STK500.

Note:

The “Vtarget” setting of STK500 should be set to “5V”.

VbusGen

Ext

Stk

VbusGen

Ext

Stk

STK525 Hardware User Guide 2-9

7608A–AVR–04/06

Page 10: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

2.2.4 “POWER-ON“ LED

The POWER-ON LED is always lit when power is applied to STK525 regardless ofpower supply source and the regulation.

Figure 2-5 . “VCC-ON” LED

2.3 RESET

Although the AT90USBxxx has its on-chip RESET circuitry (c.f. AT90USBxxxDatasheet, section “System Control and Reset), the STK525 provides the AT90USBxxxa RESET signal which can come from 3 different sources:

2.3.1 Power-on RESET

The on-board RC network acts as power-on RESET.

2.3.2 RESET Push Button

By pressing the RESET push button on the STK525, a warm RESET of theAT90USBxxx is performed.

Figure 2-6 . RESET Push Button (RST) Implementation

2-10 STK525 Hardware User Guide

7608A–AVR–04/06

Page 11: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

2.3.3 STK500 RESET

(c.f. “RESET from STK500” on page 20)

2.4 AT90USBxxx AVR Microcontroller

2.4.1 Main Clock XTAL

To use the USB interface of the AT90USBxxx, the clock source should always be acrystal or external clock oscillator (the internal 8MHz RC oscillator cannot be used tooperate with the USB interface). Only the following crystal frequency allows proper USBoperations: 2MHz, 4MHz, 6MHz, 8MHz, 12MHz, 16MHz. The STK525 comes with adefault 8MHz crystal oscillator.

When closing STKX1 and STKX2 switches, and STK525 is connected to an STK500,the STK525 can operate with the “STK500 Osc” frequency parameter.

2.4.2 Analog Power Supply

AVCC By default, AVCC is equivalent to VCC.

ANA REF By default, AREF is an output of AT90USBxxx.An external AREF source can be chosen (c.f. “STK500 Resources” on page 19).

2.5 Serial Links

2.5.1 USB

The STK525 is supplied with a standard USB mini A-B receptacle. The mini ABreceptacle allows to connect both a mini A plug or a mini B plug connectors.

Figure 2-7 . USB mini A-B Receptacle

When connected to a mini B plug, the AT90USBxxx operates as an “USB device” (theID pin of the plug is unconnected) and when connected to a mini A plug, theAT90USBxxx operates as a “USB host” (the ID pin of the plug is tied to ground).

STK525 Hardware User Guide 2-11

7608A–AVR–04/06

Page 12: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

2.5.2 RS-232C

The AT90USBxxx is a microcontroller with an on-chip USART peripheral (USART1).Only the asynchronous mode is supported by the STK525.

The STK525 is supplied with a RS-232 driver/receiver. One female DB9 connectorassumes the RS-232 connections.

Figure 2-8 . RS-232 DB9 Connector

Figure 2-9 . RS-232 DB9 Connections

Figure 2-10 . Typical PC Connection Layout

1

RS-232 DB9 front view

pin 2

5

69

234

78

RS-TxD

pin 3 RS-RxD

pin 4

pin 6

pin 5 GND

pin 7 RS-CTS

pin 8 RS-RTS

STK525 / RS-232 DB9PC / DB9 serial port

Pin No

(COM1 or COMx)

Function Pin No Function

2TxD (AT90USBxxx)

5GND

2

3

RxD (PC)

TxD (PC)3RxD (AT90USBxxx)

5 GND

7CTS (AT90USBxxx) 7

8

RTS (PC)

CTS (PC)8RTS (AT90USBxxx)

If Hardware Data Flow Control

2-12 STK525 Hardware User Guide

7608A–AVR–04/06

Page 13: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

The STK525 USART implementation allows an optional hardware flow control that canbe enabled thanks to SP4, SP5, SP7, SP8 solder pads (See Figure 2-11).

Figure 2-11 . USART Schematic

Table 2-3 . UART Settings

Note: 1. Tx reference: STK525 source, Rx reference: STK525 destination

ModeSolder Pads

ConfigurationDB9

Connection (1)

Software Data FlowControl

(default configuration)

SP4: openSP5: openSP7: openSP8: open

TxRx

Pin 2Pin 3

Optional Hardware Flow Control

SP4: closeSP5: closeSP7: closeSP8: close

TxRx

CTSRTS

Pin 2Pin 3Pin 7Pin 8

594837261

10

11

P1

SUB-D9 FEMALERS232

RS232 Interface

RS-CTS

VCC

CTS

RTS

.11

.12

.10

.9

.8

.7

.13

.14

.15

.16

C1+1

V+2

C1-3

C2+4

C2-5

V-6

RS 232TTL

GND

VCC

U3

MAX3232RS232 BUFFER

C17

100nF

C16

100nFC18

100nF

C19100nF

RxDPD2

RS-TxDRS-TxDRS-TxDRS-TxDRS-TxDRS-TxDRS-TxDRS-TxD

RS-RxD

PD[7..0]

SP4

SP5

PD1

PD0

PD3 TXDSP7

SP8

RS-RTS

STK525 Hardware User Guide 2-13

7608A–AVR–04/06

Page 14: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

2.6 On-board Resources

2.6.1 Joystick

The 4+1 way joystick offers an easy user interface implementation for a USB application(it can emulate mouse movements, keyboard inputs, etc.).Pushing a push-button causes the corresponding signal to be pulled low, while releasing(not pressed) causes an H.Z state on the signal. The user must enable internal pull-upson the input pins, removing the need for an external pull-up resistors on the push-button.

Figure 2-12 . Joystick Schematic

Figure 2-13 . Joystick Implementation

2.6.2 LEDs

The STK525 includes 4 green LEDs implemented on one line. They are connected tothe high nibble of “Port D” of AT90USBxxx (PORTD[4..7]).

To light On a LED, the corresponding port pin must drive to high level. To light Off aLED, the corresponding port pin must drive a low level. It is the opposite method used inSTK500.

Select5

Lef t7

Up3

Right6

Down4

Com11

Com22

SW3

TPA511G

PE[7..0]

PB[7..0]

PB5PB6PB7PE4PE5

Select5

Lef t7

Up3

Right6

Down4

Com11

Com22

SW3

TPA511G

PE[7..0]

PB[7..0]

PB5PB6PB7PE4PE5

Select5

Lef t7

Up3

Right6

Down4

Com11

Com22

SW3

TPA511G

PE[7..0]

PB[7..0]

PB5PB6PB7PE4PE5

2-14 STK525 Hardware User Guide

7608A–AVR–04/06

Page 15: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

Figure 2-14 . LEDs Implementation Schematic

In-line Grouped LEDs

D2TOPLED LP M676

LED 0 (green)

D3TOPLED LP M676

LED 1 (green)

D4TOPLED LP M676

LED 2 (green)

D5TOPLED LP M676

LED 3 (green)

R121k

R131k

R141k

R151k

PD4

PD5

PD7

PD[7..0]

PD6

STK525 Hardware User Guide 2-15

7608A–AVR–04/06

Page 16: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

2.6.3 Temperature Sensor

The temperature sensor uses a thermistor (R18), or temperature-sensitive resistor. Thisthermistor has a negative temperature coefficient (NTC), meaning the resistance goesup as temperature goes down. Of all passive temperature measurement sensors,thermistors have the highest sensitivity (resistance change per degree of temperaturechange). Thermistors do not have a linear temperature/resistance curve.

The voltage over the NTC can be found using the A/D converter (connected to channel0). See the AT90USBxxx datasheet for how to use the ADC. The thermistor value (RT)is calculated with the following expression:

Where: RT = Thermistor value (Ω) at T temperature (°Kelvin)

RH = Second resistor of the bridge -100 KΩ ±10% at 25°C

VADC0 = Voltage value on ADC-0 input (V)

VCC = Board power supply

The NTC thermistor used in STK525 has a resistance of 100 KΩ ±5% at 25°C (T0) and abeta-value of 4250 ±3%. By the use of the following equation, the temperature (T) canbe calculated:

Where: RT = Thermistor value (Ω) at T temperature (°Kelvin)

ß = 4250 ±3%

R0 = 100 KΩ ±5% at 25°C

T0 = 298 °K (273 °K + 25°K)

The following cross table also can be used. It is based on the above equation.

Table 2-4 . Thermistor Values versus Temperature

Temp.(°C)

RT

(KΩ)Temp.(°C)

RT

(KΩ)Temp.(°C)

RT

(KΩ)Temp.(°C)

RT

(KΩ)

-20 1263,757 10 212,958 40 50,486 70 15,396

-19 1182,881 11 201,989 41 48,350 71 14,851

-18 1107,756 12 191,657 42 46,316 72 14,329

-17 1037,934 13 181,920 43 44,380 73 13,828

-16 973,006 14 172,740 44 42,537 74 13,347

-15 912,596 15 164,083 45 40,781 75 12,885

-14 856,361 16 155,914 46 39,107 76 12,442

-13 803,984 17 148,205 47 37,513 77 12,017

-12 755,175 18 140,926 48 35,992 78 11,608

-11 709,669 19 134,051 49 34,542 79 11,215

-10 667,221 20 127,555 50 33,159 80 10,838

RT RH VADC0⋅( ) VCC VADC0–( )⁄=

T βRT

R0-------ln

⎝ ⎠⎛ ⎞ β

T0------+

-------------------------------=

2-16 STK525 Hardware User Guide

7608A–AVR–04/06

Page 17: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

Figure 2-15 . Thermistor Schematic

2.6.4 Microphone

The STK525 provides an electret microphone associated with its required preamplifier(See Figure 2-16), the interface is connected to ADC channel 2 of the AT90USBxxxmicrocontroller.

-9 627,604 21 121,414 51 31,840 81 10,476

-8 590,613 22 115,608 52 30,580 82 10,128

-7 556,056 23 110,116 53 29,378 83 9,793

-6 523,757 24 104,919 54 28,229 84 9,471

-5 493,555 25 100,000 55 27,133 85 9,161

-4 465,300 26 95,342 56 26,085 86 8,863

-3 438,854 27 90,930 57 25,084 87 8,576

-2 414,089 28 86,750 58 24,126 88 8,300

-1 390,890 29 82,787 59 23,211 89 8,035

0 369,145 30 79,030 60 22,336 90 7,779

1 348,757 31 75,466 61 21,498 91 7,533

2 329,630 32 72,085 62 20,697 92 7,296

3 311,680 33 68,876 63 19,930 93 7,067

4 294,826 34 65,830 64 19,196 94 6,847

5 278,995 35 62,937 65 18,493 95 6,635

6 264,119 36 60,188 66 17,820 96 6,430

7 250,134 37 57,576 67 17,174 97 6,233

8 236,981 38 55,093 68 16,556 98 6,043

9 224,606 39 52,732 69 15,964 99 5,860

Temp.(°C)

RT

(KΩ)Temp.(°C)

RT

(KΩ)Temp.(°C)

RT

(KΩ)Temp.(°C)

RT

(KΩ)

TemperatureSensor

R18

CP1R16100k

PF

0

VCC

STK525 Hardware User Guide 2-17

7608A–AVR–04/06

Page 18: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

Figure 2-16 . Microphone interface schematic

2.6.5 Data Flash Memory

For mass-storage class demonstration purposes, the STK525 provides an on-chip serialFlash memory (AT45DB321x) connected to the AT90USBxxx Serial Port Interface(SPI).

The data-flash chip select signal is connected to PortB bit 4 of the AT90USBxxx (SeeFigure 2-17).

Figure 2-17 . On-board data flash schematic

2.6.6 Potentiometer

The cursor of a potentiometer is connected to ADC channel 1 of the AT90USBxxx.

3.3V3.3V

3.3V R23 100k

1

TP4

Mic

5

67

84

+

-

U4BLMV358

3

21

84

+

-

U4ALMV358

R27 0R26 22k

R25 10k

R24 100k

+C25

1uF

R21

100k

R28100k

C22 220pF

+

C24 4.7uF

R202.2k

MIC1

MICROPHONE

R22100k

3.3V

BUSY1

RESET2

WP3 VCC

6

GND7

CS11

SCK12

SI13

SO14

U2

AT45DB321C TSOP28

C15100nF

PB[7..0]

R11100k

PB4

3.3V

PB1

R10100k

RESET

PB2PB3

2-18 STK525 Hardware User Guide

7608A–AVR–04/06

Page 19: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

2.7 STK500 Resources

Figure 2-18 . Connecting STK525 to the STK500 Board

Note: Caution: Do not mount an AVR microcontroller on the STK500 board when STK525 isplugged on STK500.

2.7.1 Supply Voltage from STK500

The AVR supply voltage coming from STK500 (VTG) can also be controlled from AVRStudio®.

� The supply voltage coming from STK500 is controlled by power supply circuitry ofthe STK525. Refer to Table 2-1 on page 8 to configure “Vcc Source” jumper.

2.7.2 Analog Reference Voltage from STK500

The AVR Analog Reference Voltage coming from STK500 (REF) can also be controlledfrom AVR Studio®.

� JP3 should be closed

STK525 Hardware User Guide 2-19

7608A–AVR–04/06

Page 20: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

2.7.3 EXP.CON 0 & EXP.CON 1 Connectors

Figure 2-19 . EXP.CON 0 and EXP.CON 1 Connectors

2.7.4 Main Clock from STK500

The AVR clock frequency (external) coming from STK500 (XT1/XT2) can also becontrolled from AVR Studio®.

� “STKX1” and ”STKX2” jumpers should be closed

2.7.5 RESET from STK500

The AVR RESET coming from STK500 (NRST - EXP.CON 0) can also control theSTK525. STK525 is protected against +12V RESET pulse (parallel programing notallowed for AT90USBxxx on STK525) coming from STK500.

2.8 In-System Programming

2.8.1 Programming with USB bootloader: DFU (Device Firmware Upgrade)

AT90USBxxx part comes with a default factory pre-programmed USB bootloaderlocated in the on-chip boot section of the AT90USBxxx. This is the easiest and fastestway to reprogram the device directly over the USB interface. The “Flip” PC sideapplication available for free on Atmel website offers a flexible and user friendlyinterface to reprogram the application over the USB bus.

EXP. CON 1

GND GND1 2n.c. (AUXI0) n.c. (AUXO0)3 4

n.c. (CT7) n.c. (CT6)5 6n.c. (CT5) n.c. (CT4)7 8n.c. (CT3) n.c. (CT2)9 10n.c. (CT1) n.c. (BSEL2)11 12

n.c. REF13 14NRST PG215 16

PG1 PG017 18GND GND19 20

PC7 PC623 24VTG VTG21 22

PC5 PC425 26PC3 PC227 28PC1 PC029 30PA7 PA631 32PA5 PA433 34PA3 PA235 36PA1 PA037 38

GND GND39 40

GND GND1 2n.c. (AUXI1) n.c. (AUXO1)3 4n.c. (DATA7) n.c. (DATA6)5 6n.c. (DATA5) n.c. (DATA4)7 8n.c. (DATA3) n.c. (DATA2)9 10n.c. (DATA1) n.c. (DATA0)11 12

n.c. (SI) n.c. (SO)1314n.c. (SCK) n.c. (CS)1516

XT1 XT21718VTG VTG1920

PB7 PB62324GND GND2122

PB5 PB42526PB3 PB22728PB1 PB02930PD7 PD63132PD5 PD43334PD3 PD23536PD1 PD03738GND GND3940

EXP. CON 0Top View

2-20 STK525 Hardware User Guide

7608A–AVR–04/06

Page 21: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

The HWB pin of the AT90USBxxx allows to force the bootloader section execution afterreset. (Refer to AT90USBxxx datasheet section “boot loader support”). To forcebootloader execution, operate as follows:

� Press both “RST” and “HWB” push buttons

� First release the “RST” push button

� Release the “HWB” push button

For more information about the USB bootloader and FLIP software, please refer to the‘USB bootloader datasheet’ document and ‘FLIP User Manual’.

2.8.2 Programming with AVR ISP mkII Programmer

The AT90USBxxx can be programmed using specific SPI serial links. This sub sectionwill explain how to connect the programmer.

The Flash, EEPROM and all Fuses and Lock Bits options ISP-programmable can beprogrammed individually or with the sequential automatic programming option.

The AVR ISP mkII programmer is a compact and easy-to-use In-System Programmingtool for developing applications with AT90USBxxx. Due to the small size, it is also anexcellent tool for field upgrades of existing applications.

The AVR ISP programming interface is integrated in AVR Studio®.

To program the device using AVR ISP programmer, connect the 6-wire cable on the ISPconnector of the STK525 as shown in Figure 2-20.

Note: See AVR Studio® on-line Help for information.

Figure 2-20 . Programming from AVR ISP mkII programmer

2.8.3 Programming with STK500

The AT90USBxxx can be programmed using the serial programming mode in the AVRStudio STK500 software. The software interface (In-System Programming of an externaltarget system) is integrated in AVR Studio®.

STK525 Hardware User Guide 2-21

7608A–AVR–04/06

Page 22: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

To program the device using ISP from STK500, connect the 6-wire cable between theISP6PIN connector of the STK500 board and the ISP connector of the STK525 asshown in Figure 2-18.

Note: See AVR Studio® on-line Help for information.

Note: The high voltage parallel programming mode with STK500 is not available for anSTK525. To reprogram an AT90USBxxx part in parallel mode, use an STK501 extensionboard (AT90USBxxx product pinout is compatible with the STK501 parallel programingmode).

2.8.4 Programming with AVR JTAG ICE

The AT90USBxxx can be programmed using specific JTAG link. This sub-section willexplain how to connect and use the AVR JTAG ICE.

Note: When the JTAGEN Fuse is unprogrammed, the four TAP pins are normal port pins, andthe TAP controller is in reset. When programmed, the input TAP signals are internallypulled high and the JTAG is enabled for Boundary-scan and programming. TheAT90USBxxx device is shipped with this fuse programmed.

Figure 2-21 . Connecting AVR JTAG ICE to STK525

The Flash, EEPROM and all Fuse and Lock Bit options ISP-programmable can beprogrammed individually or with the sequential automatic programming option.

Note: See AVR Studio® on-line Help for information.

2-22 STK525 Hardware User Guide

7608A–AVR–04/06

Page 23: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

2.9 Debugging

2.9.1 Debugging with AVR JTAG ICE mkII

Every STK525 can be used for debugging with JTAG ICE MK II.

Connect the JTAG ICE mkII as shown in Figure 2-21, for debugging help, please refer toAVR Studio® Help information.

When using JTAG ICE MK II for debugging, and as AT90USBxxx parts are factoryconfigured with the higher security level set, a chip erase operation will be performed onthe part before debugging. Thus the on-chip flash bootloader will be erased. It can berestored after the debug session using the bootloader hex file available from ATMELwebsite.

2.10 Test Points

There are 8 test points implemented, these test points are referred in the full schematicssection.

Config. Pads

ReferenceRelated Signals Function

T1 D+ USB D+ data line

T2 D- USB D- data line

T3 Aref Analog reference

T4 Mic Microphone preamplifier output

T5 3.3V 3.3V internal power supply

T6 5V 5V internal power supply

T7 Gnd Ground

T8 Vbus USB Vbus power supply

STK525 Hardware User Guide 2-23

7608A–AVR–04/06

Page 24: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

2.11 Configuration Pads

Configuration pads are used to disconnect/connect on-board peripherals or elements, theirdefault configuration is: connect.

2.11.1 Configuration Pads Listing

Table 2-5 . Configuration Pads

2.11.2 Configuration Pads - Disconnection

Figure 1. Configuration Pad - Disconnection

2.11.3 Configuration Pads - Connection

Figure 2. Configuration Pad - Re-connection

Config. Pads

Reference

Related Signals

Function

CP1 °c sensor (PF0)This configuration pad is used to disconnect/connect the CTN sensor from STK525.

CP2 pot. (PF1)This configuration pad is used to disconnect/connect the potentiometer from STK525.

CP3 Mic.(PF2)This configuration pad is used to disconnect/connect the microphone preamplifier output from STK525.

Cut Connection

WireDroplet of Solder

2-24 STK525 Hardware User Guide

7608A–AVR–04/06

Page 25: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Using the STK525

2.12 Solder Pads

Solder pads are used to disconnect/connect on-board peripherals or elements, their defaultconfiguration is: disconnect.

2.12.1 Solder Pads Listing

Table 2-6 . Solder Pads

Solder. Pads

Reference

Related Signals

Function

SP1 AVCC/VCC This solder pad can be used to bypass L1.

SP2 NRST/RESET This solder pad can be used to bypass D1.

SP3 3.3VThis solder pad is reserved to connect 3.3V power supply to the N.C pin of Expand0/1

SP4 PD1/CTSThis solder pad allows to enable the logical CTS signal for hardware control flow on RS232 interface.

SP5 PD0/RTSThis solder pad allows to enable the logical RTS signal for hardware control flow on RS232 interface.

SP6 VBUS This solder pad allows to bypass U5 VBUS current limiter.

SP7 RS-CTSThis solder pad allows to enable the physical CTS signal for hardware control flow on RS232 interface.

SP8 RS-RTSThis solder pad allows to enable the physical RTS signal for hardware control flow on RS232 interface.

STK525 Hardware User Guide 2-25

7608A–AVR–04/06

Page 26: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Section 3

Troubleshooting Guide

Figure 3-1 . Troubleshooting Guide

Problem Reason Solution

The Green “VCC-ON” LED is not on

No power supply

Verify the power supply source

Verify the power supply source

STK525 does not work Connect the DC power supply source, or USB interface or STK500.

The AT90USBxxx cannot be programmed

The STK500 ISP header is not connected.

Connect a 6-pin flexible cable from STK500 ISP 6-PIN header to the correct STK525 ISP header (page 21)

The AVR ISP probe is not connected

Connect the AVR ISP 6-PIN header to the correct STK525 ISP header (page 21)

The AVR JTAG ICE probe is not connected

Connect the JTAG ICE 10-PIN header to the correct STK525 JTAG header (page 22)

The memory lock bits are programmed

Erase the memory before programming

The fuse bits are wrongly programmed

Check the fuse bits

Programming too fast with ISP SPI

Check oscillator settings and make sure it is not set higher than SPI clock

AVR Studio does not detect the AVR tool used

Serial/USB cable is not connected, or power is off

Connect serial cable to RS232 (STK500 - AVR ISP) and check power connections

Connect serial cable to USB (JATG ICE MKII, AVR ISPmkIIl) and check power connections

PC COM port is in use

Disable other programs that are using PC COM port.

Change PC COM port

AVR Studio does not detect COM port.

Disable COM port auto-detection in AVR Studio file menu. Force COM port to correct COM port

STK525 Hardware User Guide 3-26

7608A–AVR–04/06

Page 27: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Troubleshooting Guide

STK525 Hardware User Guide 3-27

7608A–AVR–04/06

Page 28: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Section 4

Technical Specifications

� System Unit

– Physical Dimensions................................................. L=119 x W=56 x H=27 mm– Weight ...........................................................................................................70 g

� Operating Conditions

– Internal Voltage Supply .....................................................................2.7V - 5.5V– External Voltage Supply ..........................................................9V -15V (100mA)

� Connections

– USB Connector ......................................................................Mini AB receptacle– USB Communications .......................................................Full speed/low speed

– RS 232C Connector .............................................................9-pin D-SUB female– RS 232C Communications Maximum Speed........................................ 250 kbps

STK525 Hardware User Guide 4-28

7608A–AVR–04/06

Page 29: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Section 5

Technical Support

For Technical support, please contact [email protected]. When requesting technicalsupport, please include the following information:

� Which target AVR device is used (complete part number)

� Target voltage and speed

� Clock source and fuse setting of the AVR

� Programming method (ISP, JTAG or specific Boot-Loader)

� Hardware revisions of the AVR tools, found on the PCB

� Version number of AVR Studio. This can be found in the AVR Studio help menu.

� PC operating system and version/build

� PC processor type and speed

� A detailed description of the problem

STK525 Hardware User Guide 5-29

7608A–AVR–04/06

Page 30: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Section 6

Complete Schematics

On the next pages, the following documents of STK525 revision 4381A are shown:

� Complete schematics,

� Assembly drawing,

� Bill of materials.

� Default configuration summary

STK525 Hardware User Guide 6-30

7608A–AVR–04/06

Page 31: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Complete Schematics

Figure 6-1 . Schematics, 1 of 5

C7

1uF

VB

US

SW

2E

xt R

eset

PE3

AV

CC

PD

[7..

0]P

D[7

..0]

NC

KA

D1

BA

T54/

SO

TIN

T 0/

2

PA0

UC

AP

Cap

acito

rC

lose

d to

the

MC

U

VC

C

PA1

R4

0

PF7S

P2

PA

3

UGND

VC

C

PA

[7..0

]P

A[7

..0]

PA

[7..0

]

PA2

PE7

RESET

PA

4

Reset Circuit

Force Bootloader Execution

VC

C

R3

47k

C8

220n

F PE

2

UV

CO

N

VB

US

Impo

rtan

t No

te:

U1 i

s mo

unte

d th

roug

h a

TQFP

64 Z

IF s

ocke

t

PA

5P

A6

C1

100n

F

UC

AP

PA

7

Clo

se S

olde

r P

adTo

use

par

alle

l pro

g m

ode

(12V

on

Res

et P

in)

SW

1H

WB

PE

2

PF

[7..

0]

PC

7

UG

ND

R7

0

AG

ND

R6

0

1

TP1

D+

D-

D+

1

TP2

D-

1

TP3

AR

EF

AR

EF

RE

SIS

TOR

SC

LOS

ED

TO

TH

E D

EV

ICE

VC

C

PE4

PB

[7..

0]P

B[7

..0]

PB

[7..0

]

PE5

PC

6

VC

CA

VC

C

L1

BL

M-2

1A

10

2S

SP

1

C2

100n

F

Title

Size

Doc

umen

t N

umbe

rR

ev

Dat

e:S

heet

of

11.

0

CP

U

A4

14

Wed

nesd

ay,

Feb

ruar

y 1

5, 2

006

PC

5P

C4

VC

C

PB

0

VC

C

Fer

rite

& c

apac

itors

clos

ed t

o th

e M

CU

PB

1

1-V

_BU

S

3-D

+2-

D-

4-ID

5-G

ND

SH

IELD

SH

IELD

SH

IELD

SH

IELD

US

B_M

iniA

BF

J1

PB

2P

C3

R5

47k

PE

72

UV

cc3

D-

4

D+

5

UG

ND

6

UC

AP

7

VB

US

8

PE

39

PB

010

PB

111

PB

212

PB

313

PB

414

PB

515

PB

616

PB717

PD025

PD126

PD227

PD328

PD429

PD530

PD631

PD732

PE418

PE519

AREF62

RESET20

GND53

GND63

GND22

XTAL223

XTAL124

PE

033

PE

134

PE

61

PE

243

PC

035

PC

136

PC

237

PC

338

PC

439

PC

540

PC

641

PC

742

PA

744

PA

645

PA

546

PA

447

PA

348

PA249 PA150 PA051

PF754 PF655 PF556 PF457 PF358 PF259 PF160 PF061

VCC52

VCC21

AVCC64

AT9

0US

B12

8

U1

PB

3

UV

CO

NP

E7

C5

100n

F

VC

C

DE

CO

UP

LIN

G C

AP

AC

ITO

RS

CLO

SE

D T

O T

HE

DE

VIC

EM

CU

Pin

3V

BU

S

PC

2

PB

4

Y1 8M

Hz

C11

15pF

C10

15pF

PC

1

PB

5

VB

US

AR

EF

PC

0

PB

6

PE

[7..

0]

PE

1

PB

7

PF0

PE

0

STK5

25 M

EZZA

NINE

FO

R ST

K500

C9

220n

F

UG

ND

UG

ND

UG

ND

UG

ND

UG

ND

PC

[7..

0]P

C[7

..0]

C3

100n

F

PF1

R2

22

R1

22

RE

SE

T

D+

C4

100n

F

D-

UID

PE

3

PF2

PD0

XTAL2

PD1PD2

PF3

PD3

AG

ND

CR

1

PG

B00

1060

3

PA

[7..0

]P

A[7

..0]

PA

[7..0

]

CR

2

PG

B00

1060

3

PE0

PD4

XTAL1

PD5PD6

DE

CO

UP

LIN

G C

AP

AC

ITO

RS

CLO

SE

D T

O T

HE

DE

VIC

EM

CU

Pin

52

PE1

PD7

PF4

XTA

L2

UC

AP

NR

ST

UV

CC

D+

D-

RE

SIS

TOR

SC

lose

d to

the

MC

U

PE2

PF5

RE

SE

T

C6

100n

F

VC

C

PA

[7..

0]

AR

EF

DE

CO

UP

LIN

G C

AP

AC

ITO

RS

CLO

SE

D T

O T

HE

DE

VIC

EM

CU

Pin

21

PF6

XTA

L1

STK525 Hardware User Guide 6-31

7608A–AVR–04/06

Page 32: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Complete Schematics

Figure 6-2 . Schematics, 2 of 5

Q1

BC

847B

C14

100n

FC

13

100n

F

PE

0P

E2

PC

6P

C4

PC

5P

C2

PC

0P

C1

PC

3

PC

7

PE

1

R9

10k

GN

D1

GN

D2

AU

XI0

3A

UXO

04

CT7

5C

T66

CT5

7C

T48

CT3

9C

T210

CT1

11B

SE

L212

(n.c

.)13

RE

F14

NR

ST

15P

E2

16

PE

117

PE

018

GN

D19

GN

D20

VTG

21V

TG22

PC

723

PC

624

PC

525

PC

426

PC

327

PC

228

PC

129

PC

030

PA

731

PA

632

PA

533

PA

434

PA

335

PA

236

PA

137

PA

038

GN

D39

GN

D40

CO

N 2

x20

J3 EXP.

CO

N 0

XTA

L2

PD

[7..0

]

GN

D1

GN

D2

AU

XI1

3A

UXO

14

DA

TA7

5D

ATA

66

DA

TA5

7D

ATA

48

DA

TA3

9D

ATA

010

DA

TA1

11D

ATA

912

SI

13S

O14

SC

K15

CS

16

XT1

17XT

218

VTG

19V

TG20

GN

D21

GN

D22

PB

723

PB

624

PB

525

PB

426

PB

327

PB

228

PB

129

PB

030

PD

731

PD

632

PD

533

PD

434

PD

335

PD

236

PD

137

PD

038

GN

D39

GN

D40

CO

N 2

x20

J2 EXP.

CO

N 1

Title

Size

Doc

umen

t N

umbe

rR

ev

Dat

e:S

heet

of

<Doc

>1.

0

STK

500

Exp

and

conn

ecto

rs

A4

24

Tues

day

, Ja

nuar

y 1

7, 2

006

ST

KN

C

Impo

rtan

t:D

efau

lt co

nfig

urat

ion:

ope

nre

serv

ed f

or f

utur

e m

ass

stor

age

exte

nsio

n

3.3V

SP

3

STK5

25 M

EZZA

NINE

FO

R ST

K500

NR

ST

STK

NC

VTG

XTA

L1

PA

0

R8

2k

PB

7

PB

3P

B5 P

D5

PD

7P

B1

PB

6

PD

1P

D3

PB

2P

B4

PD

6PB

0

PD

2P

D4

C12

1nF

PD

0

AR

EF

12

JP3

STK

ARE

F

VTG

RE

F

XT

2X

T1

PE

[2..0

]

VTG

VTG

PE

[2..

0]

VTG

PC

[7..0

]P

C[7

..0]

PB

[7..

0]

PD

[7..

0]

PA

[7..

0]P

A[7

..0]

PA

5P

A7

PA

6

PA

1P

A3

PA

4

12

JP1

STK

X1

PA

2

12

JP2

STK

X2

PB

[7..0

]

6-32 STK525 Hardware User Guide

7608A–AVR–04/06

Page 33: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Complete Schematics

Figure 6-3 . Schematics, 3 of 5

Data Flash 3.3V

LEDs

3.3V

PF

[7..

0]

D

EC

OU

PLI

NG

CA

PA

CIT

OR

CLO

SE

TO

TH

E C

ON

NE

CTO

R

R19

PO

T 10

0k

Sel

ect

5

Left

7

Up

3

Rig

ht6

Dow

n4

Com

11

Com

22

SW

3

TPA

511G

PF

[7..

0]

Temp Sensor

PB

[7..

0]

R18

NC

P18

WF

104J

03R

B

594837261

1011

P1

SU

B-D

9 F

EM

ALE

RS

232

1 2 3 4

J7

PF

Spa

re (

Not

mou

nted

)

RS232 Interface

JTAG Interface

RS

-CT

S

3.3V

Serial ISP

Interface

PE

[7..

0]

CP

1

VC

C

R16

100k

STK5

25 M

EZZA

NINE

FO

R ST

K500

VC

C3.

3V

BU

SY

1

RE

SE

T2

WP

3V

CC

6

GN

D7

CS

11

SC

K12

SI

13

SO

14

U2

AT4

5DB

321C

TS

OP

28

Microphone Preamplifier Interface

PF0

VC

C

PB

[7..

0]

CT

S

Title

Size

Doc

umen

t N

umbe

rR

ev

Dat

e:S

heet

of

<Doc

>1.

0

Inte

rfac

es

A4

34

Tues

day

, Ja

nuar

y 1

7, 2

006

C20

100n

F

RT

S

CP

2

R23

100k

.11

.12

.10

.9

.8

.7

.13

.14

.15

.16

C1+

1V

+2

C1-

3

C2+

4

C2-

5V

-6

RS

232

TTL

GN

D

VC

C

U3

MA

X323

2R

S23

2 B

UF

FE

R

C17

100n

F

C16

100n

FC

1810

0nF

PF1

C19

100n

F

RxD

PD

2

DE

CO

UP

LIN

G C

AP

AC

ITO

R C

LOS

E T

O T

HE

DE

VIC

E

RS

-TxD

RS

-TxD

RS

-TxD

RS

-TxD

RS

-TxD

RS

-TxD

RS

-TxD

RS

-TxD

RS

-RxD

PD

[7..

0]

VC

C

PF

0

1

TP4

Mic

VC

C

DE

CO

UP

LIN

G C

AP

AC

ITO

R C

LOS

E T

O T

HE

DE

VIC

E

C15

100n

F

PF

1

SP

4

PF

2

SP

5

VC

C

Cau

tion

Dat

aFla

sh

Fix

3V

Pow

er s

uppl

y O

nly

PF

3

PB

[7..

0]

C26

100n

F

RE

SE

T

R11

100k

CP

3

D

EC

OU

PLI

NG

CA

PA

CIT

OR

CLO

SE

TO

TH

E C

ON

NE

CTO

R

PB

5

PD

O1

VC

C2

SC

K3

PD

I4

RE

SE

T5

GN

D6

CO

N 2

x3

J5 ISP

CO

N

TCK

1G

ND

2

TDO

3V

CC

4

TMS

5R

ES

ET

6

VC

C7

n.c.

8

TDI

9G

ND

10

CO

N 2

x5

J4 JTA

G C

ON

C21

100n

F

C23

100n

F

PD

1

PF4

PF4

PF6

PF7

PF5

PF5

RE

SE

TP

B1

R17

0

PB

2

PB

3

3.3V

PB

6

PD

0

VC

C

PD

3T

XD

SP

7

PB

7

567

84 +-

U4B

LMV

358

321

84 +-

U4A

LMV

358

R27

0R

2622

kR

2510

k

R24

100k

PB

4

+C

25

1uF

R21

100k

R28

100k

C22

220p

F

+

C24

4.7u

F

3.3V

R20

2.2k

MIC

1

MIC

RO

PH

ON

E

R22

100k

DE

CO

UP

LIN

G C

AP

AC

ITO

R C

LOS

E T

O T

HE

DE

VIC

E

PE

4

PB

1

R10

100k

PF2

In-li

ne G

roup

ed L

ED

s

RE

SE

T

D2

TOP

LED

LP

M67

6

LED

0 (g

reen

) D3

TOP

LED

LP

M67

6

LED

1 (g

reen

) D4

TOP

LED

LP

M67

6

LED

2 (g

reen

) D5

TOP

LED

LP

M67

6

LED

3 (g

reen

)

PB

2

R12

1k

R13

1k

PE

5

R14

1k

R15

1k

PD

4

PB

3

PD

5

PD

7

PD

[7..

0]

PD

6

SP

8

RS

-RT

S

Joystick Interface

STK525 Hardware User Guide 6-33

7608A–AVR–04/06

Page 34: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Complete Schematics

Figure 6-4 . Schematics, 4 of 5

-

C30

4.7u

F

VTG

IN GN

D

OU

T

U8

LM34

0

VB

US

gen

erat

or f

or O

TG/H

OS

T m

ode

1�F

<C

ap V

bus

< 6�

F O

TG S

peci

fica

tion

VB

US

R29

10k

C28

4.7u

F

D7

LL41

48

C27

100n

F

GND1

IN1

2

IN2

3

EN

4O

C5

OU

T18

OU

T27

OU

T36

U5

TPS

2041

A

12

JP4

M1FD

V30

4P/F

AI

R33

100k

3.3V

5V5V

- C31

4.7u

F

1

TP5

3.3V

JP n

ot m

ount

ed,

rese

rved

for

fut

ure

mas

s st

orag

e ex

tens

ion

in s

tand

alo

ne m

ode

TPS

2041

A V

bus

Icc

limite

r op

tionn

alW

hen

Not

Mou

nted

Clo

se S

olde

r P

ad

JP C

lose

d fo

r 3.

0<V

cc<3

.3

1

TP6

5V

R31

124k

1%

1

TP8

VB

US

U6o

ut=1

.25*

(1+R

28/R

29)

1 2

JP5

VTG

STK

VB

US

VBUS

3.3V

R30

100k

1%

Ext

VC

C1

TP7

GN

D

SP

6

3.3V

STK5

25 M

EZZA

NINE

FO

R ST

K500

STK

Ext

UC

AP

3.3V

Q2

BC

847B

3.3V

D8

TOP

LED

LP

M67

6PO

WER

LED

(RED

)

R34

1k

Title

Size

Doc

umen

t N

umbe

rR

ev

Dat

e:S

heet

of

<Doc

>1.

0

PO

WE

R

A4

44

Tues

day

, Ja

nuar

y 1

7, 2

006

5V

C32

220n

F

12

34

56

78

JP6

VC

C S

ourc

e

VC

C

-

C34

4.7u

F

21 3

JP7

VBU

S ge

n

D6

LL41

48

R32

10k

R35

100k

1%

3

1

4

2-

+

U7

DF

005S

3 2 1

J6

CO

NN

EC

TOR

JA

CK

PW

RE

xt P

ower

Sup

ply

C33

100n

FC29

33nF

UV

CO

N

VB

US

OU

T1

IN2

GN

D3

OU

T4

FA

ULT

8S

HD

N7

CC

6

SE

T5

U6

LP39

82

6-34 STK525 Hardware User Guide

7608A–AVR–04/06

Page 35: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Complete Schematics

Figure 6-5 . Assembly Drawing, 1 of 2 (component side)

Figure 6-6 . Assembly Drawing, 2 of 2 (solder side)

STK525 Hardware User Guide 6-35

7608A–AVR–04/06

Page 36: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Complete Schematics

Table 6-1 . Bill of material

Item Q.ty Reference Part Tech. Characteristics Package

1 2 CR1,CR2 PGB0010603 ESD protection CASE 0805

2 19C1,C2,C3,C4,C5,C6,C13,C14,C15,C16,C17,C18,C19,C20,C21,C23,C26,C27,C33

100nF 50V-10% Ceramic CASE 0805

3 2 C7,C25 1uF 10Vmin ±10% EIA/IECQ 3216

4 3 C8,C9,C32 220nF 50V-10% Ceramic CASE 0805

5 2 C10,C11 15pF 50V-5% Ceramic CASE 0805

6 1 C12 1nF 50V-5% Ceramic CASE 0805

7 1 C22 220pF 50V-5% Ceramic CASE 0805

8 5 C24,C28,C30,C31,C34 4.7uF 10Vmin ±10% EIA/IECQ 3216

9 1 C29 33nF 50V-5% Ceramic CASE 0805

10 3 CP1, CP2, CP3 Configuration Pad

11 1 D1 BAT54/SOT Vf=0.3V SOT23

12 5 D2,D3,D4,D5,D8 TOPLED LP M676Green

I=10 mA_PLCC-2

13 2 D6,D7 LL4148 i=200mA max LL-34

14 5 JP1,JP2,JP3,JP4,JP5 JUMPER 1x2 Need 1 shunt 0,1" pitch

15 1 J1 USB_MiniABFUSB mini AB receptacle Surface mount

16 2 J2,J3 CON 2x20

17 1 J4 CON 2x5

18 1 J5 CON 2x3

19 1 J7 CON 2x2 Not Mounted

20 1 JP6 JUMPER 2x4 Need 1 shunt 0,1" pitch

21 1 J6CONNECTOR JACK PWR

Int.Diam=2.1mm PCB Embase

22 1 JP7 JUMPER 3x1

23 1 L1 BLM-21A102SFERRITE BEAD

1 KOhms at 100 MHzCASE 0805

24 1 MIC1 MICROPHONE Electret Cap Mic

25 1 M1 FDV304P/FAI MOSFET P SOT23

26 1 P1 SUB-D9 FEMALE 90° with harpoons

27 2 Q1,Q2 BC847B NPN

IC peak=200mASOT23

28 2 R1,R2 22 1/16W-5% SMD CASE 0602

29 2 R3,R5 47k 1/16W-5% SMD CASE 0603

30 5 R4,R6,R7,R17,R27 0 CASE 0603

31 1 R8 2k CASE 0604

32 4 R9,R25,R29,R32 10k 1/16W-5% SMD CASE 0603

6-36 STK525 Hardware User Guide

7608A–AVR–04/06

Page 37: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Complete Schematics

6.0.1 Default Configuration - Summary

Table 6-2 . Default Configuration summary

33 9 R10,R11,R16,R21,R22,R23,R24,R28,R33 100k 1/16W-5% SMD CASE 0603

34 5 R12,R13,R14,R15,R34 1k 1/16W-5% SMD CASE 0603

35 1 R18 NCP18WF104J03RB 100K - ß=4250 CASE 0603

36 1 R19 POT 100k PT10MH104ME

37 1 R19 Button Pot Button

38 1 R20 2.2k 1/16W-5% SMD CASE 0603

39 1 R26 22k 1/16W-5% SMD CASE 0603

40 1 R30, R35 100k 1% 1/16W-1% SMD CASE 0603

41 1 R31 120k 1% 1/16W-1% SMD CASE 0603

42 6 SP1,SP2,SP3,SP4,SP5,SP6 SolderPad (NA) (NA)

43 2 SW1,SW2 PUSH-BUTTON 6x3.5mm - 1.6N

44 1 SW3 TPA511G 4+1 ways joystick CMS

45 8 TP1,TP2,TP3,TP4,TP5,TP6, TP7, TP8 TEST POINT Diam.=1.32mm

46 1 U1 AT90USBxxx TQFP64

47 1 U1 Socket TQFP64 ZIF

48 1 U2 AT45DB321C TSOP28

49 1 U3 MAX3232ECAE+ SSOP16

50 1 U4 LMV358 SO8

51 1 U5 TPS2041A SOIC8

52 1 U6 LP3982Low Drop Out

Vin Max 6V, 300mAMSOP8

53 1 U7 DF005S Bridge rectifier See DS

54 1 U8 LM340 Reg 5V CMS SOT223

55 1 Y1 8MHz CRYSTAL H=4mm HC49/4H

Item Q.ty Reference Part Tech. Characteristics Package

Name Ref. Function State

Jumpers

STKX1 JP1 XTAL Configuration OFF

STKX2 JP2 XTAL Configuration OFF

Aref JP3 STK500 Analog Ref OFF

VTG33 JP4 Short 3.3V to VTG (Mass storage extension board)

OFF

UCAP JP5 Short UCAP with Uvcc OFF

Vcc Src JP6 Vcc Selection 3.4 shorted

Vbus Gen JP7 VBUS generation selection (host mode) 2.3 shorted

Solder PADS

STK525 Hardware User Guide 6-37

7608A–AVR–04/06

Page 38: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

Complete Schematics

SP1 Bypass L1 OPEN

SP2 OPEN

SP3 3.3V on Expand 0 NC pin OPEN

SP4 CTS OPEN

SP5 RTS OPEN

SP6 Bypass limiter OPEN

SP7 RS232 hardware control enable OPEN

SP8 RS232 hardware control enable OPEN

Configuration PADS

CP1 Bypass CTN in on PF0 CLOSE

CP2 Bypass Potentiometer ADC in on PF1 CLOSE

CP3 Bypass Mic In on PF2 CLOSE

Name Ref. Function State

6-38 STK525 Hardware User Guide

7608A–AVR–04/06

Page 39: AT89C5131 Hardware User Guide - Farnell · STK525 Hardware User Guide 2-11 7608A–AVR–04/06 2.3.3 STK500 RESET (c.f. “RESET from STK500” on page 20) 2.4 AT90USBxxx AVR Microcontroller

© Atmel Corporation 2006. All rights reserved. Atmel®, logo and combinations thereof, are registered trademarks, and Everywhere You Are®

are the 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 anyintellectu-alproperty right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDI-TIONS OFSALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORYWAR-RANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICU-LARPURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIALOR INCIDEN-TAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMA-TION) ARISING OUTOF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAM-AGES. Atmel makes norepresentationsor warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to makechanges to specificationsand product descriptions at any time without notice. Atmel 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’s products are not intended,authorized, or warranted for useas components in applications intended to support or sustainlife.

Atmel Corporation Atmel Operations

2325 Orchard ParkwaySan Jose, CA 95131, USATel: 1(408) 441-0311Fax: 1(408) 487-2600

Regional Headquarters

EuropeAtmel SarlRoute des Arsenaux 41Case Postale 80CH-1705 FribourgSwitzerlandTel: (41) 26-426-5555Fax: (41) 26-426-5500

AsiaRoom 1219Chinachem Golden Plaza77 Mody Road TsimshatsuiEast KowloonHong KongTel: (852) 2721-9778Fax: (852) 2722-1369

Japan9F, Tonetsu Shinkawa Bldg.1-24-8 ShinkawaChuo-ku, Tokyo 104-0033JapanTel: (81) 3-3523-3551Fax: (81) 3-3523-7581

Memory2325 Orchard ParkwaySan Jose, CA 95131, USATel: 1(408) 441-0311Fax: 1(408) 436-4314

Microcontrollers2325 Orchard ParkwaySan Jose, CA 95131, USATel: 1(408) 441-0311Fax: 1(408) 436-4314

La ChantrerieBP 7060244306 Nantes Cedex 3, FranceTel: (33) 2-40-18-18-18Fax: (33) 2-40-18-19-60

ASIC/ASSP/Smart CardsZone Industrielle13106 Rousset Cedex, FranceTel: (33) 4-42-53-60-00Fax: (33) 4-42-53-60-01

1150 East Cheyenne Mtn. Blvd.Colorado Springs, CO 80906, USATel: 1(719) 576-3300Fax: 1(719) 540-1759

Scottish Enterprise Technology ParkMaxwell BuildingEast Kilbride G75 0QR, Scotland Tel: (44) 1355-803-000Fax: (44) 1355-242-743

RF/AutomotiveTheresienstrasse 2Postfach 353574025 Heilbronn, GermanyTel: (49) 71-31-67-0Fax: (49) 71-31-67-2340

1150 East Cheyenne Mtn. Blvd.Colorado Springs, CO 80906, USATel: 1(719) 576-3300Fax: 1(719) 540-1759

Biometrics/Imaging/Hi-Rel MPU/High Speed Converters/RF Datacom

Avenue de RochepleineBP 12338521 Saint-Egreve Cedex, FranceTel: (33) 4-76-58-30-00Fax: (33) 4-76-58-34-80

Literature Requestswww.atmel.com/literature

Printed on recycled paper.

7608A–AVR–04/06 /xM