You have no items in your shopping cart.

Subtotal: 0.00

User Manual for ATMEGA Development Kit

Introduction

The AVR Advanced is a development board which demonstrates the capabilities of the 40-pin ATMEGA devices.

The AVR Advanced board can be used stand-alone board built with an in-circuit USB programmer. Sample programs are provided to demonstrate the unique features of the supported devices.



The AVR Advanced Board Kit comes with the following:

Note: If you are missing any part of the kit, please contact our support executive


AVR Advanced Development Board

The AVR Advanced Development Board has the following hardware features:


  • 40-pin ZIF socket.
  • +5V regulators for direct input from 9V, 500 mA AC/DC wall adapter
  • RS-232 socket and associated hardware for RS-232 interface.
  • ICSP Parallel Port Programmer with busy LED indication
  • Two 5 KΩ pot and one LM35 for devices with analog inputs.
  • Four push button switches for external interrupts and Reset.
  • Red power-on indicator LED.
  • Eight red LEDs connected to 10 Pin FRC.
  • A 16 MHz crystal oscillator.
  • Microchip 25C040 Serial SPI EEPROM.
  • Atmel AT24c04 Serial I2C EEPROM
  • Dallas DS1307 Serial I2C Real-time Clock
  • 16x2 Alphanumeric LCD display
  • Piezo buzzer.
  • Dallas DS1820 thermal sensor.
  • Four 7Segment multiplexed display
  • ULN2803 driver for unipolar Stepper motors
  • 4x4 matrix keypad
  • 8 way DIP switch for digital input with Pull/up Down Selection
  • Two 8 way Configuration DIP switch for multiple operation
  • PS2 Keyboard interface

AVR Advanced HARDWARE





SAMPLE DEVICES

One FLASH device is included. The device types may change, but will generally include ATMEGA 40-pin DIP devices.

SAMPLE PROGRAMS

The  AVR Advanced Kit  includes a CD-ROM with sample programs. These programs may be used with the included sample devices. For each type of device (ATMEGA8535, ATMEGA16), demo source code withcompiled Hex file is provided.

AVR Advanced Board LAYOUT





HARDWARE DETAILS

SOCKETS

40 Pin ZIF socket is provided for the processor. So the Microcontroller can be removed from the board easily. Mainly this socket is intended to use our development board as programmer to program other IC’s.

10 pin FRC box type connectors: This will be found in each section of AVR Advanced development board. A 10 pin FRC cable is used to make connection with the main board section. Any 8 bit port of microcontroller can be used for interconnection. Ports having less than 8 bits are used as control signals for various sections.





Pins 1-8 are Data Pins. Pin 9 is VDD and the Pin 10 is GND. All 10 Pin FRC connectors will follow the same rule.

Jumper Settings

JUMPER

SECTION

DESCRIPTION

J9

PS2

Two lines for CLK (CLK and Adjacent pin)

Two lines for DATA (1 and DATA)

J2

POWER

No need to put Jumpers

JP12

DIGITAL

INPUTS

Place a Jumper between GND and Middle for LOGIC LOW I/P

Place a Jumper between VCC and Middle for LOGIC HIGH I/P

JH1

DS1820

Both Pins are connected internally.

Connect any one port pin with these pins.

 


Config-I Switch

SW5: 8 way Multifunctional switch for peripherals


DIP SWITCH PIN

DESCRIPTION

LM35, POT1 and POT2

These pins are connected with CH0, CH1 and CH2 of microcontroller

Turn ON the required channel along with ADC of CONFIG-II for ADC.

TOSC1, TOSC2

External crystal 32.768Khz for AVR timers

BUZZ

This Pin connects Buzzer with PORTC.6

 


Config-II Switch

SW6: 8 way Multifunctional switch for supply select.


DIP SWITCH PIN

DESCRIPTION

NC

No connections

I2C

VCC for I2C EEPROM AT24c04

ADC

VCC for Analog inputs

RTC

VCC for DS1307 RTC

PROG

Enables Power supply for ISP programmer

SPI

VCC for SPI EEPROM MCP25c040

 


Power Supply

The external power can be AC or DC, with a voltage (9V, 1A output). The AVR board produces +5V using an LM7805 voltage regulator, which provides supply to the peripherals. Alternatively we can supply the power (+5V) from PC via USB cable.

Power supply is controlled through slide switch J2. Alternatively you can put jumper on Jumper J2


POWER SWITCH





External Supply Turned ON





USB Power Turned ON

 


INSTALLATION NOTES

Installing Codevisionavr Compiler

1.Open up the user CD comes with AVR Microcontroller Board. , Navigate to CodeVision Folder

2.Double Click Setup.exe and Choose English and Click → OK.





3.Click →Next





4.Select Destination Location: Click → Next. (Or browse to another directory as you wish).





5.Select Start Menu Folder: Click→ Next. (Change the name if you wish).





6.Ready to Install: Click→ Install





7.Click → Finish





Creating a New Project in Codevisionavr

1.Double Click the CodeVisionAVR icon from desktop

2. Select File → New.

3.Check Project and Click → OK.





4.Confirm: Click → No





5.File Name: Give your own Project Name and Click → Save.





6.Configure Project Wizard (Very Important while Creating Project)





6.1.If you already have a source code file, then Click → Add. Select the file and Click → open. Else just skip this step and proceed to step7.





7.Click C Compiler Tab: Select the Chip ATMEGA8535. Enter 16.000000 MHz in Clock Text box.





8.Click After Build Tab: Tick the Program the Chip check box. You can see the following window. From the window uncheck Preserve EEPROM or Press ‘r’. Click → OK.





9.Create New C file, write source code and add this file to project (step 6 and 6.1).

10.Now the Project will look like the following. Click → Compile the project. Here I added an existing LED.C file to the project





11.Proceed to 3.4. programmer settings.

Open an Existing Project

1.Double Click the CodeVisionAVR icon from desktop

2.Select File → Open

3.Navigate to the Existing project’s directory; select the project and Click → Open.





4.Ensure your device atmega8535 and clock 16Mhz is selected in Project → Configure → C compiler

5.Follow the settings for programmer.

Setting Up The Programmer for AVR Development Board

1.First attach the AVR Microcontroller Development Board with PC via Programmer Cable.

2.Connect the 9V AC/DC Adapter with Development Board or Give the supply via USB cable.

3.Turn CONFIG-II switch pin “PROG”.

4.Turn ON all the pins of ICSP DIP switch SW3.

5.Turn ON the Power.

6.Select Settings → Programmer





7.Select Kanda Systems STK200+/300 and LPT1. (Choose the port that you have connected the Kit with PC).

8.Click OK.





9.These settings are the default settings for all the examples provided with ATMEGA Board.

Possible Errors





Error 1: "Power supply on". If it does, follow the instructions below,


  • Ensure the CONFIG-II pin “PROG” is turned ON.
  • Ensure all the pins of ICSP DIP switch SW3 are turned ON.
  • Measure the voltage between VDD and GND pins of microcontroller. It should be ~5V

Error 2: "Settings | Programmer" error, If it does, follow the instructions below


  • Ensure you selected “Kanda Systems STK200+/300” in Settings? Programmer menu.
  • Ensure Printer Port is correctly configured. I.e. if you connected the programmer cable in LPT2 But you have chosen LPT1 in settings, the port should be changed from LPT1 to LPT2.

Error 3: CVAVR may throw "Verified Failed" error, due to the following

  • The AVR microcontroller is not properly placed in ZIF jacket.
  • Faulty microcontroller device, Replace it with new one.

If the error still retains check your windows firewall or antivirus software to allow CodeVisionAVR, and do the following

Check the programmer cable


LPT-DB25 Connector

Board Side Connector

5

1

6

2

7

3

9

4

10

5

18

6

 


E.g. LPT25’s pin 5 is connected with pin 1 of DB9 connector etc.

2. Replace the IC 74LS541 with 74HC541 or with new 74LS541.

EXAMPLE PROGRAMS AND CONNECTIONS

Seven Segment


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CONTROL LINES

 

 

 

Connect PORTB with N2 via FRC Cable.

 

 

CN2 is at Seven Segment Section

 

 

Digits will be incrementing

from 0 to 9999

Single

PORTC.2

Ten

PORTC.3

Hundred

PORTC.4

Thousand

PORTC.5

DATA LINES

A

PORTB.0

B

PORTB.1

C

PORTB.2

D

PORTB.3

E

PORTB.4

F

PORTB.5

G

PORTB.6

H

PORTB.7

 


I2C EEPROM


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CLK

PORTC.0

Turn ON I2C Pin of CONFIG-II switch SW6.

Connect Serial cable between USART

Section in the Board and PC.

Press RESET once

The string “World is mine!!!”

will be displayed in Hyper-

Terminal at 9600 baud.

DATA

PORTC.1

 


ADC


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CH0(LM35)

PORTA.0

Turn ON LM35, POT1 and POT2 pins of CONFIG-I SW5

 

Turn ON ADC pin of CONFIG-II switch SW6

Connect Serial cable between USART Section in the Board and PC.

 

Digital Values of all the Three channels will be displayed in HyperTerminal

Adjust POT1 or POT2 to see the changes

CH1(POT1)

PORTA.1

CH2(POT2)

PORTA.2

 


Digital Inputs

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

DIGITAL INPUT

Connect PORTB with JP14 (Digi-

tal Input) via FRC Cable

Connect PORTA with JP13 (LED

section) via FRC cable

Place a jumper between middle

and GND pin of JP12

Turn ON and OFF the DIP switch

SW24 pins to see the changes in

LED’s

LEDs are turned ON while the

DIP pins are turned OFF

LEDs will be turned OFF while

the DIP pins turned ON

INPUT.0

PORTB.0

INPUT.1

PORTB.1

INPUT.2

PORTB.2

INPUT.3

PORTB.3

INPUT.4

PORTB.4

INPUT.5

PORTB.5

INPUT.6

PORTB.6

INPUT.7

PORTB.7

 


DS1307


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CLK

PORTC.1

Turn ON RTC Pin of

CONFIG-II switch SW6.

Connect Serial cable between USART Section in the Board and PC.

 

Date and Time will be dis-

played in HyperTerminal.

 

Seconds will be incrementing.

DATA

PORTC.0

 


DS1820


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

DATA

PORTA.2

Connect Port pin PORTA.2 with JH1(anyone) of DS1820 section by jumper or bus

Connect Serial cable between USART Section in the Board and PC

 

Data array and Tempera-

ture values will be dis-

played in HyperTerminal

 


Interrupts


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

INT0

PORTD.2

Press INT0, INT1 and INT2 Push button switches SW2,SW3 and SW4

 

Connect Serial cable between USART Section in the Board and PC.

 

The Message “INTx Detected...” will be displayed.

In INTx, x is 0 or 1 or 2.

INT1

PORTD.3

INT2

PORTB.2

 


Keypad


HARDWARE PIN OUT

CONNECTION

OUTPUT

ROW1

PORTB.0

Connect PORTB with JP11 (Key-

pad) via FRC Cable

Connect Serial cable between

USART Section in the Board and

PC and open HyperTerminal

Press RESET once.

Press a Key (Keypad) and the

number will be displayed in

HyperTerminal

ROW2

PORTB.1

ROW3

PORTB.2

ROW4

PORTB.3

COL1

PORTB.4

COL2

PORTB.5

COL3

PORTB.6

COL4

PORTB.7

 


LCD


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CONTROL LINES

Connect PORTA with JP8 (LCD)

via FRC Cable

Press RESET once

Adjust the POT R14(CONTRAST)

Right or Left until the letters are

visible

The Strings “16x2 LCD

demo...” and "ATMEGA DEV

BOARD" will be displayed on

LCD.

RS

PORTC.2

RW

PORTC.3

EN

PORTC.4

DATA LINES

D0

PORTA.0

D1

PORTA.1

D2

PORTA.2

D3

PORTA.3

D4

PORTA.4

D5

PORTA.5

D6

PORTA.6

D7

PORTA.7

 


LED


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

LED.0

PORTx.0

Connect Any one PORT from PORTA, PORTB, PORTC, PORTD with JP13 (LED Section) via FRC cable

 

LED’s will be Turned ON and OFF at 500ms interval.

LED.1

PORTx.1

LED.2

PORTx.2

LED.3

PORTx.3

LED.4

PORTx.4

LED.5

PORTx.5

LED.6

PORTx.6

LED.7

PORTx.7

 


PS2


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CLK

PORTB.1

Connect the CLK and DATA pin of J9 with PORTB.1 and PORTB.0 respectively

 

Connect a PS2 keyboard with J10-PS2 connector

Connect Serial cable between USART Section on the Board and PC.

 

Press RESET once.

Press a Key in PS2 key- baoard,the key will be displayed in HyperTermi-nal

 

Only Alphanumeric keys and some special keys will be displayed.

 

DATA

PORTB.0

 


Relay and Buzzer


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

BUZZER

PORTC.6

Turn ON BUZZ Pin of CONFIG-I switch SW5.

Connect Serial cable between USART Section in the Board and PC and open Hyper Terminal

Press RESET Once (If Necessary)

Press A and B in Hyper-Terminal to turn ON and OFF the buzzer.

 

 


SPI EEPROM


HARDWARE PIN

OUT

CONNECTIONS

OUTPUT

CS

PORTB.4

Turn ON SPI Pin of CONFIG-II switch SW6.

Connect Serial cable between USART Section in the Board and PC. Open Hyper Terminal

Press RESET once

The string “SPI Test Program” will be displayed in Hyper-Terminal

 

 

MOSI

PORTB.5

MISO

PORTB.6

SCK

PORTB.7

 


Stepper Motor


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

PHASE.1

PORTB.0

Connect a stepper motor with J19 or with J18

Connect PORTB with JP17 (stepper section)

Press RESET or INT0 to

change the direction of

stepper Motor.

PHASE.2

PORTB.1

PHASE.3

PORTB.2

PHASE.4

PORTB.3

INT0

PORTD.2

 


USART


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

RXD

PORTD.0

Connect Serial cable between USART Section in the Board and PC. Open Hyper Terminal

Press RESET Once (If Necessary)

Type a character, “Hello

World” string will be re-

turned from Board.

TXD

PORTD.1

 


USART with PRINTF


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

RXD

PORTD.0

Connect Serial cable between USART Section in the Board and PC. Open HyperTerminal

Press RESET Once (If Necessary)

Type a character. The string “Hello World with PRINTF” will be displayed.

 

TXD

PORTD.1

 


SETTING UP HYPERTERMINAL

HyperTerminal is automatically installed under Programs?Accessories,

1.Click Start → Programs → Accessories → Communications → HyperTerminal

  • Enter Name (e.g. Com1_9600) and choose any one ICON.




2.Click the drop-down arrow by Connect Using? COM1 → Click OK





3. COM1 Properties, Port Settings





  • Bits per Second: select 9600 (or desired baud rate)
  • Data Bits: select 8
  • Parity: select None
  • Stop Bits: select 1
  • Flow Control : select none
  • Click OK

Now you get the HyperTerminal window.