You are on page 1of 10

MR-8535 User Manual

CONTENTS
PART 1 : MR-8535
1. Introduction 2. Features

PART 2 : CPU Board


1. Placement Diagram (Silkscreen) 2. Circuit Diagram 3. Parts List

PART 3 : Software Tools


1. AVR Development Program Installation 2. How to use Microrobot AVR GCC 3. How to use AVR ISP (In-System Programming)

PART 4 : Compile and Download

PART 1 : MR-8535
1. Introduction
MR-8535 is a small pre-assembled CPU board, which has an ISP(In-System Programming) port, reset button, 8 MHz X-tal, and 32 I/O port pins. The MR-8535 uses an ATmega8535L(Atmel AVR series) CPU chip as a controller. The ATmega8535L has 8K bytes In-System Programmable Flash memory, 512 bytes SRAM, 512 bytes EEPROM and many other peripherals. The user can download a program to the board without a ROM Writer using the ISP function. A free C-compiler (Microrobot AVR GCC) is provided.

2. Features
ATmega8535L (Atmel AVR series, 8 MHz(8 MIPS)) 8Kbyte ISP flash, 512 bytes SRAM, 512 bytes EEPROM, three Timers, ADC 8ch, UART, WDT, POR, BOD, four PWM Channels ISP port SPI Serial Interface for In-System Programming ISP download indicating LED 32 I/O port pins Reset button Free Windows C compiler(Microrobot AVR GCC) ISP downloader(Optional)

PART 2 : BOARD
1. Placement Diagram(Silkscreen)

Fig 1.1 MR-8535 CPU board silkscreen

2. Circuit Diagram
U1 PA0(ADC0) PA1(ADC1) PA2(ADC2) PA3(ADC3) PA4(ADC4) PA5(ADC5) PA6(ADC6) PA7(ADC7) PB0(T0) PB1(T1) PB2(AIN0) PB3(AIN1) PB4(/SS) PB5(MOSI) PB6(MISO) PB7(SCK) 37 36 35 34 33 32 31 30 40 41 42 43 44 1 2 3 8 7 4 29 27 28 PA0(ADC0) PC0 PA1(ADC1) PC1 PA2(ADC2) PC2 PA3(ADC3) PC3 PA4(ADC4) PC4 PA5(ADC5) PC5 PA6(ADC6) PC6(TOSC1) PA7(ADC7) PC7(TOSC2) PB0(T0) PB1(T1) PB2(AIN0) PB3(AIN1) PB4(SS) PB5(MOSI) PB6(MISO) PB7(SCK) XTAL1 XTAL2 RESET AREF AVCC AGND ATmega8535L PD0(RXD) PD1(TXD) PD2(INT0) PD3(INT1) PD4(OC1B) PD5(OC1A) PD6(ICP) PD7(OC2) VCC VCC VCC GND GND GND 19 20 21 22 23 24 25 26 9 10 11 12 13 14 15 16 5 17 38 C4 6 18 39 104 PC0 PC1 PC2 PC3 PC4 PC5 PC6(TOSC1) PC7(TOSC2) PD0(RXD) PD1(TXD) PD2(INT0) PD3(INT1) PD4(OC1B) PD5(OC1A) PD6(ICP) PD7(OC2)

C1 30pF VCC X1 8MHz D1 D1N4148 R1 C2 30pF 10K /RESET SW1 Tack + C3 1uF VCC

VCC

VCC J1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 CON20 PA0(ADC0) PA1(ADC1) PA2(ADC2) PA3(ADC3) PA4(ADC4) PA5(ADC5) PA6(ADC6) PA7(ADC7) PB0(T0) PB1(T1) PB2(AIN0) PB3(AIN1) PB4(/SS) PB5(MOSI) PB6(MISO) PB7(SCK) /RESET 20 PC0 19 PC1 18 PC2 17 PC3 16 PC4 15 PC5 14 PC6(TOSC1) 13 PC7(TOSC2) 12 PD0(RXD) 11 PD1(TXD) 10 PD2(INT0) 9 PD3(INT1) 8 PD4(OC1B) 7 PD5(OC1A) 6 PD6(ICP) 5 PD7(OC2) 4 3 2 1 CON20 J2

VCC 1 LED1 LED R2 2 330 J3 PB5(MOSI) 10 8 /RESET 6 PB7(SCK) 4 PB6(MISO) 2 + + + + + + + + + + 9 7 5 3 1 VCC

CON10AP

VCC

900 mil

3. Parts List
NO 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Reference C1, C2 C3 C4 D1 LED1 J1, J2 J3 R1 R2 SW1 U1 X1 Parts name Capacitor Diode LED Connector Resistor S/W MCU X-TAL PCB Downloading Adapter Ribbon Cable Value 30pF 1uF/16V 104 D1N4148 RED 3 CON20 CON10AP 10K 330 Tack S/W(Small) ATmega8535L/TQFP 8MHz Qty. 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Remark Ceramic Condenser Electrolytic Condenser Monolithic Condenser DIP type 1Line Header(male) HIF3F/10PIN 1/4W DIP type 1/4W DIP type AVR Microcontroller ATS type Main PCB Option Option(1m)

Fig 2.1 Downloading Adapter

Fig 2.2 Ribbon cable

PART 3 : Software Tools


1. AVR Development Program Installation
AVR Development Tools
There are many different kinds of development tools for AVR microcontrollers. Atmel, the AVR CPU manufacturer, provides some AVR development tools free. Microrobot Co. Ltd. also provides a free Windows C-compiler.

Wavrasm : AVR assembler, Atmel. AVR Studio : AVR Emulator/Simulator, Atmel. Ponyprog2000 : ISP downloading program, Atmel. Microrobot AVR GCC : C-compiler, Microrobot.

System requirements for AVR development tools


l l l l Windows 9X/ME or NT/2000 Pentium-133 or higher At least 4 Mbytes of RAM CD-ROM Drive

AVR ISP installation:

Run setup.exe in the CD avr_isp folder. s

Microrobot AVR GCC installation


Refer to the Microrobot AVR GCC User Guide.pdffile in the CD MaroGcc0.9C folder. s

2. How to use Microrobot AVR GCC


Refer to the Microrobot AVR GCC User Guide.pdffile in the CD MaroGcc0.9C folder. s

3. How to use AVR ISP(In-System Programming)


Refer to the AVR ISP Manual for Microrobot AVR Products.pdffile.

PART 4 : Compile and Download


Compile the source file and download the executable file in the following order.

l l

Supply DC 5V to the J1 (or J2 #1 pin and GND to the #20 pin. s s) Connect the downloading adapter to the PC printer port. Then connect the downloading adapter and the CPU board by using the ribbon cable.

l l l

Run the Microrobot AVR GCC. Open your source file. Select Build Build Option General tab The Build Option window appears. . Select Intel hex as a Hex format, at90s8535as a microcontroller. Check Object fileand Rom file boxes in the Generation menu. Type the folder you want as an Output Directory and click on OK.

Select Build Build Option Compiler tab Click on the . Default button and select Size radio button in the Optimization box. Do not use Speedoptimization.

Select Build Build Option Linker tab Click on the . User Link script radio button and select C:\Program Files\Microrobot\Microrobot AVR GCC\Avr\lib\ldscripts\avr85xx.xand click on OK.

Press F7 or select Build Buildmenu to build. (The source-editing window you want to build must be selected before building it if there are more than two source-editing windows.)

If you see the following message: warning: asm operand1 probably doesn't match constraintsin the output message window, press F7 again.

l l l l

Create ROM file. Build complete!message appears in the output message window. Run the Ponyprog2000. Select Device AVR micro Atmega8535L . Refer to How to use PonyProg for Microrobot AVR Products(Eng).pdf for further instructions.

www.microrobot.com

You might also like