AVR Peripheral Board
www.campuscomponent.com
DISCLAIMER
Information furnished is believed to be accurate and reliable at the time of publication. However, Campus Component Pvt. Ltd. assumes no responsibility arising from the use of the specifications described. The applications mentioned herein are used solely for the purpose of illustration and Campus component Pvt. Ltd. makes no warranty or representation that such applications will be suitable without further modification, nor recommends the use of its products for application that may present a risk to human life due to malfunction or otherwise. Campus Component Pvt. Ltd. does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patents rights, nor the rights of other. Campus Component Pvt. Ltd. reserves the right to alter its products without prior notification. For the most up-to-date information, please visit our web site at Pictures are representational only and actual product may vary.
Copyright © 2011CAMPUS COMPONENT Pvt. Ltd. All rights reserved. Campus Component Pvt.
Ltd.®, logo and combinations thereof, are registered trademarks of CAMPUS COMPONENT Pvt. Ltd.
Other terms and product names may be trademarks of others.
http://www.campuscomponent.com
AVR Peripheral Board
www.campuscomponent.com
AVR Development Board
Introduction:AVR ATmega8 Development Board is made from Double sided PTH PCB to provide
extra strength to the connector joints for increased reliability. Board can work on 7V to 15V AC
or DC supply. It has built-in reverse polarity protection. 7805 voltage regulator has heat sink for
heat dissipation so that it can supply 1Amp current continuously without getting over heated. It
has switches for reset and power. All the ports are connected to standard 10 pin Box Header
connectors.
Features:· Double sided PTH PCB board to provide extra strength to the connector joints for
increased reliability· Support the following 40 pin AVR Microcontroller from Atmel Corporation
§ ATmega8§ ATmega8L§ ATmega48§ ATmega88§ ATmega168§ ATmega328
· Supports LCD with linear 16x1 pinout§ 16x1 LCD , 16x2 LCD and 16x4 LCD§ 20x1 LCD, 20x2 LCD and 20x4 LCD§ 32x2 LCD and 32x4 LCD§ 40x2 LCD
· All the ports are connected to standard 10 pin Header Box connectors· Onboard crystal oscillator generating 12MHz frequency· Adapter Input AC/DC Socket For 7V to 15V AC/DC· Reverse polarity protected by using onboard Bridge Rectifier· Voltage regulation provided using 7805 Voltage Regulator· Provides 8 yellow SMD LEDs for I/O testing· Provides facility for resetting the board when required· LCD contrast adjusting through potentiometer provided· Onboard 5V Buzzer provided for testing· Power on display indicator(Red or Yellow LED)
Warning: Current dissipation throughout board’s all components and connectors should not exceed than 1 Amp
Microcntroller IC
Potentiometer for Contrast
adjust for LCD
AC/DC Socket
Sliding Switch
Voltage Regulator
VIN
VC
C
GN
D
LCD Connector
LCD Command PinsLCD PortC PortB Port
D PortLED Port
Power On LED
LED for I/O Testing
ISP Port
Reset Switch
Buzzer
Bridge Rectifier
AVR Peripheral Board
www.campuscomponent.com
Hardware Description:
· Power Supply Socket:This power supply socket which actually named as AC/DC Socket provides the
functionality to user to connect external power supply from Transformer, Battery or Adapter via DC jack. User can provide maximum of 15V AC/DC power supply through AC/DC socket. This is power supply designed into maximum protection consideration so that it can even prevent reverse polarity DC power supply as well as AC power Supply. It also includes 7805 Voltage Regulator which provides regulated 5V DC for Microcontroller and other I/O connectors.
· GND, VCC and VIN Connector:This board also provides user to have an extra pins for Power supplies as shown in
figure. These pins are GND (0V), VCC (5V from Voltage Regulator) and VIN (Voltage supplied to AC/DC Socket minus 1.4V denoted as +12V on board). Four pins are provided for each type of supply. User can connect these pins to external device by using Single Berg Wire.
· On/Off Switch and Reset Switch:On/Off switch is type of SPDT Sliding switch which is used for only make power
supply on/off provided through AC/DC Socket. Reset Switch is type of Push on DPST tactile switch which is used for only to make program reset.
· 10 pin Box Header Connector:Pin Headers with plastic guide box around them are known as “Box Headers” or
“Shrouded Headers” and are normally only used in combination with a Flat Ribbon Cable (FRC) connector. A notch (key) in the guide box normally prevents placing the connector the wrong way around. Box Header can be connected using FRCs and also Single Berg Wires for individual pin connections.
Notch
AVR Peripheral Board
www.campuscomponent.com
Ÿ FRC Cable:Two FRC Connectors can be connected with the help of FRC cable. FRC cable
has following pin configuration.
· A, B, C, D Port Connector:40 pin ATmega series microcontroller has four I/O ports generally. These Four
Port are expanded from Microcontroller IC separately by using 10 pin Box Header for each port (A, B, C and D port). Among 10 pins 8 pins represents I/O pin of respective port
th thand 9 and 10 pin represents GND and VCC respectively. This is shown in figure.
· LED ConnectorEight LEDs used for I/O testing are connected in common cathode configuration.
Other terminal (anode) of LED connected to the LED port. This LED port can be directly connected to any of A, B, C or D port's Box Header through Flat Ribbon Cable (FRC).
· LCD ConnectorThis board featured with two types of LCD Connections. One is linearly placed
16 pin Berg male Connector. This connector used to mount LCD which has 16 connecting pins. Another connector is 10 pin Box Header through which user can connect LCD port to any of I/O port (A, B, C or D). There are also three other pins of Berg male connector which represents RS, RW and EN pin of LCD so that user can connect these pins to any of I/O pin by using Single Berg Wire.
RS
END6
GNDVCC
VEE
RWD1D0
D3
D5D4
D7D2
LED+LED-
LCD Port
Potentiometerfor contrast
adjust of LCDRS
ENRW
AVR Peripheral Board
www.campuscomponent.com
· ISP ConnectorISP (In System Programming) port provides connection between AVR
Development Board and AVR Programmer Kit. It has following configuration. It also used as a power supply from USB (Universal Serial Bus) Cable. As this functionality provided by Microcontroller IC itself, thus pins are directly connected to respective pins.
· C Port Pin Configuration:C Port in 28 pin ATmega series Microcontroller has only seven I/O pins as
stated in Datasheet. PC6 which is seventh pin of C port is actually works as a RESET Pin. If user do any I/O operation on this pin Microcontroller will get reset every time. Thus this pin is not available in this board to prevent unfeasibility in operation or application.
PC6 pin removed to prevent interrupting reset operation
AVR Peripheral Board
www.campuscomponent.com
Installation of Software:This guide will help User to installation of Software which are recommended for
Program Compiling and Downloading.
Step 1:Double Click on WinAVR software, then User will see window like this. Select language
and then press ‘OK’.
Step 2:after clicking OK welcome window will appear, Click on ‘Next >’
Step 3:Read License agreement and press ‘I Agree’
AVR Peripheral Board
www.campuscomponent.com
Step 4:Choose destination folder for installation. Press ‘Next >’
Step 5:Select all checkboxes and then press ‘Install’ button
Step 6:Now Installing window will appear, Let the progress bar be filled completely
AVR Peripheral Board
www.campuscomponent.com
Step 7:After Installation complete window press ‘Finish’
Installation of WinAVR is completed
Now Install AVR Studio4
Step 1:Double Click on AVRStudio4 installation file, then welcome window will appear, click
on ‘Next >’
AVR Peripheral Board
www.campuscomponent.com
Step 2:Click on ‘I accept the terms of the agreement’ and then click on ‘Next >’
Step 3:If User want to change destination folder for installation then click on ‘Change’
otherwise or after click on ‘Next >’
AVR Peripheral Board
www.campuscomponent.com
Step 4:Check ‘Install/upgrade Jungo USB Driver’ and then click on ‘Next >’
Step 5:Click on ‘Install’ Button
AVR Peripheral Board
www.campuscomponent.com
Step 6:Let the installation be completed
Step 7:After completion of installation click on ‘Finish’ Button
AVR Peripheral Board
www.campuscomponent.com
Building Programs in AVR Studio 4
Following are steps show how programming should develop step by step in AVR Development Board. These steps will demonstrate to User a program which glows eight LEDs serially. Its recommend User to use compiler 'WinAVR' and Editor 'AVRStudio4'.
Step 1:Go to Start Menu > Select All Programs
Click on Atmel AVR Tools Folder > Left Click on AVR Studio 4
AVR Peripheral Board
www.campuscomponent.com
Step 2:Loading Window will appear on Desktop
Select New ProjectNote: However if User wants to open existing project then user needs to click o Open Project
Step 3:In Project type section select AVR GCC OptionNote: GCC used to Compiling Program written in Embedded C Language, whereas AVR Assembler used to Compiling Program written in Assembly Language.
AVR Peripheral Board
www.campuscomponent.com
Step 4:Give a Project name whatever User wants
Check Crete initial file and Create folder Check boxesPress Next Button
Step 5:Two lists will be appeared, select AVR Simulator option from left side list
Step 6:Select Microcontroller for which User wants to write a program, here ATmega8 shown as an example. Press Finish Button
Warning: Don't give space in your Project Name; it will consider it as invalid name
AVR Peripheral Board
www.campuscomponent.com
IDE will generate some windows which created platform to write a program for selected Microcontroller i.e. ATmega16. User needs to write program in Middle window.
Step 7:Write Down program to glow eight LEDs serially in Embedded C Language
Step 8:Once User completed Program go to main menu and then select Build option > Click on Build to compile the program
Note: This is sample program User can write any type of program according to application
AVR Peripheral Board
www.campuscomponent.com
Step 9:If program doesn't contains any error it will give message as shown in picture and will generate .hex file, else it won't generate .hex file
Step 10:Now attach Microcontroller Development Board and AVR USB Programmer through
ISP Port only.
Step 11:Now open Sinaprog Software, window will look like this
Note: Just deal with errors don't consider warnings, if User gets any number of warnings still program can generate .hex file
Warning: Programmer should be connected to ISP port only, if you connect programmer via FRC to any other port it may damage your programmer as well as your development board.
AVR Peripheral Board
www.campuscomponent.com
Step 12:Select .hex file of your respective programPath to find .hex fileGo to Directory where you put your Project Folder > Open Folder named as your project name > open default folder > select .hex file
Step 13:Click on Program button present in Flash sectionAfter Program will finish it will give you message ‘Programming Flash…OK’
AVR Peripheral Board
www.campuscomponent.com
Step 14:Take one FRC and connect its one end to LED portConnect another end to A port
Congrats! You successfully executed your Program
Note: Acoording to sample program we have connected LED port to A port, User can use any of Microcontroller’s I/O port acccording to modified program
Contact Us
e-mail Address:
Campus Component Pvt. Ltd.
Ackruti Chambers,
Office No. 308, 3rd Floor,
Near Laxminarayan Theater,
Swargate, Pune- 411037
Mobile : +91 9767444555
Landline : +91 20 24275291
Top Related