AVR-MT-128 User Manual

AVR-MT-128 User Manual

AVR-MT128 development board

Users Manual

Rev.A, July 2008

Copyright(c) 2008, OLIMEX Ltd, All rights reserved

INTRODUCT ION:

AVR-MT128 is simple but powerful board which uses the MCU ATMega128 from Atmel. With its LCD, buttons, relay and variety of interfaces such as

RS232 (in two variants – 4 pins and DB9), JTAG, ISCP, Dallas, etc. this board is suitable for different embedded systems applications.

BOARD FEATURES:

MCU: ATMega128-16AI with128K Bytes Program Flash, 4K Bytes data

EEPROM, 4K Bytes RAM

JTAG connector for in-circuit programming and debugging with AVR-

JTAG

ICSP 5x2 (10) pin STKxxx compatible connector for in-circuit programming with AVR-PG1B or AVR-PG2B

RS232 connector with TTL levels

RS232 interface circuit with Tx, Rx signals

RS232 DB9 female connector

Dallas touch button port

Frequency input

LCD 16x2 display

Status LED

Five buttons

Buzzer

Power supply circuit +5V, 78L05 with plug-in power jack and diode bridge

32 768 Hz oscillator crystal

16 MHz crystal oscillator

Power supply filtering capacitor

RESET supervisor IC ZM33064

RELAY with 10A/250VAC NO and NC contacts with screw terminals

Extension headers for unused in the schematic ports available for external connection

PCB: FR-4, 1.5 mm (0,062"), green soldermask, white silkscreen component print

Four mounting holes 3.3 mm (0.13")

Dimensions: 120x38 mm (4.7x1.5")

ELECTROSTATIC WARNING:

The AVR-MT128 board must not be subject to high electrostatic potentials.

General practice for working with static sensitive devices should be applied when working with this board.

BOARD USE REQUIREM ENTS:

Cables:

RS232 straight male-to-female DB9 cable (Note: this is not a null modem cable)

Hardware: Programmer: AVR-PG1, AVR-PG2, AVR-ISP500, AVR-ISP500-

TINY, AVR-ISP500-ISO or other compatible tool;

Debugger: AVR-JTAG, AVR-JTAG-USB or other compatible tool;

Software: AVR Studio + WinAVR – free C compiler and debugger can be downloaded at avrfreaks.org web site. IAR IW for AVR is a commercial software for development of embedded systems software.

PROCESSOR FEATURES:

AVR-MT128 uses ATMega128 MCU from Atmel with the following features:

High-performance, Low-power AVR® 8-bit Microcontroller

Advanced RISC Architecture o

133 Powerful Instructions – Most Single Clock Cycle Execution o

32 x 8 General Purpose Working Registers + Peripheral Control

Registers o

Fully Static Operation o

Up to 16 MIPS Throughput at 16 MHz o

On-chip 2-cycle Multiplier

Nonvolatile Program and Data Memories o

128K Bytes of In-System Reprogrammable Flash

Endurance: 10,000 Write/Erase Cycles o

Optional Boot Code Section with Independent Lock Bits

In-System Programming by On-chip Boot Program

True Read-While-Write Operation o

4K Bytes EEPROM

Endurance: 100,000 Write/Erase Cycles o 4K Bytes Internal SRAM o

Up to 64K Bytes Optional External Memory Space o

Programming Lock for Software Security o

SPI Interface for In-System Programming

JTAG (IEEE std. 1149.1 Compliant) Interface o

Boundary-scan Capabilities According to the JTAG Standard o Extensive On-chip Debug Support o

Programming of Flash, EEPROM, Fuses and Lock Bits through the JTAG Interface

Peripheral Features o

Two 8-bit Timer/Counters with Separate Prescalers and

Compare Modes o

Two Expanded 16-bit Timer/Counters with Separate Prescaler,

Compare Mode and Capture Mode o

Real Time Counter with Separate Oscillator o

Two 8-bit PWM Channels o

6 PWM Channels with Programmable Resolution from 2 to 16

Bits o

Output Compare Modulator o

8-channel, 10-bit ADC

8 Single-ended Channels

7 Differential Channels

2 Differential Channels with Programmable Gain at 1x, 10x, or

200x o

Byte-oriented Two-wire Serial Interface o

Dual Programmable Serial USARTs o

Master/Slave SPI Serial Interface o

Programmable Watchdog Timer with On-chip Oscillator o

On-chip Analog Comparator

Special Microcontroller Features o

Power-on Reset and Programmable Brown-out Detection o

Internal Calibrated RC Oscillator o

External and Internal Interrupt Sources

– o

Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Powerdown, Standby, and Extended Standby o

Software Selectable Clock Frequency o

ATmega103 Compatibility Mode Selected by a Fuse o

Global Pull-up Disable

I/O and Packages o

53 Programmable I/O Lines o

64-lead TQFP and 64-pad MLF

Operating Voltages o

4.5 - 5.5V for ATmega128

Speed Grades o

0 - 16 MHz for ATmega128

BLOCK DIAGRAM:

MEMORY MAP:

BOARD LAYOUT:

SCHEMATIC:

+12V

PWR

12VDC/9VAC

G1

DB104

8

9

6

7

DB9-RS232

3

4

1

2

5

C3

100uF

+5V

+5V

Z

C1

1N4728(3.3V)

220uF/25VDC

VR

78L05

IN OUT

GND

+5V

C2

100n

R2

22K

B1

R3

22K

B2

AVR-MT-128

COPYRIGHT(C) 2008, OLIMEX LTD

HTTP://WWW.OLIMEX.COM/DEV

B1 B2

+5V

R14

+5V

U1

ZM33064

2

VCC RESET

GND

3

10K

C5

22p

C6

22p

6

8

2

4

10

ICSP

5

7

1

3

9

RESET

SCK

+5V

RESET

ADC3

ADC1

6

8

2

4

10

6

4

2

RS232

J

JTAG

ADC

3

2

1

4

3

2

1

5

7

1

3

9

5

3

1

FREQ

TCK

TDO

TMS

+5V

TDI

ADC2

ADC0

AREF

+5V

C8

100n

RESET

Q2

16MHz

Q1

32768Hz

BUZ3

PDI

PDO

XCK0/AIN0

OC3A/AIN1

OC3B/INT 4

OC3C/INT 5

T3/INT6

IC3/INT7

19

18

4

5

2

3

8

9

6

7

20

U2

RESET/

24

23

XTAL1

XTAL2

TOSC1/PG4

TOSC2/PG3

RXD0/PDI/PE0

TXD0/PDO/PE1

XCK0/AIN0/PE2

OC3A/AIN1/PE3

OC3B/INT4/PE4

OC3C/INT5/PE5

T3/INT6/PE6

IC3/INT7/PE7

SCL/INT 0

SDA/INT1

RXD

TXD

IC1

XCK1

T1

T2

25

26

27

28

29

30

31

32

SCL/INT0/PD0

SDA/INT1/PD1

RXD1/INT2/PD2

TXD1/INT3/PD3

IC1/PD4

XCK1/PD5

T1/PD6

T2/PD7

+5V

R13

NA

ADC0

ADC1

ADC2

ADC3

TCK

TMS

TDO

TDI

AREF

C4

100n

57

56

55

54

61

60

59

58

ADC0/PF0

ADC1/PF1

ADC2/PF2

ADC3/PF3

ADC4/TCK/PF4

ADC5/TMS/PF5

ADC6/TDO/PF6

ADC7/TDI/PF7

64

AVCC

62

AVREF

63

AGND

ATMEGA128

+5V

VCC

GND

R15

22K

B3

B3 B4

C9

100n

C10

100n

R16

22K

B4

R17

22K

B5

B5

DALLAS

R9

4.7K

R8

33

D10

FR107

D11

FR107

1

2

DALLAS

+5V

T2

XCK1

SDA/INT 1

IC3/INT 7

OC3C/INT5

OC3A/AIN1

14

12

10

8

6

4

2

EXT1

9

7

5

3

1

13

11

T1

IC1

SCL/INT0

T3/INT6

OC3B/INT 4

XCK0/AIN0

PA0/AD0

PA1/AD1

PA2/AD2

PA3/AD3

PA4/AD4

PA5/AD5

PA6/AD6

PA7/AD7

PC0/A8

PC1/A9

PC2/A10

PC3/A11

PC4/A12

PC5/A13

PC6/A14

PC7/A15

39

40

41

42

35

36

37

38

51

50

49

48

47

46

45

44

B1

B2

B3

B4

B5

DALLAS

RELAY

PA7/AD7

RS

R/W

E

PC3/A11

D4

D5

D6

D7

LCD_TR

D4

D5

D6

D7

10K

3

11

12

13

14

+5V

VO

DB4

DB5

DB6

DB7

PB7/OC2/OC1C

PB6/OC1B

PB5/OC1A

PB4/OC0

PB3/MISO

PB2/MOSI

PB1/SCK

PB0/SS

17

16

15

14

13

12

11

10

OC2/OC1C

OC1B

OC1A

OC0

MISO

MOSI

SCK

SS

PG2/ALE

PG1/RD

PG0/WR

PEN/

43

34

33

1

RS

R/W

E

4

5

6

_RS

R/W

E

PG2/ALE

PG1/RD

PG0/WR

+5V

R1

10K

+5V

PA7/AD7

OC2/OC1C

OC1A

MISO

SS

PG1/RD

14

12

10

8

6

4

2

EXT2

7

5

3

1

13

11

9

PC3/A11

OC1B

OC0

MOSI

PG2/ALE

PG0/WR

+12V

+5V

REL_CON

3

2

1

LED

T2

BC856

R5

10K

T XD

R7

10K

R6

4.7K

RXD

T1

BC846

+5V

REL

R10

2K

T3

BC846

D12

1N4004

R11

1K

RELAY

D8

1N4148

R4

4.7K

C7

10uF/25VDC

R12

47K

D9

1N4148

FREQ

1

2

D13

1N4148

D14

1N4148

FREQ

R18

100K

R19

22K

POWER SUPPLY CIRCUIT:

The power supply of AVR-MT128 is taken from Power jack connector. You should apply 9 VAC or +12 VDC at the positive central pin.

The consumption of the board is about 30 mA.

RESET CIRCUIT:

AVR-MT128 reset circuit is made with ZM33064 with typical threshold

4.5V. When the voltage falls bellow that minimum, the MSU resets.

CLOCK CIRCUIT:

Quartz crystal 16MHz for maximum performance is connected to

ATMega128 pin 23 (XTAL2) and pin 24 (XTAL1).

Additional 32 768 Hz tact generator is connected to ATMega128 pin 18

(TOSC2/PG3) and pin 19 (TOSC1/PG4) and supplies the Real Time Clock.

JUMPER DESCRIPTION:

J

pin 31 frequency pin connected to

This jumper supplies the input user frequency FREQ to either

(T1/PD6) or pin 32 (T2/PD7). When 1-2 is shorted the input is connected to T2. When 2-3 is shorted the input frequency pin is

T1.

Default state is 1-2 shorted.

INPUT/OUTPUT:

Status LED (red) connected to the relay.

Relay with name REL connected to ATMega128 pin 45 (PA6/AD6).

Trimmer LED_TR connected to the LCD.

Liquid crystal display.

Buzzer with name BUZZ connected to ATMega128 pin 6 (OC3B/INT4/PE4) and pin 7 (OC3C/INT5/PE5).

User button B1 connected to ATMega128 pin 51 (PA0/AD0).

User button B2 connected to ATMega128 pin 50 (PA1/AD1).

User button B3 connected to ATMega128 pin 49 (PA2/AD2).

User button B4 connected to ATMega128 pin 48 (PA3/AD3).

User button B5 connected to ATMega128 pin 47 (PA4/AD4).

CONNECTOR DESCRIPTIONS:

JTAG:

6

7

4

5

1

2

3

8

9

10

Pin # Signal Name

TCK

GND

TDO

+5V

TMS

RESET

+5V

NC

TDI

GND

This connector allows programming and debugging via AVR-JTAG or other compatible tools.

TDI

Input Test Data In. This is the serial data input for the shift register.

TDO OutputTest Data Out. This is the serial data output for the shift register. Data is shifted out of the device on the negative edge of the TCK signal.

TMS Input Test Mode Select. The TMS pin selects the next state in the TAP state machine.

TCK Input Test Clock. This allows shifting of the data in, on the TMS and TDI pins. It is a positive edge triggered clock with the TMS and TCK signals that define the internal state of the device.

ICSP:

4

5

6

1

2

3

Pin # Signal Name

PDI

+5V

NC

GND

RST

GND

7

8

9

10

SCK

GND

PDO

GND

This connector allows programming via AVR-PG1, AVR-PG2 or other compatible tool.

PDI

Input Program Data In. This pin is serial data input for the MCU.

PDO

OutputProgram Data Out. This pin is serial data output from the MCU.

SCK

I/O

Serial (Synchronization) Clock. This is the synchronization signal.

DB9-RS232:

7

8

5

6

3

4

1

2

9

Pin #

GND

NC

NC

NC

NC

Signal Name

NC

TXD

RXD

NC

TXD

OutputTransmit Data. This is the asynchronous serial data output for the RS232 interface.

RXD

Input Receive Data. This is the asynchronous serial data input for the RS232 interface.

RS232:

1

2

3

Pin # Signal Name

TXD

RXD

GND

4 +5V

RELAY_CONNECTOR:

This connector provides the user with access to the contact plates of the relay.

FREQ:

1

2

Pin # Signal Name

FREQ

GND

External input frequency is applied at pin 1.

DALLAS

:

1

2

Pin # Signal Name

DALLAS

GND

Signal from Dallas chips is applied at pin 1 of the Dallas interface.

ADC:

3

4

1

2

5

6

Pin # Signal Name

AREF

GND

ADC0

ADC1

ADC2

ADC3 extension.

EXT1:

Some of the Analog to Digital Converter signals are grouped into an

11

12

13

14

8

9

10

6

7

4

5

1

2

3

Pin #

IC1

XCK1

T1

T2

Signal Name

GND

+5V

XCK0/AIN0

OC3A/AIN1

OC3B/INT4

OC3C/INT5

T3/INT6

IC3/INT7

SCL/INT0

SDA/INT1

EXT2:

9

10

11

12

7

8

5

6

13

14

1

2

3

4

Pin # Signal Name

GND

+5V

PG0/WR

PG1/RD

PG2/ALE

SS

MOSI

MISO

OC0

OC1A

OC1B

OC2/OC1C

PC3/A11

PA7/AD7

PWR:

1

2

Pin # Signal Name

PWR

GND

You should apply 9 VAC or +12VDC on pin 1.

MECHANICAL DIMENSIONS:

All measures are in mm.

AVAILABLE DEMO SOFTWARE:

Check for available demo software for AVR-MT128 on our website:

www.olimex.com/dev

.

ORDER CODE:

AVR-MT128

– assembled and tested (no kit, no soldering required)

How to order?

You can order to us directly or by any of our distributors.

Check our web www.olimex.com/dev for more info.

All boards produced by Olimex are ROHS compliant

Revision history:

REV.A

- created September 2008

Disclaimer:

© 2008 Olimex Ltd. All rights reserved. Olimex®, logo and combinations thereof, are registered trademarks of Olimex Ltd. Other terms and product names may be trademarks of others.

The information in this document is provided in connection with Olimex products. No license, express or implied or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Olimex products.

Neither the whole nor any part of the information contained in or the product described in this document may be adapted or reproduced in any material from except with the prior written permission of the copyright holder.

The product described in this document is subject to continuous development and improvements. All particulars of the product and its use contained in this document are given by OLIMEX in good faith. However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded.

This document is intended only to assist the reader in the use of the product. OLIMEX Ltd. shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any incorrect use of the product.

Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement