CAMPUS COMPONENT Pvt. Ltd. 1
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 http:// 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 registeredtrademarks of CAMPUS COMPONENT Pvt. Ltd. Other terms and product names may be trademarks of others. Page 2
AVR Development Board 1. Features: Support the following 40 pin AVR microcontroller o ATmega16 o ATmega16L o ATmega32 o ATmega32L o ATmega164/V o ATmega324/V o ATmega644/V Page 3
o ATmega8535 o ATmega8535L All ports are connected to standard 10 pin FRC connector and also has a separate straight berg-strip connected. FRC connector for ISP. General purpose PCB area provided on board. On board 12 MHz crystal oscillator. Adapter input socket for 12 VAC or DC. Reverse polarity protected. Voltage regulation provided by IC L7805CV. Serial port for programming. Power ON indicator LED. Ready arrangement for serial communication through serial port. Provides facility for resetting the board when required. Power supply ON/OFF switch provided on board. Page 4
2. Hardware Description: Port connector: Four port connectors are separately provided on the board. Each port (Port A, Port B, Port C and Port D) connectors has 10 pins. Pin identification is done with respect to the notch provided as shown: Notch Page 5
Fig. FRC connector FRC cable : Two FRC connectors can be connected with the help of FRC cable.frc cable has following pin configuration: Fig. FRC cable Serial Ports: A serial port is a serial communication physical interface through which information transfers in or out one bit at a time. The provision for serial port is provided so as to make it convenient to the user to communicate with serial port device like PCs. Two serial ports are provided on board- 1. Serial Programming Port (P):- This port is dedicated only for the purpose of programming the flash of the microcontroller. 2. Serial Communication Port (C):- This port is provided for the purpose of serial communication. This helps the microcontroller to communicate with the peripheral device.when the user need to communicate through the serial port, the transmit data pin (TxD) and receive data pin (RxD) need to be connected externally by the user. There is a 3-pin berg strip pin-out beside IC MAX232 with pin TxD, RxD and GND (ground). The TxD pin should be connected to the TxD pin i.e. PD1 pin or pin no.15 and the RxD pin should be connected to the RxD pin i.e. PD0 pin or pin no.14 of the 40 pin AVR controller used. Page 6
MAX232CPE: The MAX232 is an integrated circuit that converts signals from an RS-232 serial port to signals suitable for use in TTL compatible digital logic circuits. ISP connector : ISP (In System programming) connector provides connection betweendevelopment board and programmer kit. It has following pin configuration. Page 7
*Note: For more detail working of module refer datasheet of the ICs. Installation of Driver STEP 1: Connect the USB cable to the USB AVR programmer & USB port of the PC or Laptop, the Green LED will glow. You will get the following pop up containing: Found New Hardware USBasp it means USB programmer is working. (Note:-If you are getting USB Device Not Recognized then your USB AVR programmer is not working.) STEP 2: Wait for windows information Found New Hardware Wizard. Page 8
STEP 3:After device is detected Driver setup wizard opens. Select where USBASP driver windriver is located in your CD. STEP 4: Wait few seconds with the following window Page 9
STEP 5: Finally the driver will be installing & you will get STEP 6: Go to the device manager list (Right click on My Computer, Select Manage, You will get the new window named as Computer Management, Select Device Manager present under System Tools) LibUSB Win32 Devices ----- USBasp :: shows the successfully installation of driver. Page 10
Building Programs in AVR Studio 4 STEP 1: Open AVR Studio 4 by double clicking on the icon. STEP 2: An IDE of AVR will be opened and Welcome to AVR Studio 4 dialog box will be displayed. Click on the New Project button. (Whereas if you want to open the existing project click on Openbutton and select the project from the list.) Page 11
STEP 3: It will prompt you to select the compiler.. So select AVR GCC (GNU Compiler Collection) from project type section. NOTE: If you wish to write the program in C language choose AVR GCC otherwise for assembly language programming select Atmel AVR Assembler option. STEP 4:Give the suitable name to your project and click on Next button. Page 12
STEP 5: Select AVR simulator from the list of Debugging platforms and select the device as ATmega16. Note :Device other than ATmega 16 can be selected depending on the controller IC used on the development board. STEP 6: Click on the Finish button. Now you are ready to write the program on AVR Studio Editor in C language. Write this sample program to glow the LEDs connected to Port A serially: (Note: Connect the LED connector with the Port A using FRC cable) Page 13
STEP 7:After writing the program the next step is to Build the program. So Go on Build menu and click on build option. STEP 8: Check for any errors in the Build Window. If there are no errors then Hex file will be created and stored in the Project folder you have created. You can then download this file into your microcontroller using SinaProg software. Burning the program into microcontroller using SinaProg: Before you start with burning process get your programmer connected with the development board through an FRC cable connected to SPI port and other end to the programmer board as shown: Page 14
STEP 1: Open the SinaProg software. STEP 2: From the Hex File section browse the.hex file of the project you have Built. STEP 3: From Flash section click on Program button and wait for some time till it finishes programming. When it displays the message Programming Flash OK your controller is ready to work as per your program, CLICK Here Page 15
NOTE: Click on the chevron shown above and you will get the sequence of instruction in which the initialization of controller has been done. Page 16
Contact Address: Campus Component Pvt. Ltd Ackruti Chambers, Office No. 308, 3 rd Floor, Near Laxmi Narayan Theater, Swargate, Pune -411037 Mob.: +91-9767444555 Landline: +91-20-24275291 E-mail Address: sales@campuscomponent.com Location Map Page 17