E:\英文手册原稿\easyAVR128 User Manual

E:\英文手册原稿\easyAVR128 User Manual

easyAVR128™ Development Board Users Manual

To our valued customers

I want to express my thanks to you for being interested in our products and for having confidence in LogiFind

International CO,. Ltd..The primary aim of our company is to design and produce high quality electronic products and to constantly improve the performance thereof in order to better suit your needs.

Please share your thoughts and feelings regarding our operation so that we can serve you better in the future. I thank you for your continued support and patronage.

Your Dream is our Destination!

The Microchip, TI,Freescale,ST,Atmel,Silicon and CYPRESS name, logo and products names are trademarks of

Microchip, TI,Freescale,ST,Atmel,Silicon and CYPRESS Inc. in the U.S.A. and other countries.

Sincerely,

Owner and General Manager of LogiFind International CO,. Ltd.

www.100mhz.com www.LogiFind.com

1

easyAVR128™ Development Board Users Manual

CONTENTS

Ⅰ.What is easyAVR128™?........................................................................................................................................ 3

Ⅱ.Appliance................................................................................................................................................................ 3

Ⅲ.Power supply...........................................................................................................................................................3

Ⅳ.Hardwre Connection description............................................................................................................................. 3

Ⅴ.What’s on board...................................................................................................................................................... 4

Ⅵ.Bootloader programming........................................................................................................................................4

Ⅷ.Frequently Asked Questions...............................................................................................................................7

1).I try to power the easyAVR128, but the board does not power up, what’s wrong?........................................7

2) How is power supplied to the easyAVR128?.................................................................................................. 8

3) The Mega128A is no longer accessible via programmer/debugger, is something wrong with the device?....8

4) I have uploaded the Mega128A sample code, but It doesn’t seem to be working, what’s wrong?.................8

5) I loaded the Mega128A sample code using an external, after that,i found the bootloader doesn’t work any more...................................................................................................................................................................... 8

IX.Schematic............................................................................................................................................................... 9

X.Contact Us............................................................................................................................................................... 9

Disclaimer................................................................................................................................................................... 10 www.100mhz.com www.LogiFind.com

2

easyAVR128™ Development Board Users Manual

Ⅰ.What is easyAVR128™?

The easyAVR128 Board is a complete solution for fast and simple development of embedded applications by using a new Atmel® ATmega128A device connected to 7.3728Mhz oscillator.It has a bootloader inside the

ATmega128A,and it allows self-programming very easily without an external programmer or debugger.

Key features:

- Bootloader program loaded into the ATmega128A microcontroller;

- CP2102 USB to UART converter for RS232 communication and bootloader programming.

- 5V and 3.3V power supply;

- RS232 Circuit with DB9 connector;

- 5V,3.3V and GND PINOUTs for DIY;

- 8 user LEDs;

- System Reset Key;

- DS1302 Real Time Clock;

- 24C02 eeprom;

- Standard ISP6 connector;

- Standard ISP10 connector;

- Standard JTAG connector;

- 8 user KEYs;

- Stepmotor with driver circuit;

- Buzzer with driver circuit;

- Standard LCD1602 socket;

- Standard LCD12864 socket;

- ADC0 and ADC1 input;

- DS18B20 Temp sensor socket;

- INT0 and INT1 input;

- 8 digit 7-segment LED display;

- All Ios are taken out;

Ⅱ.Appliance

The easyAVR128 Board represents a development system which can be used as a stand-alone device. it has many users among students, hobbyists, enthusiasts and professionals. We Due to its preloaded bootloader program and

8-bit MCU it is ideal for low-cost experimenting and final product design.

Ⅲ.Power supply

For connection with a power supply source the easyAVR128 Board uses a Jack EX-PWR. The power supply voltage level can vary from +7-10V DC. When programming the MCU via bootloader,it is necessary to connect the board to a PC via a USB cable and the external power supply is no need during this time.

.Hardwre Connection description

1. For easy access to the pins of the MCU supplied on the easyAVR128 Board you can use pads. Every pad is clearly marked with a pin name to which it is connected to.

2. To connect the easyAVR128 Board to a PC it is necessary to connect the USB port on the PC to a USB connector USB/POWER using a USB cable. When connection is established the PC will communicate with www.100mhz.com www.LogiFind.com

3

easyAVR128™ Development Board Users Manual

CP2102 chip which is connected to MCU pins PD2,PD3,PE0 and PE1. These pins are used for serial UART0 or

UART1 communication.We set UART1 as the bootloader MODE channel.In other word,you must connect

UART1 jumpers and disconnect UART0 jumpers when you are using bootloader to upload hex file into your target device mega128A.

4.

The ISP6 and ISP10 connector is used for programming.

5.

The JTAG connector is used for programming/debugging via the JTAG interface.

Ⅴ.What’s on board

Ⅵ.Bootloader programming

In order to program the MCU via bootloader it is necessary to place the proper jumpers like the following figure.

By doing so connection between the cp2102 chip and the MCU will be enabled. If you want to use MCU pins which are used for programming (PD2 and PD3) as I/O you should remove the related jumpers.

Follow the steps below for program installation and MCU programming.

www.100mhz.com www.LogiFind.com

4

easyAVR128™ Development Board Users Manual

Step1.Instal CP2102 driver

Before you connect your easyAVR128 board to a computer running Microsoft Windows, you should install its drivers:

Download the CP2102 drivers for Windows from here: http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx

Any details,pls see “Silicon CP2102 SETUP GUIDE.pdf” we provided in CD/DVD rom.

Step2.Run “AVRUBD” software

Step3.Go to the Device Manager to see which com port is created

Step4. Com Port Setting

Enter Option/Comport to set the correct Com Port,and click “OK”.

www.100mhz.com www.LogiFind.com

5

easyAVR128™ Development Board Users Manual

Step5. Load HEX file

Enter File/Load to load HEX file into the AVRUBD software,and click “Open”.

Step6. Start to Program

Press RESET key to force the AVR device into the bootloader MODE,and then you will see the BOOT led blinking with about 3Hz frequency.At this time,the AVR device will stay in bootloader MODE within 5s.During

this time,you can enter Operation/Download or press F9 key(PC) or click to start to download HEX file.

After downloading is finished,the application program will be running.If you want to upload the new HEX file, you have to press RESET key again to enter bootloader MODE.

www.100mhz.com www.LogiFind.com

6

easyAVR128™ Development Board Users Manual

PS:Sometimes an unknown error may occur when programming is finished,but it dosen’t affect the normal running of the program.

.Fuse Settings of Mega128A

The following fuse setting in AVRStudio has been made by factory,which ensure the bootloader can run properly.

.Frequently Asked Questions

1).I try to power the easyAVR128, but the board does not power up,

what’s wrong?

Make sure that the POWER LED has turned on. If the LED is not on, check to see that the external power supply(DC7-10V) or the USB power is properly connected, check to see that the J2 is properly connected .It is www.100mhz.com www.LogiFind.com

7

easyAVR128™ Development Board Users Manual

necessary to note that the external power supply(DC7-10V) and the USB power can not be connected at the same time.According to the designer’s experiences,the FUSE on board is also an important factor.

2) How is power supplied to the

easyAVR128

?

Two supply options exist: USB power Cables and external 7—10VDC. You are only allowed to choose one of them.

3) The Mega128A is no longer accessible via programmer/debugger, is something wrong with the device?

- Verify that the target device is powered properly.

- If the target is powered locally, verify your programmer/debugger is connected properly.

- If the programmer/debugger is connected properly, the Mega128A is possibly "dead". Well, it's not really dead, it's just that it can't be reprogrammed until the Mega128A is unlocked (for detailed method of unlocking an AVR device, please search for solution on-line).

4) I have uploaded the Mega128A sample code, but It doesn’t seem to be working, what’s wrong?

- Make sure the relational jumper is correctly connected.

- If the relational jumper is correctly connected, pls check whether the device mode had been changed to

“mega103”mode,In “mega103”mode, the mega128A features are not fully reflected.

-If you are using PD2 and PD3 in you source code,close the UART1(add “UCSR1B=0”in “main” of your source code).

5) I loaded the Mega128A sample code using an external, after that,i found the bootloader doesn’t work any more.

The bootloader is erased after you upload hex file to the mega128A using external programmer.So you have to re-upload bootloader by yourself if you want to use bootloader self-programming function.

www.100mhz.com www.LogiFind.com

8

easyAVR128™ Development Board Users Manual

IX

.Schematic

D

B

A

C

UART

8

3

7

2

6

1

5

9

4

1 2

VCC

C8

C10

C9

6

2

5

4

3

1

C25

105

8

7

RS232

R2 IN

T2 OUT

V-

V+

C2-

C2+

C1-

C1+

R2 OUT

T2 IN

T1 IN

R1 OUT

R1 IN

T1 OUT

GND

VCC

9

10

11

12

13

14

15

16

VCC

EasyAVR128

VCC

KEY1

KEY2

KEY3

KEY4

KEY5

KEY6

KEY7

KEY8

R7

1K

R8

1K

R9

1K

R10

1K

R11

1K

R12

1K

R13

1K

R14

1K

VCC

VCC

3

8

4

1

2

C16

20P

C17

1

2

Y2

3

4

A0

A1

A2

VCC

GND

24CXX

DS1302

WP

SCL

SDA

VCC2

X1

X2

GND

20P

7

6

5

VCC1

SLCK

I/O

RST

8

7

6

5

INT0

INT1

1

VCC

R22

R23

R24

R18

R19

R20

R21

R25

R28

10K

R29

10K

RESET

D1

L1

L2

L3

L4

L5

L6

L7

L8

VCC

VCC

VCC

J5

J8

J6

VCC

J7

J11

R15

C14 104

104

SW2

ON

ON

ON

ON

LEDs

PB0

PB1

PB2

PB3

PB4

PB5

PB6

PB7

PE6

PE7

PB0

PB1

PB2

PB3

PEN

PE0

PE1

PE2

PE3

PE4

PE5

PB4

PB5

PB6

BUTTONs

EEPROM

PG4

PD0

PD1

C15

SW6

104

VCC

ON

ON

ON

PC0

PC1

PC6

SW10

ON

ON

RTC

INT SOURCE

10K

VCC

2

By Jeff

J3

WWW.LogiFind.COM

SW4

ON

ON

ON

ON

ON

ON

ON

ON

SW7

ON

ON

ON

ON

ON

ON

ON

ON

SW5

ON

ON

ON

PC0

PC1

PC2

PC3

PC4

PC5

PC6

PC7

PD0

PD1

C12

RESET

VCC

VCC

L1

C22 104

8

9

10

11

12

13

14

15

16

5

6

7

1

2

3

4

3

RS232

PE0

PD2

PE1

PD3

4 5 6 7

PB2

PB3

PB4

PB5

PB6

PE4

PE5

PE6

PE7

PB0

PB1

PEN

PE0

PE1

PE2

PE3

5V

LCD12864

10

11

12

7

8

9

4

5

6

1

2

3

13

14

15

16

17

18

19

20

12

13

14

15

16

17

18

19

20

6

7

8

9

10

11

3

4

5

1

2

PA5

PA6

PA7

PD0

PD1

PD2

PD3

PD4

PD5

PD6

PD7

5V

R26

J3

5V

10K

5V

LCD12864

5V

LCD1602

10

11

8

9

6

7

12

13

14

15

16

3

4

5

1

2

C19

11

12

13

14

15

16

7

8

5

6

1

2

3

4

9

10

PA5

PA6

PA7

PD0

PD1

PD2

PD3

PD4

PD5

PD6

PD7

5V

5V

104

VCC

LCD1602

MICROCONTROLLER

C23

104

VCC

POWER

GND

VCC

2

1 D1

5V

VCC

3.3V

J2

3.3V

C4

104

C5

+

2

10u

1

Vin

L7805

+5V

3

C6

104

LM1117-3.3

VOUT VIN

3

POWER&USB-RS232

C2

104

C7

+

470u

OF F

ON

C3

+

5V

10u

VCC

R2

1K

ATMEGA128/64

PA3

PA4

PA5

PA6

PA7

PG2

PC7

PC6

PC5

PC4

PC3

PC2

PC1

PC0

PG1

PG0

48

47

46

45

44

43

42

41

40

39

38

37

36

35

34

33

C24

20P

Y1

C25

20P

R38

1K

PA3

PA4

PA5

PA6

PC4

PC3

PC2

PC1

PC0

PG1

PG0

PA7

PG2

PC7

PC6

PC5

BOOT

5V

1

3

5

3.3V

1

3

5

1

3

5

1

3

5

5V

2

4

6

2

4

6

3.3V

1

3

5

2

4

6

C13

104

5V

2

4

6

GND

1

3

5

2

4

6

2

4

6

C26

104

3.3V

POWER INTERFACE

PF4

PF6

PF5

PF7

1

3

5

7

9

JTAG

1

3

5

7

9

8

10

2

4

6

C18

BEZZER

+

VCC

D

C

B

A

VCC

VCC

5

4

3

2

1

VCC

9

10

11

12

13

14

15

16

VCC

OUT7

OUT6

OUT5

OUT4

OUT3

OUT2

OUT1

GND

IN7

IN6

IN5

IN4

IN3

IN2

IN1

ULN2003A

8

7

6

5

4

3

2

1

ADC1

VCC

ADC0

DS18B20

VCC

DQ

GND

3

2

1

2

4

6

8

10

USB/POWER

D+

D-

C1

104

R1

5V

1K

VCC

FUSE

5

6

7

1

2

3

4

DCD

RI

GND

D+

D-

VDD

REGIN

LED0

R27 4.7K

J9

J10

PE0

RST

PB1

PE1

1

3

5

7

9

ISP10

1

3

5

7

9

8

10

2

4

6

2

4

6

8

10

VCC

7-SEGMENT

VCC

Q8

8550

3

Y7

8550

VCC

Q7

Y6

Q6

8550

VCC

Y5

SEG2

Q5

8550

VCC

4

Y4

VCC

Q4

8550

Y3

Q3

8550

VCC

5

Y2

8550

VCC

Q2

SEG1

Y1

VCC

Q1

8550

Y0

Y0

Y1

Y2

Y3

Y4

Y5

Y6

Y7

R30

R31

R32

R33

R34

R35

R36

R37

6

F

G

DP

A

B

C

D

E

15

1

2

3

4

5

6

7

15

14

13

12

11

10

9

7

Y0

Y1

Y2

Y3

Y4

Y5

Y6

Y7

QA

QB

QC

QD

QE

QF

QG

GH

74HC595

SRCLK

RCLK

SER

OE

GND

SRCLK

VCC

QH

74HC138

G1

C

B

A

VCC

G2A

G2B

GND

11

12

14

13

8

10

16

9

VCC

4

5

8

6

3

2

1

16

VCC

Title

Size

A3

Date:

File:

Number

16-Jan-2006

E:\100MHZ\100MHZ.Ddb

7

J12

CP2102

NC

NC

NC

NC

NC

NC

NC

21

20

19

18

17

16

15

STEPMOTOR/BUZZER

SW8

C20 104

VCC

SW9

ON

ON

ON

PF0

PF1

PC7

ON

ON

ON

ON

ON

ON

ON

SW11

Sheet of

Drawn By:

C21

104

ON

ON

ON

ON

ON

8

Revision

8

VCC

PA1

PA2

PA3

PA4

PA5

PA6

PA7

J1

PC0

PC1

PC2

PC3

PG3

D

C

DS18B20/ADC

PE1

PB1

RST

1

3

5

ISP6

1

3

5

2

4

6

2

4

6

VCC

PE0

JTAG&ISP

B

A

X

.Contact Us

Official Website: www.100MHz.com

www.LogiFind.com

ebay Store 1: http://stores.ebay.com/logifind

ebay Store 2: http://stores.ebay.com/kitfind

E-mail: [email protected]

[email protected]

Skype: love100mhz www.100mhz.com www.LogiFind.com

9

easyAVR128™ Development Board Users Manual

Disclaimer

© 2013 LogiFind International CO,. Ltd. All rights reserved. LogiFind®, logo and combinations thereof, are registered trademarks of LogiFind International CO,. Ltd. Other terms and product names may be trademarks of others.

The information in this document is provided in connection with LogiFind 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 LogiFind 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 LogiFind 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. LogiFind

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

www.100mhz.com www.LogiFind.com

10

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