Ready Avr Manual v101 1485340

Download as pdf or txt
Download as pdf or txt
You are on page 1of 25

user's guide to

Ready
for AVR

box version
TO OUR VALUED CUSTOMERS

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

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.

Nebojsa Matic
General Manager

The Microchip, Atmel, NXP and CYPRESS name, logo and products names are trademarks of Microchip, Atmel, NXP and CYPRESS Inc. in the U.S.A and other countries.
Table of Contents
Ready for AVR board Introduction 4 6. USB-UART 18
System Specification 5 7. Port headers 19
Components6 8. General Purpose Area 20
1. Power supply 8 9. Integrating with the casing 21
6. External Oscillator 9 10. Dimensions 22
4. ATmega16 microcontroller 10
5. Programming the microcontroller 11
Programming with mikroBootloader 12
step 1 – Connecting 12
step 2 - Connecting 13
step 3 - Browsing for .hex file 13
step 4 - Browsing for .hex file 14
step 5 - uploading .hex file 14
step 6 - Finish upload 15
Programing with AVRProg™ programmer 16

Page 3
n
Ready for AVR board Introductio

Ready for AVR Board is the best


solution for fast and simple development
of various microcontroller applications. It
comes with ATmega16 that is placed in
DIP40B socket. It is preprogrammed with
UART bootloader, so you don’t have to
use external programmers to program the
microcontroller. Board contains double-
row IDC10 headers for all available
microcontroller ports. It also contains
USB-UART module, prototyping area and
a power supply circuit. Board is specially
designed to fit into special white plastic
casing so you can turn your cool AVR
project into a final product.

Page 4
System Specification
power supply
Via AC/DC connector 7-23V AC
or 9-32V DC

power consumption
50mA in idle state
(when on-board modules are off)

board dimensions
14 x 8,2cm (5.51 x 3.23 inch)

weight
~69g (0.15 lbs)

Page 5
Components
AVRProg™ connector 01
Power LED indicator 02
8MHz external oscillator 03
DIP40A socket 04
UART comm. LEDs (RX, TX) 05
FTDI chip 06
USB UART connector 07
Power connector 08
Power screw terminals 09
IDC10 PORT header 10
Power regulator 11
Reset button 12
ATmega16 microcontroller 13
12
Prototyping area 14
Mounting holes 15

Page 6
01 02 03 04 05 06 07 08

09

15 14 13 12 11 10

Page 7
1. Power supply CN7

Ready for AVR board can be powered in two ways: over USB 7-23V AC
9-32V DC
connection, or using external power sources, such as adapters, POWP POWN

or laboratory power supplys. USB connection can provide up to CN8


Figure 1-1:
AC/DC adapter power
500mA of current, which is more than enough for evey on-board
supply connected
module and for operation of the microcontroller. If you decide
to use external power supply, you can choose bewteen AC/DC
adapter connector or power screw terminals . Voltage and current
values must be within 7-23V AC or 9-32V DC ranges. Power LED
D2 D3
will indicate the presence of current. Use only one method for
powering the board. 1N4007 1N4007

D4 D5

U4 Figure 1-2:
1N4007 1N4007
1
SWC DRVC
8 laboratory power supply
VCC
L1
2 7
R10 connected to screw terminals
VCC SWE IPK 0.22
220uH
R2 3 6 VCC-EXT
CT VIN
2K2 E5 D6
C9 4 5 VCC
LD1A 330uF/6V MBRS140T3 GND CMPR
220pF

MC34063A R7
POWER
3K
E4
330uF/35V
R8
1K
Figure 1-4: Figure 1-3:
Schematics of external power supply USB connected
Page 8
6. External Oscillator
R12
VCC VCC AVCC
U1 U2
1M
PB0 1 40 PB0 1 40 PA0 VCC AVCC
U3C U3E PB1 2 39 PA0 PB1 2 39 PA1 FP2
OSC 6 5 10 11 PB2 3 38 PA1 PB2 3 38 PA2
PB3 4 37 PA2 PB3 4 37 PA3 FERRITE
VCC VCC
74HC04 R13 74HC04 PB4 5 36 PA3 PB4 5 36 PA4 C11
1K PB5-MOSI 6 35 PA4 PB5-MOSI 6 35 PA5 100nF
U3A C2
2 1 C1 X1 8 MHz PB6-MISO 7 34 PA5 PB6-MISO 7 34 PA6
100nF PB7-SCK 8 33 PA6 VCC PB7-SCK 8 33 PA7
100nF
74HC04 mRST# 9 32 PA7 mRST# 9 32 AREF
PD0 10 31 PE0 C10 10 31
C4 C3 PD1 11 30 PE1 100nF 11 30 C13
U3B
4 3 22pF 22pF PD2 12 29 PE2 12 29 PC7 100nF
PD3 13 28 PC7 OSC 13 28 PC6
74HC04 PD4 14 27 PC6 PD0 14 27 PC5
PD5 15 26 PC5 PD1 15 26 PC4
U3D PD6 16 25 PC4 PD2 16 25 PC3
8 9 PD7 17 24 PC3 PD3 17 24 PC2
18 23 PC2 PD4 18 23 PC1
74HC04 OSC 19 22 PC1 PD5 19 22 PC0
20 21 PC0 PD6 20 21 PD7
U3F
12 13 DIP40A DIP40B

74HC04
Figure 6-1:
DATA BUS External Oscillator schematics
Figure 6-2:
External clock module

Board contains 8MHz external crystal oscillator


which delivers the clock necessary for the
operation of microcontroller. Raw clock signal from
the crystal is sinusoidal, so additional 74HC04 is
provided which filters it to create square signal
necessary for stable operation.

Page 9
4. ATmega16 microcontroller PORTA
DRIVER
BUFFE
S PORTC
DRIVER
RS S
BUFFE
RS
PORTA
Ready for AVR development system comes with the ATmega16 microcontroller. DIGITA
L PORTC
INTERF DIGITA
ACE L
Having lots of MIPS power, flash and RAM, and rich set inegrated modules, ATmega16 INTERF
ACE
is ideal choice for both beginners and professionals.
ADC
TWI
FLASH

SRAM TIME
COUNTRS
ERS

Key microcontroller features


INSTRU
CTION
DECOD
ER

US
WATCH
DO
TIMER G

DATA B
- Up to 16 MIPS Operation; AVR
- 8-bit architecture; CPU INTERU
P
UNIT T
– 16 KB of Flash program memory; COMP.
INTERF EEPRO
ACE M
- 1 KB of internal SRAM memory;
SPI
- 512 Bytes of EEPROM USART

- 32 I/O pins; PORTB


DIGITA PORTD
- UART, SPI, ADC; etc. INTERF
L
DIGITA
ACE L
INTERF
- JTAG DEBUGING interface ACE
PORTB
DRIVER PORTD
S
BUFFE DRIVER
RS S
BUFFE
RS

Page 10
ller
5. Programming the microcontro

The microcontroller can be programmed in two ways:


Figure 5-1: ATmega16

01 Over USB-UART mikroBootloader


02 Using JTAG external programmer

Page 11
ad er
Programming with mikroBootlo
You can program the microcontroller with bootloader which is
step 1 – Connecting
preprogrammed into the device by default. To transfer .hex file 01 Start mikroBootloader
from a PC to MCU you need bootloader software (mikroBootloader 02 Click the Change Settings button.
USB HID) which can be downloaded from:
03 In Setup window, select appropriate COM port. Click OK.
http://www.mikroe.com/eng/downloads/get/1652/
mikrobootloader_atmega16_v100.zip

After software is downloaded unzip it to desired location and


start mikroBootloader USB HID software.
02

03

Figure 5-2: UART mikroBootloader

note This version of mikroBootloader is for AVR


microcontrollers only.
step 2 - Connecting step 3 - Browsing for .hex file

02

01

Figure 5-3: Browse for HEX Figure 5-4: Browse for HEX

01 Press reset button on Ready board. 01 Click on Browse for HEX button.
02 Click Connect button within 5s, otherwise existing
microcontroller program will execute.
step 4 - Browsing for .hex file step 5 - uploading .hex file

01

01

02
Figure 5-5: Locating and Selecting .hex file Figure 5-6: Begin uploading

01 Select .hex file via open dialog window. 01 To start .hex file uploading click on Begin uploading
button.
02 Click on Open button.
step 6 - Finish upload

01 01

Figure 5-7: Progress bar Figure 5-8: Browse for HEX

01 You can monitor .hex file uploading via progress bar. 01 Click OK button.

02 Press Reset button on Ready board and wait for 5 seconds.


Your program will execute automaticly.
Programing with AVRProg™ Ready for AVR board contains IDC10 male

programmer
headers for connecting AVRprog™ external
USB 2.0 programmer. When connecting,
make sure to orient the programmer
connector so that first pins on both male
and female header connectors align. Correct
connector placement is shown on Figure
5-9.

Figure 5-9:
AVRProg™ connected to Ready for AVR board

Page 16
VCC VCC VCC AVCC
U1 U2
CN6
PB5-MOSI PB0 1 40 PB0 1 40 PA0
CONNECTOR

PB1 2 39 PA0 PB1 2 39 PA1


AVRprog

VCC AVCC
mRST# PB2 3 38 PA1 PB2 3 38 PA2
FP2
PB7-SCK PB3 4 37 PA2 PB3 4 37 PA3
PB6-MISO PB4 5 36 PA3 PB4 5 36 PA4
FERRITE
PB5-MOSI 6 35 PA4 PB5-MOSI 6 35 PA5
C11
PB6-MISO 7 34 PA5 PB6-MISO 7 34 PA6
100nF
PB7-SCK 8 33 PA6 PB7-SCK 8 33 PA7
mRST# 9 32 PA7 mRST# 9 32 AREF
PD0 10 31 PE0 10 31
PD1 11 30 PE1 11 30
PD2 12 29 PE2 12 29 PC7
VCC VCC
PD3 13 28 PC7 OSC 13 28 PC6
PD4 14 27 PC6 PD0 14 27 PC5
C2 C10 C13
PD5 15 26 PC5 PD1 15 26 PC4
100nF 100nF 100nF
PD6 16 25 PC4 PD2 16 25 PC3
PD7 17 24 PC3 PD3 17 24 PC2
18 23 PC2 PD4 18 23 PC1
OSC 19 22 PC1 PD5 19 22 PC0
20 21 PC0 PD6 20 21 PD7

DIP40A DIP40B

Figure 5-10: AVRprog™ connector schematics

Page 17
6. USB-UART
Fast on-board FTDI chip allows you to communicate with a PC or other UART devices using USB-UART
connection. Female USB Type-B connector (CN9) is used for connecting the USB cable. RX and TX
LEDs will indicate communication status. Before connecting the board with the PC, make sure to
have the appropriate FTDI drivers installed on your operating system. Drivers can be found
at following URL: http://www.ftdichip.com/Drivers/VCP.htm

VCC-FTDI VCC VCC-FTDI

C5 C6 E3
100nF 100nF 10uF
VCC VCC VCC
J2

R3 R4
Figure 6-1:
U5
2K2 2K2
USB-UART module
2
1

PD0 RX-MCU 1 28
TXD OSCO
2 27

schematics
DTR# OSCI RX TX
3 26
RTS# TEST
4 25
VCCIO AGND LD2A LD3B
PD1 TX-MCU 5 24 VCC
RXD NC
6 23 RX-LED
RI# CBUS0 D1
2
1

7 22 TX-LED
GND CBUS1 MBRS140T3 CN9
8 21
J3 9
NC FT232RL GND
20 VCC-FTDI
FP1
VCC-USB VCC 1
DSR# VCC
10 19
DCD# RESET# FERRITE
DATA BUS

11 18 USBDM D- 2
CTS# GND
12 17 C7
CBUS4 3V3OUT
13 16 USBDM 100nF USBDP D+ 3
CBUS2 USBDM
14 15 USBDP
CBUS3 USBDP
GND 4
C8
100nF
USB B

Figure 6-2:
USB cable connected

Page 18
7. Port headers DATA BUS
CN1 CN3
Each microcontroller pin is available for futher connections through on-board PA0 PA1 PC0 PC1
PA2 PA3 PC2 PC3
connection headers. Pins are clearly marked which makes them easier to PA4 PA5 PC4 PC5
interface. IDC10 headers are compatible with over 70 additional boards from PA6 PA7 PC6 PC7

VCC VCC
mikroElektronika, so you can easily add new features to the base Ready for
AVR board.
CN2 CN4
PB0 PB1 PD0 PD1
PB2 PB3 PD2 PD3
PB4 PB5 PD4 PD5
PB6 PB7 PD6 PD7

VCC VCC

R6 100
PB5-MOSI PB5 CN5
PE0 PE1
R9 100 PE2
PB6-MISO PB6

R11 100
PB7-SCK PB7
VCC

Figure 7-1:
Port headers
connection schematics

Figure 7-2:
Accessory board connected

Page 19
8. General Purpose Area
General Purpose Area
allows you to expand your
Ready for AVR board with
additional functionalities,
by placing your additional
components into available
soldering pads. Pads are
arranged in standard 100mil
distance form factor. There
are 12 connected lines on
both halfs of the breadboard
area, and each line consists
of 4 soldering pads. 8x8
matrix of unconnected sol­
de­ring pads are located in
the lower section. VCC and
GND lines are also availble
on the ending sides of the
entire breadboard area.
Figure 8-1:
General purpose area

Page 20
9. Integrating with the casing
Ready for AVR can easily be integrated into the specialized white plastic casing. This
feature is very conveinent for turning the board into a final product. The white plastic
casing contains inner and outter screw holes. Inner are used for attaching the board to
the casing, and outter are used for connecting the top part of the casing, and enclosing
the board. Casing comes with holes for USB and power adapter connector, but you can
cosutmize it by driling and cutting holes in specific areas, depending on the target
application. Casing does not provide
hydro insulation.

Figure 9-1: Integrating


the board with the casing
Figure 9-2:
Board assembled
with the casing
to form a final
poduct

Page 21
10. Dimensions 140.06 mm (5.51”)

124.19 mm (4.89”)

5mm (0.2”)
12.2mm 9.1mm 17.5mm
(0.48”) (0.36”) (0.69”)

16.0mm
(0.63”)
82.09 mm (3.23”)

66.28 mm (2.61”)

48.00 mm (1.89”)

46.7mm (1.84”)
Page 22
DISCLAIMER

All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any
other copyright material. No part of this manual, including product and software described herein, may be reproduced, stored in a retrieval system, translated or
transmitted in any form or by any means, without the prior written permission of MikroElektronika. The manual PDF edition can be printed for private or local
use, but not for distribution. Any modification of this manual is prohibited.
MikroElektronika provides this manual ‘as is’ without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties or
conditions of merchantability or fitness for a particular purpose.
MikroElektronika shall assume no responsibility or liability for any errors, omissions and inaccuracies that may appear in this manual. In no event shall Mik-
roElektronika, its directors, officers, employees or distributors be liable for any indirect, specific, incidental or consequential damages (including damages for
loss of business profits and business information, business interruption or any other pecuniary loss) arising out of the use of this manual or product, even if
MikroElektronika has been advised of the possibility of such damages. MikroElektronika reserves the right to change information contained in this manual at
any time without prior notice, if necessary.

HIGH RISK ACTIVITIES

The products of MikroElektronika are not fault – tolerant nor designed, manufactured or intended for use or resale as on – line control equipment in hazardous
environments requiring fail – safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, di-
rect life support machines or weapons systems in which the failure of Software could lead directly to death, personal injury or severe physical or environmental
damage (‘High Risk Activities’). MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities.

TRADEMARKS

The MikroElektronika name and logo, the MikroElektronika logo, mikroC, mikroC PRO, mikroBasic, mikroBasic PRO, mikroPascal, mikroPascal PRO, AVRflash,
PICflash, dsPICprog, 18FJprog, PSOCprog, AVRprog, 8051prog, ARMflash, EasyPIC5, EasyPIC6, BigPIC5, BigPIC6, dsPIC PRO4, Easy8051B, EasyARM, EasyAVR5,
EasyAVR6, BigAVR2, EasydsPIC4A, EasyPSoC4, EasyVR Stamp LV18FJ, LV24-33A, LV32MX, PIC32MX4 MultiMedia Board, PICPLC16, PICPLC8 PICPLC4,
SmartGSM/GPRS, UNI-DS are trademarks of Mikroelektronika. All other trademarks mentioned herein are property of their respective companies.
All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies, and are
only used for identification or explanation and to the owners’ benefit, with no intent to infringe.

© Mikroelektronika™, 2011, All Rights Reserved.


Ready
for AVR

box version

If you want to learn more about our products, please visit our website at www.mikroe.com
If you are experiencing some problems with any of our products or just need additional
information, please place your ticket at www.mikroe.com/en/support
If you have any questions, comments or business proposals,
do not hesitate to contact us at office@mikroe.com
Mouser Electronics

Authorized Distributor

Click to View Pricing, Inventory, Delivery & Lifecycle Information:

Mikroe:
MIKROE-977

You might also like