SlideShare a Scribd company logo
1 of 40
Download to read offline
TechShop, 39, ARA Bhaban,
1
AVR
Trainer Kit
User Manual
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
AVR
Trainer Kit
User Manual
Bangladesh
Trainer Kit
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
2
Contents
Contents……………………………………………………………………………………..3
Version History…………………………………………………………………………....4
1. Introduction………………………………………………...…………………………...6
1.1 Kit Contents……………………………………………………………………....6
1.2 What’s on board?…………………………………………………………………7
2. How do I Start? ……………………………………………………………………………8
2.1 Driver Installation………………………………………………………………....8
2.2 Programming Software…………………………………………………………....12
2.2.1 AVRpal………………………………………………………………….13
2.2.2 eXtreme Burner…………………………………………………………15
3. Board Features……………………………………………………………………….....18
3.1 AVR Programmer…………………………………………………………………18
3.2 Oscillator……………………………………………………………………….....18
3.3 Power Supply……………………………………………………………………..19
3.4 LED Interfacing………………………………………………………………......20
3.5 Push Button Interfacing………………………………………………………......22
3.6 Seven Segment Display Interfacing………………………………………………23
3.7 ADC Interfacing……………………………………………………………….....24
3.8 LCD Interfacing………………………………………………………………......27
3.9 Buzzer Interfacing………………………………………………………………...28
3.10 Joystick Interfacing……………………………………………………………...29
3.11 Infrared Device Interfacing……………………………………………………..29
3.12 1-Wire Communication……………………………………………………….... 30
4. ISP Pinout………………………………………………………...…………………….31
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
3
5. SPI Pinout……………………………………...…………………………………….....32
6. USART Pinout ………………………………………………………………...…........33
7. I2C Pinout………………………………………………………………………...….....34
8. Fuse Bytes………………………………………………………………………...........35
8.1 Introduction…………………………………………………………………....................35
8.2 Brown Out Detection (BOD) ……………………………………….................................37
8.3 Clock Selection………………………………………………………………………..….37
8.4 Startup Time………………………………………………………………………………38
8.5 Writing Fuse Bytes………………………………………………………………………..39
9. Troubleshooting………………………………………………………………………….....39
10.Warranty…………………………………………………………………………...............40
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
4
Document Title AVR Trainer Kit User Manual
Version 1.3
Date 2014-11-14
Status Design Changed
Document Control ID AVR Trainer Kit_Manual_V1.3
General Notes
TechShop offers this information as a service to its customers, to support application and
engineering efforts that use the products designed by TechShop. The information provided is
based upon requirements specifically provided to TechShop by the customers. TechShop has not
undertaken any independent search for additional relevant information, including any
information that may be in the customer’s possession. Furthermore, system validation of this
product designed by TechShop within a larger electronic system remains the responsibility of the
customer or the customer’s system integrator. All specifications supplied herein are subject to
change.
Copyright
This document contains proprietary technical information which is the property of TechShop
Bangladesh Limited, copying of this document and giving it to others and the using or
communication of the contents thereof, are forbidden without express authority. Offenders are
liable to the payment of damages. All rights reserved in the event of grant of a patent or the
registration of a utility model or design. All specification supplied herein are subject to change
without notice at any time.
Copyright © TechShop Bangladesh Ltd., Dhaka, Bangladesh, 2013
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
5
Version History
Date Version Description of change Designer
2010-01-27 1.0 Origin FahadMirza
2013-05-30 1.1 Design Changed FahadMirza
2014-08-01 1.2 PS2 Removed Nur Mohammad
2014-11-14 1.3 Single Layer PCB Nur Mohammad
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
6
1. Introduction
AVR Trainer Kit is anexcellent developmentkit for novices for programming and experimenting
with AVR microcontrollers from Atmel. It includes an On-board programmer which provides an
interface between PC and microcontroller. All you have to do is to write the program in any
AVR compiler, generate the hex file, connect the board to your computer’s USB port, place the
microcontroller on the ZIF socket and load the program to the microcontroller. A number of
buttons, jumpers and connectors are there to help the microcontroller to be interfaced with the
peripherals.
1.1 Kit contents
This kit contents:
• AVR Trainer Kit Board.
• Standard USB cable (A to B).
• Some jumpers and Connectors.
• User Guide DVD
Many of us made our first steps in embedded world
with AVR Trainer Kit™
. Today it has thousands of
users: students, hobbyists, enthusiasts and professionals.
We asked ourselves what we can do to make such a
great board even greater. And we made some brilliant
changes. We focused all of our creativity and
knowledge into making a revolutionary new design,
unlike any previous version of the board. We now
present you with the new version, it’s portable,
pluggable. We hope that you will be thrilled with your
new board, just as we are.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
7
1.2 What’s On Board
1)ZIF Socket for ATmega16A/ATmega32A, with accessible I/O, grouped by PORT.
2)On board Programmer.
3)USB connector, connection with PC.
4)Crystal Oscillator (Default 16MHz). It’s replaceable.
5)External Supply Socket (5V).
6)SPI Pinout.
7)ISP Pinout.
8)USART Pinout.
9)I2C Pinout.
10)Seven Segment Display Interfacing.
11)LCD Interfacing Connector.
12)LCD Contrast.
13)ADC Interfacing.
14)Push Button Interfacing.
15)I/O Expander.
16) RESET Circuitry.
17) 8 LEDs Interfacing.
18) Buzzer Interfacing.
19) Infrared Interfacing.
TechShop, 39, ARA Bhaban,
8
20)1-WireCommunication Interfacing.
21) Power Switch.
22) Vcc-GND power pin.
23) Joystick Pinout
2. How do I Start?
Step 1:
Use the USB cable to connect the
the USB cable provided with a connector of the USB B type should be connected to the
development board as shown in figure below; whereas, the other end of the cable (A type) should
be connected to the PC. As soon a
‘power’ will glow.
Step 2:
Now you’ll need to install the driver of the programmer.
driver is needed. Windows requires a driver. In order to complete the installation, you need to
follow several steps. This procedure will only focus on Window 7.
2.1 Driver Installation
1. Unzip the ‘Driver’ file (included in the DVD and in our sit
the USB port of your PC.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
Interfacing.
Use the USB cable to connect the AVR Trainer Kit development board to your PC. One end of
the USB cable provided with a connector of the USB B type should be connected to the
development board as shown in figure below; whereas, the other end of the cable (A type) should
be connected to the PC. As soon as the board is connected to the PC, the green LED marked as
Now you’ll need to install the driver of the programmer. On Linux and MacOS X no
driver is needed. Windows requires a driver. In order to complete the installation, you need to
follow several steps. This procedure will only focus on Window 7.
1. Unzip the ‘Driver’ file (included in the DVD and in our site) and connect AVR Trainer Kit
Connecting AVR
Trainer Kit to a
computer’s USB Port
Bangladesh
development board to your PC. One end of
the USB cable provided with a connector of the USB B type should be connected to the
development board as shown in figure below; whereas, the other end of the cable (A type) should
s the board is connected to the PC, the green LED marked as
On Linux and MacOS X no kernel
driver is needed. Windows requires a driver. In order to complete the installation, you need to
AVR Trainer Kit to
Connecting AVR
Trainer Kit to a
computer’s USB Port
Power
Indicator LED
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
9
2. Open Device Manager, find the entry for the USBasp and it should be displayed with a yellow
alert icon on it. Then right click on the device and select “Update Driver Software”.
3. After you left click the “Update Driver Software”, it will come out with “How do you want to
search for driver software?” Then choose the second one which is “Browse my computer for
driver software” and click into it.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
10
4. After that, you will see the screen which will prompt out “Browse for driver software on your
computer”. Select the driver folder (…Driverlibusb_1.2.4.0),then click “Next”.
5. Next, the windows will prompt out a “Windows Security” with a red warning dialog. Do not
worry about it, and just click “Install this driver software anyway” and the driver will install.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
11
6. After click it, the next step is to wait a few seconds to let your computer to process the
installation of driver software.
7. Now, you can use the programmer to do the programming for the microcontroller.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
12
Step 3:
AVR Trainer Kit™ supports two most popular mcu, ATmega16A and ATmega32A. Now place
your desired mcu into theZIF socket, as shown below. You are good to go now.
NOTE:You can load other microcontrollers through ISP pinout.
2.2 Programming Software
There are varieties of software which can work for the programmer. These are:
• AVRpal – Version 3.1 or later. A great GUI of avrdude. We normally use this software.
• eXtreme Burner – An easy to use GUI application. Our second favorite software.
• Khazama AVR Programmer – An AVRdude GUI for MS Windows.
• BASCOM-AVR – Version 1.11.9.6 or later.
• ProgISP 1.72 – Supports various hardware, including USBasp, STK200 etc.
For the list of the software above, we have no responsibility to teach users
how to use;users must study themselves in order to use it.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
13
2.2.1 AVRpal
1. At the time I am writing this manual, I have V3.1 in my hand.
2. If AVRpal.net detect you programmer, then “Programmer Connected” and “Firmware Full
Compatible” LED will lit.
3. Now click on the “Black Box” (which actually represents IC -_-), and software will detect
which mcu ispresent in the ZIF socket. Make sure you checked “Set Slow SCK”. A detail on
“Slow SCK” isdiscussed in “Fuse Bytes” section.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
14
4. So, it detects my mcu (ATmega16). To load “Hex” file browse it from “Select File”.
5. You can also read/write fuses. Take great care when you change the fuse bits. If you do not
know anything about fuse bits, please read “Fuse Bytes” section first
.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
15
6. By using fuse “Editor” you can save fuse byte for specific mcu.For instance, I frequently use
L=0xE4 / H=0xD9 fuse bytes for ATmega16A. So I named it “General_8MHz” and then press
“Save”.
7. Now if you click on the “Fuse Shortcuts” drop down menu, you’ll see “General_8MHz”. If
you select it, corresponding fuse bytes will load. If there is another mcu in ZIF socket other than
ATmega16A, it won’t be available, which will preventfrom writing wrong fuse bytes!!
2.2.2 eXtreme Burner
No need to install Driver for USBasp, its included in the Extreme Burner Installation.
Programming Steps are:
1) Plug the AVR Programmer into your Windows PC.
2) Install the “Extreme Burner V1.2”. Driver will be installed with the installation process.
3) Open Extreme Burner.
4) Under drop-down menu choose your desired chip.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
16
5) Click on the Fuse Bits/Settings tab and choose “Read All” for read your chip’s Fuse Bytes.
6) If you want to write Fuse Bytes into your chip, write down it on the blank boxes, check the
“write”, and then press write. For more on Fuse Bytes check the “Fuse Bytes” chapter. Also you
can visit: http://www.engbedded.com/fusecalc/
7) For loading Hex file press “Open” and browse the hex file.
8) From the drop-down menu choose Write > Flash
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
17
9) If programming is successful you will see just like below:
To know more about this software, you can visit the official site (eXtreme Electronics):
http://extremeelectronics.co.in/avr-tutorials/gui-software-for-usbasp-based-usb-avr-
programmers/
Buckle up, because now we are going to introduce you with the features of the boards.
TechShop, 39, ARA Bhaban,
18
3. Board Features
3.1 AVR Programmer
Fig: Programmer unit of
The on board programmer is shown in the above figure
burning mcu outside of the board. SLW_SCK is easily accessible by a slide switch
eXtreme Burner). To know more
3.2 Oscillator
There is a non-soldered, replaceable c
source. Its maximum value depends on the maximum frequency of the microcontroller.
board comes with the 16MHz crystal.
ISP Connector
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
AVR Programmer
Fig: Programmer unit of AVR Trainer Kit
The on board programmer is shown in the above figure. The ISP connectors are available for
burning mcu outside of the board. SLW_SCK is easily accessible by a slide switch
eXtreme Burner). To know more about Slow SCK go through ‘Fuse Bytes’ chapter.
soldered, replaceable crystal oscillator on the board used as an
source. Its maximum value depends on the maximum frequency of the microcontroller.
omes with the 16MHz crystal.
Bangladesh
The ISP connectors are available for
burning mcu outside of the board. SLW_SCK is easily accessible by a slide switch (required for
about Slow SCK go through ‘Fuse Bytes’ chapter.
the board used as an external clock
source. Its maximum value depends on the maximum frequency of the microcontroller. The
The programmer IC
BUSY indicator
Slow SCK Switch
TechShop, 39, ARA Bhaban,
19
Fig: Schematic of crystal oscillator of
3.3 Power Supply
The AVR Trainer Kit development board can use two power supply sources:
1. +5V power supply through the USB programming cable.
2. External power supply connected to a DC socket mounted on the development board.
16MHz Crystal Oscillator
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
Fig: Schematic of crystal oscillator of AVR Trainer Kit
development board can use two power supply sources:
power supply through the USB programming cable.
External power supply connected to a DC socket mounted on the development board.
Crystal Removed From Socket
Bangladesh
External power supply connected to a DC socket mounted on the development board.
Crystal Removed From Socket
TechShop, 39, ARA Bhaban,
20
Fig:
NOTE: The USB supply of the board come directly from USB port of computer; it
is advised not to use this power source to power application circuit or
device. Wrong connection such as wrong polarity, wrong voltage, shorted might
permanently damage your computer.
NOTE:Use 4.5-5.3V as an external source.
your components. Take extra caution when using external source. Check out
techshopbd.com for appropriate 5v adapter.
3.4 LED Interfacing
LED (Light-Emitting Diode) is a highly efficient electronic light source. A common LED diode
voltage is approximately 2.5V, while the current varies from 0.2mA to 20mA, depending on the
type of the LED. The AVR Trainer Kit
consumption of 0.2mA or 0.3mA. Board contains 8 LEDs which can be used for visual
indication of the logic state on PORT pins. An active LED indicates that a logic high (1) is
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
Fig: Schematic of external supply unit
The USB supply of the board come directly from USB port of computer; it
is advised not to use this power source to power application circuit or
device. Wrong connection such as wrong polarity, wrong voltage, shorted might
permanently damage your computer.
5.3V as an external source. Voltage more than that might burn
your components. Take extra caution when using external source. Check out
techshopbd.com for appropriate 5v adapter.
Emitting Diode) is a highly efficient electronic light source. A common LED diode
voltage is approximately 2.5V, while the current varies from 0.2mA to 20mA, depending on the
AVR Trainer Kit™ board uses low-current LEDs with
consumption of 0.2mA or 0.3mA. Board contains 8 LEDs which can be used for visual
indication of the logic state on PORT pins. An active LED indicates that a logic high (1) is
Bangladesh
The USB supply of the board come directly from USB port of computer; it
is advised not to use this power source to power application circuit or
device. Wrong connection such as wrong polarity, wrong voltage, shorted might
Voltage more than that might burn
your components. Take extra caution when using external source. Check out
Emitting Diode) is a highly efficient electronic light source. A common LED diode
voltage is approximately 2.5V, while the current varies from 0.2mA to 20mA, depending on the
current LEDs with typical current
consumption of 0.2mA or 0.3mA. Board contains 8 LEDs which can be used for visual
indication of the logic state on PORT pins. An active LED indicates that a logic high (1) is
Power Switch
TechShop, 39, ARA Bhaban,
21
present on the pin. In order to enable PORTC LEDs, it is necessa
DIP switches on SW5 (figure below).
Fig: Schematic of
There is a male connector (J2) present in the board in case you want to check logic state for other
PORTs instead of PORTC. Like the figure below, just connect the connector(supplied with the
SW5 Dip
Switch in
ON position
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
present on the pin. In order to enable PORTC LEDs, it is necessary to enable the corresponding
DIP switches on SW5 (figure below).
Schematic of LED unit of AVR Trainer Kit
There is a male connector (J2) present in the board in case you want to check logic state for other
PORTs instead of PORTC. Like the figure below, just connect the connector(supplied with the
External
Pin for
LEDs
LED
Bangladesh
ry to enable the corresponding
There is a male connector (J2) present in the board in case you want to check logic state for other
PORTs instead of PORTC. Like the figure below, just connect the connector(supplied with the
External
Pin for
LEDs
LED
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
22
kit) with your desired PORT and J2. Also don’t forget to slide the SW5 switches into OFF
position (unlike figure below) or there might be logic contention between PORTs.
Also don’t forget to disable the LCD’s Dip switch, because they too use some of PORTC’s pin.
Now load “Led_blinking.hex” (…AVR Trainer KitExampleLED blinking) and
LED will start blinking.
NOTE: All the example code is written in “MikroC Pro for AVR” for ATmega32A.
Also simulation file in “Proteus” is provided too.
3.5 Push Button Interfacing
If you want to play with the digital input of microcontroller, we have two push buttons tied to
ground. They are connected with PORTD2 and PORTD3 i.e. with two external interrupts.
Buttons are externally pulled up to Vcc.
Fig:Schematic of push button in AVR Trainer Kit
Place the jumper like the figure below:
TechShop, 39, ARA Bhaban,
23
Also don’t forget to Enable PORTC0 and PORTC1 LED switch (SW5).
Load the “Push_Button.hex” (…
you press the buttons, corresponding LED will lit.
NOTE: All the example code is written in “MikroC Pro for AVR” for ATmega32A.
Also simulation file in “Proteus” is provided too.
3.6 Seven Segment Display Interfacing
One seven segment digit consists
can be used to represent digits from 0 to 9 and even some letters. One additional LED is used for
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
Also don’t forget to Enable PORTC0 and PORTC1 LED switch (SW5).
AVR Trainer KitExamplePush Button
you press the buttons, corresponding LED will lit.
All the example code is written in “MikroC Pro for AVR” for ATmega32A.
Also simulation file in “Proteus” is provided too.
Segment Display Interfacing
consists of 7+1 LEDs which are arranged in a specific formation which
can be used to represent digits from 0 to 9 and even some letters. One additional LED is used for
Bangladesh
Push Button). Now if
All the example code is written in “MikroC Pro for AVR” for ATmega32A.
of 7+1 LEDs which are arranged in a specific formation which
can be used to represent digits from 0 to 9 and even some letters. One additional LED is used for
TechShop, 39, ARA Bhaban,
24
marking the decimal dot, in case you want to write a decimal point in the desired segment.
Trainer Kit™ contains one (Common Cathode)
PORTB.
To enable place jumpers like figure below:
Make sure PORTB isn’t connected with other peripheral, like buzzer/SPI/ISP/1
“seven_segment_display.hex” (
Display) and a counter from 0
3.7 ADC Interfacing
Digital signals have two discrete states, which are decoded as high and low, and interpreted as
logic 1 and logic 0. Analog signals, on the other hand, are continuous, and can have any value
within defined range. A/D converters are specialized circuits whi
(voltages) into a digital representation, usually in form of an integer number. The value of this
number is lineary dependent on the input voltage value.
Most microcontrollers now days internally have A/D converters connected
pins. Some of the most important parameters of A/D converters are conversion time and
resolution. Conversion time determines how fast
a digital number. This is an important parameter if
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
marking the decimal dot, in case you want to write a decimal point in the desired segment.
(Common Cathode) of these digits. Eight data lines are connected to
like figure below:
isn’t connected with other peripheral, like buzzer/SPI/ISP/1
” (…AVR Trainer KitExampleSeven Segment
) and a counter from 0-9 will start immediately.
Digital signals have two discrete states, which are decoded as high and low, and interpreted as
logic 1 and logic 0. Analog signals, on the other hand, are continuous, and can have any value
within defined range. A/D converters are specialized circuits which can convert analog signals
(voltages) into a digital representation, usually in form of an integer number. The value of this
number is lineary dependent on the input voltage value.
Most microcontrollers now days internally have A/D converters connected to one or more input
pins. Some of the most important parameters of A/D converters are conversion time and
resolution. Conversion time determines how fast an analog voltage can be represented in form of
a digital number. This is an important parameter if you need fast data acquisition.
Bangladesh
marking the decimal dot, in case you want to write a decimal point in the desired segment. AVR
of these digits. Eight data lines are connected to
isn’t connected with other peripheral, like buzzer/SPI/ISP/1-wire etc. Load
Seven Segment
Digital signals have two discrete states, which are decoded as high and low, and interpreted as
logic 1 and logic 0. Analog signals, on the other hand, are continuous, and can have any value
ch can convert analog signals
(voltages) into a digital representation, usually in form of an integer number. The value of this
to one or more input
pins. Some of the most important parameters of A/D converters are conversion time and
be represented in form of
you need fast data acquisition.
TechShop, 39, ARA Bhaban,
25
The other parameter is resolution. Resolution represents the number of discrete steps that
supported voltage range can be divided into. It determines the sensitivity of the A/D converter.
Resolution is represented in maximu
microcontrollers have 10-bit resolution, meaning that maximum value of conversion can be
represented with 10 bits, which converted to integer is 2
voltage range, for example from 0
AVR Trainer Kit™ v2 provides an interface in form of potentiometers for simulating analog
input voltages that can be routed to any of the
The right figure shows the connection of AVCC and AREF. AVCC is tied to Vcc. And AREF is
tied with a slide switch (SW2). You can either choose to connect AREF with AVCC or any
external voltage you want. If you want to connect external voltage,
connect the external reference voltage
AREF
connected to
AVCC
AREF Pin
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
The other parameter is resolution. Resolution represents the number of discrete steps that
supported voltage range can be divided into. It determines the sensitivity of the A/D converter.
Resolution is represented in maximum number of bits that resulting number occupies. Most AVR
bit resolution, meaning that maximum value of conversion can be
represented with 10 bits, which converted to integer is 210
=1024. This means that supported
r example from 0-5V, can be divided into 1024 discrete steps of about 4.88mV.
provides an interface in form of potentiometers for simulating analog
input voltages that can be routed to any of the 8 supported analog input pins (default
figure shows the connection of AVCC and AREF. AVCC is tied to Vcc. And AREF is
tied with a slide switch (SW2). You can either choose to connect AREF with AVCC or any
external voltage you want. If you want to connect external voltage, slide up the switch and
reference voltage at AREF pin.
Bangladesh
The other parameter is resolution. Resolution represents the number of discrete steps that
supported voltage range can be divided into. It determines the sensitivity of the A/D converter.
m number of bits that resulting number occupies. Most AVR
bit resolution, meaning that maximum value of conversion can be
=1024. This means that supported
5V, can be divided into 1024 discrete steps of about 4.88mV.
provides an interface in form of potentiometers for simulating analog
(default channel 0).
figure shows the connection of AVCC and AREF. AVCC is tied to Vcc. And AREF is
tied with a slide switch (SW2). You can either choose to connect AREF with AVCC or any
slide up the switch and
TechShop, 39, ARA Bhaban,
26
A 1K resistor is connected in series with
100k POT to refrain the direct connection of
Vcc with ADC pin. The capacitor C11
stabilize the voltage across ADC pin. By
default and in our example code we connect
the POT with Channel 0 (i.e. PA0) but you
can always route to any other ADC pin.
Connect the jumper J17 as shown in figure.
Connect AREF with AVCC. Our sample
code will use 7-segment display
ADC value. So connect those jumpers too.
Load “ADC_Interfacing.hex” (
Trainer KitExampleADC
rotate the POT and see the voltage change in
7-segment display.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
A 1K resistor is connected in series with
100k POT to refrain the direct connection of
Vcc with ADC pin. The capacitor C11 will
stabilize the voltage across ADC pin. By
default and in our example code we connect
the POT with Channel 0 (i.e. PA0) but you
can always route to any other ADC pin.
t the jumper J17 as shown in figure.
Connect AREF with AVCC. Our sample
segment display to show the
. So connect those jumpers too.
” (…AVR
ADC). Now
rotate the POT and see the voltage change in
Bangladesh
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
27
3.8 LCD Interfacing
Liquid Crystal Displays or LCDs are cheap and popular way of representing information to the
end user of some electronic device. Character LCDs can be used to represent standard and
custom characters in the predefined number of fields. AVR Trainer Kit™ v2 provides the
connector and the necessary interface for supporting 2x16 (or 4x20) character LCDs in 4-bit
mode. This type of display has two rows consisted of 16 character fields. Each field is a 7x5
pixel matrix.
NOTE:Make sure to turn off the power supply before placing LCD onto the
board. Otherwise your display can be permanently damaged.
Connector pinout explained
GND & VCC - Display power supply lines.
VEE - LCD contrast.
RS- Register Select Signal line.
R/W- Determines whether display is in Read or Write mode. You can permanently connect it
with GND, leaving the display in Write mode all the time.
E - Display Enable line
D0–D3 - Display is supported in 4-bit data mode, so these pins connected to GND.
D4–D7 - Upper half of the data byte
LED+- Backlight LED anode, connected with Vcc.
LED-- Backlight LED cathode, connected with GND.
LCD Contrast can be adjusted with RV1. Through Dip Switch (DSW2) you can easily connect
LCD with your MCU. The controlling pins go with PORTD4-6. If you want to permanently
connect R/W with GND then leave (OFF) PD5>R/W switch and enable GND>R/W (shown
below).
TechShop, 39, ARA Bhaban,
28
Also a male connector (J26) is available in case you want to connect other mcu pin to LCD.
Place a LCD (make sure all the powers are off). Connect USB cable and
“LCD_Interfacing.hex” (…AVR Trainer Kit
the board (better use a 5v adapter) and you’ll see moving text on the LCD.
3.9 Buzzer Interfacing
Piezoelectricity is the charge which accumulates in certain solid materials in response to
mechanical pressure, but also providing the charge to the piezoelectric material causes it to
physically deform. One of the most widely used applications of piezoelectricity is the p
of sound generators, called piezo buzzers.
different shapes and sizes, which can be used to create sound waves when provided with analog
electrical signal.
AVR Trainer Kit™ v2 comes with piezo
pin, which is determined by the position of J20 jumper. Buzzer is driven by transistor Q4
Microcontrollers can create sound by generating a PWM (Pulse Width Modulated) signal
square wave signal, which is nothing more than
the square signal determines the pitch of the generated sound, and duty cycle of the signal can be
used to increase or decrease the volume in the range from 0% to 100% of the duty cyc
can generate PWM signal using
microcontrollers, or by writing custom software which emulates the desired signal waveform
(like in the example we’ll show later)
LCD’s
pin1 goes
here
LCD
Contrast
POT
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
.
Also a male connector (J26) is available in case you want to connect other mcu pin to LCD.
Place a LCD (make sure all the powers are off). Connect USB cable and
AVR Trainer KitExampleLCD Interfacing
use a 5v adapter) and you’ll see moving text on the LCD.
is the charge which accumulates in certain solid materials in response to
mechanical pressure, but also providing the charge to the piezoelectric material causes it to
physically deform. One of the most widely used applications of piezoelectricity is the p
of sound generators, called piezo buzzers. Piezo buzzer is an electric component that comes in
different shapes and sizes, which can be used to create sound waves when provided with analog
™ v2 comes with piezo buzzer which can be connected to PB3 microcontroller
pin, which is determined by the position of J20 jumper. Buzzer is driven by transistor Q4
Microcontrollers can create sound by generating a PWM (Pulse Width Modulated) signal
ch is nothing more than a sequence of logic zeros and ones. Frequency of
the square signal determines the pitch of the generated sound, and duty cycle of the signal can be
used to increase or decrease the volume in the range from 0% to 100% of the duty cyc
can generate PWM signal using AVR’s Timer module, which is usually available in most
microcontrollers, or by writing custom software which emulates the desired signal waveform
(like in the example we’ll show later).
Bangladesh
Also a male connector (J26) is available in case you want to connect other mcu pin to LCD.
Place a LCD (make sure all the powers are off). Connect USB cable and load
LCD Interfacing). Power
is the charge which accumulates in certain solid materials in response to
mechanical pressure, but also providing the charge to the piezoelectric material causes it to
physically deform. One of the most widely used applications of piezoelectricity is the production
is an electric component that comes in
different shapes and sizes, which can be used to create sound waves when provided with analog
buzzer which can be connected to PB3 microcontroller
pin, which is determined by the position of J20 jumper. Buzzer is driven by transistor Q4.
Microcontrollers can create sound by generating a PWM (Pulse Width Modulated) signal – a
a sequence of logic zeros and ones. Frequency of
the square signal determines the pitch of the generated sound, and duty cycle of the signal can be
used to increase or decrease the volume in the range from 0% to 100% of the duty cycle. You
, which is usually available in most AVR
microcontrollers, or by writing custom software which emulates the desired signal waveform
Disable
PD5>R/W
and enable
GND>R/W
External
connector for
LCD control
TechShop, 39, ARA Bhaban,
29
Fig:Buzzer interfacing with
Place the jumper (J20) as shown in figure. Buzzer input will connect with PORTB3. So make
sure this pin isn’t connecting with other (like 7 segment etc.). Our Buzzer example also needs
LCD, so enable the dip switch (DSW2) of the LCD as mentioned at section “3.8 LCD
Interfacing” and a push button on PD2, so place the push button (B2) jumper too. L
“Buzzer.hex” (…AVR Trainer Kit
adapter will be preferable). If you press
LCD.
3.10 Joystick Interfacing
Joysticks are one of the interesting things to interface. Our joystick will give you 5 positions; Up,
Down, Left, Right and Center. The common is connected to
Jumper (J3) will connect this joystick with PORTA3
use PORTA’s internal pull-up option.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
Fig:Buzzer interfacing with AVR Trainer Kit
Place the jumper (J20) as shown in figure. Buzzer input will connect with PORTB3. So make
sure this pin isn’t connecting with other (like 7 segment etc.). Our Buzzer example also needs
tch (DSW2) of the LCD as mentioned at section “3.8 LCD
and a push button on PD2, so place the push button (B2) jumper too. L
AVR Trainer KitExampleBuzzer).Now power the board (a 5v
adapter will be preferable). If you press the B2, music will start to play with the lyrics on the
Joystick Interfacing
Joysticks are one of the interesting things to interface. Our joystick will give you 5 positions; Up,
Down, Left, Right and Center. The common is connected to ground i.e. they will be active low.
Jumper (J3) will connect this joystick with PORTA3-7. No pull ups are present, so you have to
up option.
Bangladesh
Place the jumper (J20) as shown in figure. Buzzer input will connect with PORTB3. So make
sure this pin isn’t connecting with other (like 7 segment etc.). Our Buzzer example also needs
tch (DSW2) of the LCD as mentioned at section “3.8 LCD
and a push button on PD2, so place the push button (B2) jumper too. Load
Now power the board (a 5v
the B2, music will start to play with the lyrics on the
Joysticks are one of the interesting things to interface. Our joystick will give you 5 positions; Up,
ground i.e. they will be active low.
7. No pull ups are present, so you have to
TechShop, 39, ARA Bhaban,
30
3.11 Infrared Interfacing
Want to control your things wirelessly? One of the usual formats is infrared. Use your existing
DVD player or TV’s remote. To help you with the infrared interfacing we provide an infrared
sensor on the board with necessary passive components.
3.12 1-Wire communication:
AVR Trainer Kit supports one wire communication
to set a jumper in J44 position.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
Infrared Interfacing
Want to control your things wirelessly? One of the usual formats is infrared. Use your existing
DVD player or TV’s remote. To help you with the infrared interfacing we provide an infrared
sensor on the board with necessary passive components.
Wire communication:
supports one wire communication through the connector U4.To do so, you have
Bangladesh
Want to control your things wirelessly? One of the usual formats is infrared. Use your existing
DVD player or TV’s remote. To help you with the infrared interfacing we provide an infrared
through the connector U4.To do so, you have
TechShop, 39, ARA Bhaban,
31
Fig: The schematic of 1
Fig: The 1-Wire communication pinout of
4. ISP PINOUT:
The ISP PINOUT of AVR Trainer Kit
pins. With these pins you can programme any microcontroller outside the trainer board.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
The schematic of 1-Wire communication pinout of AVR Trainer Kit
Wire communication pinout of AVR Trainer Kit
AVR Trainer Kit has GND, VCC, SCK, MISO, MOSI and RST (RESET)
pins. With these pins you can programme any microcontroller outside the trainer board.
Bangladesh
AVR Trainer Kit
has GND, VCC, SCK, MISO, MOSI and RST (RESET)
pins. With these pins you can programme any microcontroller outside the trainer board.
TechShop, 39, ARA Bhaban,
32
Fig: Schematic of ISP
Fig: ISP Pinout of
5.SPI PINOUT:
The Serial Parallel Interface (SPI) allows high speed
AVR microcontrollers and peripheral devices or between several AVR devices.
of AVR Trainer Kit features 6
SCK,SS/.By these pins you can connect any SPI supported device to the microcontroller.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
chematic of ISP Pinout of AVR Trainer Kit
of AVR Trainer Kit
(SPI) allows high speed-synchronous data transfer between the
peripheral devices or between several AVR devices.
features 6 easily accessible pins for SPI.VCC,GND
.By these pins you can connect any SPI supported device to the microcontroller.
Bangladesh
synchronous data transfer between the
peripheral devices or between several AVR devices. The SPI pinout
.VCC,GND, MISO, MOSI,
.By these pins you can connect any SPI supported device to the microcontroller.
TechShop, 39, ARA Bhaban,
33
Fig:schematic of SPI Pinout
Fig: SPI Pinout
6. USART PINOUT:
When USART module is used, it’s possible to connect the microcontroller of the development
board to any external device that supports USART communication
Fig:schematic of
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
schematic of SPI Pinout of AVR Trainer Kit
SPI Pinout of AVR Trainer Kit
:
When USART module is used, it’s possible to connect the microcontroller of the development
device that supports USART communication.
schematic of USART Pinout of AVR Trainer Kit
Bangladesh
When USART module is used, it’s possible to connect the microcontroller of the development
TechShop, 39, ARA Bhaban,
34
Fig:schematic of USART Pinout
7. I2C PINOUT:
The I2C PINOUT of AVR Trainer Kit
that you can easily connect the microcontroller to any I2C supported device.
Fig: schematic of I2C Pinou
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
schematic of USART Pinout of AVR Trainer Kit
AVR Trainer Kit features VCC, GND, TX1 and RX0 pins
that you can easily connect the microcontroller to any I2C supported device.
I2C Pinout of AVR Trainer Kit
Bangladesh
features VCC, GND, TX1 and RX0 pins side by side so
TechShop, 39, ARA Bhaban,
35
Fig: Connecting RTC module with I2C pins of
8 Fuse Bytes
I guess many of you were confused when programming AVR fuse bytes. I get many newbie
questions like I programmed AVR but it doesn’t work. 90% of them
and make them DEAD or unusable. In this tutorial first I will discuss about fuse bits and then
how to active so called “DEAD” chips.
8.1 Introduction
Fuses are an extremely important part
thoroughly. You only need to set them once, but if you don't do it right, it's a disaster!
You know about flash, EEPROM and RAM as parts of the chip. What I did not mention is that
there are also 3 bytes of permanent (by permanent I mean that the
out, but you can change them as many times as you'd like) storage called the fuses. The fuses
determine how the chip will act, whether it has a bootloader, what speed and voltage it likes to
run at, etc. Note that despite being called 'fuses' they are re
do with protection from overpowering (like the fuses in a home).
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
Connecting RTC module with I2C pins of AVR Trainer Kit
I guess many of you were confused when programming AVR fuse bytes. I get many newbie
questions like I programmed AVR but it doesn’t work. 90% of them always set wrong fuse bytes
and make them DEAD or unusable. In this tutorial first I will discuss about fuse bits and then
how to active so called “DEAD” chips.
Fuses are an extremely important part of programming a chip, but are rarely e
thoroughly. You only need to set them once, but if you don't do it right, it's a disaster!
You know about flash, EEPROM and RAM as parts of the chip. What I did not mention is that
there are also 3 bytes of permanent (by permanent I mean that they stick around after power goes
out, but you can change them as many times as you'd like) storage called the fuses. The fuses
determine how the chip will act, whether it has a bootloader, what speed and voltage it likes to
ing called 'fuses' they are re-settable and don’t have anything to
do with protection from overpowering (like the fuses in a home).
Bangladesh
AVR Trainer Kit
I guess many of you were confused when programming AVR fuse bytes. I get many newbie
always set wrong fuse bytes
and make them DEAD or unusable. In this tutorial first I will discuss about fuse bits and then
programming a chip, but are rarely explained
thoroughly. You only need to set them once, but if you don't do it right, it's a disaster!
You know about flash, EEPROM and RAM as parts of the chip. What I did not mention is that
y stick around after power goes
out, but you can change them as many times as you'd like) storage called the fuses. The fuses
determine how the chip will act, whether it has a bootloader, what speed and voltage it likes to
settable and don’t have anything to
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
36
The fuses are documented in the datasheets, but the best way to examine the fuses is to look at a
fuse calculator such as in “MikroC” compiler. Please collect the latest version. When I am
writing this tutorial I have version 5.6 in my hand.
If you want to enable something in AVR what you do? Most probably you set corresponding bit
as ‘1’, right? For Fuse bit its opposite. Here „1‟ means un-programmed or disable and ‘0’ means
programmed or enable.
Always remember these.
Fuse bit = 0 => fuse bit is PROGRAMMED
Fuse bit = 1 => fuse bit is UN-PROGRAMMED
Open a project. I am assuming that you are using ATmega16. Go to “Project Menu” and click on
“Edit Project” (Shifht+Ctrl+E). A window will open just like below:
SPIEN bit is for programming. It should be enabled for loading program into chip. If you disable
it you can’t program any more. So ‘MikroC’ makes this fixed and you can’t change it. If you
check other bits (Like: JTAGEN) you will see the corresponding bits in “Configuration
Registers” box (bottom right) changed to Zero. For more about other fuse bits browse
ATmega16’s datasheet, page 255. I’d like to mention one thing before I go to next stage. By
default in ATmega16, JTAG is enabled by default. That’s why you can’t use PORTC2-5 as
digital I/O. So you have to disable it.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
37
8.2 Brown Out Detect (BOD)
The first drop down menu is “Brown Out Detect”. These fuses set what voltage to turn the
Brown out protection circuitry on. A brownout for a chip means that the power voltage is too
low for it to run reliably at the speed of the clock.
For example, the ATTiny2313 can run as fast at 20MHz but only if the power voltage is between
4.5V and 5.5V. If the voltage is lower than that, it may behave erratically, erasing or overwriting
the RAMand EEPROM. It may also start running random piece of the flash program. To keep it
from doing that, set the brownout voltage to 4.3V, then if the voltage dips, the chip will turn off
until the voltage returns. It will then reset and start over.
If the chip is meant to run at 5V, set the brown-out to 4.3V. If the chip can run at voltage as low
as 3.3V you can set the brown-out to 1.8V. If the chip is a 'low voltage compatible' chip such as
the attiny2313V (which can run at voltage as low as 1.8V if it’s clocked at 4MHz or less) then
you can set the brownout to 1.8V.
For simplicity, disable it.
8.3 Clock Selection
The 2nd
option is how the chip is clocked. Every CPU uses a clock, in general one assembly code
instruction is run at every clock cycle. The one in your PC has a clock that runs at 1GHz or
higher. This little chip runs much slower. If you look at the menu you'll see a huge list of
options, but looking carefully you'll see there are two groupings, the Clock Source and the
Startup Time.
The Clock Source can be either of the following:
External Clock, Internal 8MHz clock, Internal 4MHz clock,
Internal 128KHz clock, External Crystal (0.4-0.9 MHz), External
Crystal (0.9MHz - 3.0MHz), External Crystal (3.0MHz - 8.0MHz)
or External Crystal (8.0MHz +)
External Clock means that a square wave is being input into the CLOCK-IN pin. This is pretty
rare unless you have a clock generating chip. Don't use this unless you're sure you mean to.
Internal Clock means that there’s a little oscillator inside the chip, it’s not very precise but good
for most projects that don’t have fine timing issues. The clock varies with temperature and the
power supply voltage. You can choose from a 1MHz, 2MHz, 4MHz or 8MHz clock. Having an
internal oscillator means we don't need to wire up a crystal and we can use the clock pins for our
own nefarious purposes.
External Crystal, If you need a special clock rate, like 3.58MHz or 12MHz or a high precision
clock that won't drift with the temperature, you'll want an external crystal or oscillator.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
38
Clock settings have following options:
Beginners usually use internal 1MHz to 8 MHz. Sochoose internal oscillator. For this tutorial I
choose Int. RC Osc. 1 MHz.
8.4 StartupTime
The Startup time can be either of the following: 6CK + 0 ms, 6CK + 4 ms, 6CK + 64 ms.
The Startup Time is just how long the clock source needs to be stable from when power is first
applied. Always go with the longest setting 6CK + 64ms unless you know for a fact your clock
source needs less time and 64ms is too long to wait.
The “Start-up Time” menu has following options. Choose the 64ms:
By default, chips that come from the factory have the Internal 1 MHz clock with 6CK + 0ms
Startup. So, in configuration register box I see the fuse bits are: LOW: 0xE1 HIGH: 0xD9
It’s time to load this bit into chip.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
39
8.5 Writing Fuse Bytes (By AVRpal.net):
If your chip is brand new, then by default its clock frequency is set into internal 1 MHz. So, in
AVRpal.net you have to check “Set Slow SCK” box. If you change the fuse bits for higher
frequency then you can either “check” or “uncheck” Slow SCK, your choice. The difference is,
when “Slow SCK” is checked the program will load slowly and vice versa. REMEMBER, if
clock set to 1 MHZ, you have to check “Slow SCK” box. Otherwise it won’t work.
So write fuse bytes in corresponding box and press ‘Write fuses’.
9. Trouble Shooting!
I think the above tutorial will help you set fuse bits properly. But though what if you set wrong
fuse bit? (Most of the time it happens with pony prog user). Here comes the solution:
If your programmer does not detect you chip:
1) First check, is “SLOW SCK” checked (in AVRpal)? If not, then put ‘Check’ and try again.
2) If till problem remains then put a crystal (12 or 16MHz, I prefer 16MHz) between XTAL1
and XTAL2 pin (if you are using ISP connector to program), with “SLOW SCK” checked. Most
of the time problem will solve in this stage.
3) If till problem exist then maybe you disabled SPIEN bit, which is unlikely, a rare situation,
but definitely it isn’t for wrong clock fuse bit. If that is the situation then you need high voltage
programmer (like TopWin). Also you can use “Fuse bit Doctor” (Google it!).
4) Check the Target mcu’s Vcc and GND pin; see if they get between 4.5 to 5.5V.
5) ‘Short Test’of MOSI, MISO, SCK, RST pin between your programmer and your chip.
I hope the five steps above will solve your problem.
TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh
40
10. Warranty
Product warranty is valid for 6 months. Warranty only applies to manufacturing defect. Damage
caused by misuse is not covered under warranty. Warranty does not cover freight cost for both
ways.
Servicing is free for life time.
Thank you for using TechShop’s Product.

More Related Content

What's hot

Boolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuitsBoolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuitsJaipal Dhobale
 
8051-mazidi-solution
8051-mazidi-solution8051-mazidi-solution
8051-mazidi-solutionZunAib Ali
 
Bcd to 7 segment display
Bcd to 7 segment displayBcd to 7 segment display
Bcd to 7 segment displayMaulik Sanchela
 
synchronous Sequential circuit counters and registers
synchronous Sequential circuit counters and registerssynchronous Sequential circuit counters and registers
synchronous Sequential circuit counters and registersDr Naim R Kidwai
 
ALU arithmetic logic unit
ALU  arithmetic logic unitALU  arithmetic logic unit
ALU arithmetic logic unitKarthik Prof.
 
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...Arti Parab Academics
 
Encoder, decoder, multiplexers and demultiplexers
Encoder, decoder, multiplexers and demultiplexersEncoder, decoder, multiplexers and demultiplexers
Encoder, decoder, multiplexers and demultiplexerspubgalarab
 
Arduino : how to get started
Arduino : how to get startedArduino : how to get started
Arduino : how to get started동호 손
 
189626882 ep227-digital-electronics
189626882 ep227-digital-electronics189626882 ep227-digital-electronics
189626882 ep227-digital-electronicsDimple Bansal
 
Mini Project on 4 BIT SERIAL MULTIPLIER
Mini Project on 4 BIT SERIAL MULTIPLIERMini Project on 4 BIT SERIAL MULTIPLIER
Mini Project on 4 BIT SERIAL MULTIPLIERj naga sai
 
Two port networks (y parameters)
Two port networks (y parameters)Two port networks (y parameters)
Two port networks (y parameters)bhupendra kumar
 
Decoders
DecodersDecoders
DecodersRe Man
 
Half adder and full adder
Half adder and full adderHalf adder and full adder
Half adder and full adderSanjuktaBanik
 
Impedance parameters
Impedance parametersImpedance parameters
Impedance parametersAhmad Nauman
 
Small signal analysis of bjt amplifiers
Small signal analysis of bjt amplifiersSmall signal analysis of bjt amplifiers
Small signal analysis of bjt amplifiersPRAVEENA N G
 

What's hot (20)

Boolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuitsBoolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuits
 
Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
 
8051-mazidi-solution
8051-mazidi-solution8051-mazidi-solution
8051-mazidi-solution
 
Bcd to 7 segment display
Bcd to 7 segment displayBcd to 7 segment display
Bcd to 7 segment display
 
Feedback amplifier
Feedback amplifierFeedback amplifier
Feedback amplifier
 
synchronous Sequential circuit counters and registers
synchronous Sequential circuit counters and registerssynchronous Sequential circuit counters and registers
synchronous Sequential circuit counters and registers
 
Bond Graph
Bond GraphBond Graph
Bond Graph
 
ALU arithmetic logic unit
ALU  arithmetic logic unitALU  arithmetic logic unit
ALU arithmetic logic unit
 
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
 
Encoder, decoder, multiplexers and demultiplexers
Encoder, decoder, multiplexers and demultiplexersEncoder, decoder, multiplexers and demultiplexers
Encoder, decoder, multiplexers and demultiplexers
 
Z parameters
Z parametersZ parameters
Z parameters
 
Prom
PromProm
Prom
 
Arduino : how to get started
Arduino : how to get startedArduino : how to get started
Arduino : how to get started
 
189626882 ep227-digital-electronics
189626882 ep227-digital-electronics189626882 ep227-digital-electronics
189626882 ep227-digital-electronics
 
Mini Project on 4 BIT SERIAL MULTIPLIER
Mini Project on 4 BIT SERIAL MULTIPLIERMini Project on 4 BIT SERIAL MULTIPLIER
Mini Project on 4 BIT SERIAL MULTIPLIER
 
Two port networks (y parameters)
Two port networks (y parameters)Two port networks (y parameters)
Two port networks (y parameters)
 
Decoders
DecodersDecoders
Decoders
 
Half adder and full adder
Half adder and full adderHalf adder and full adder
Half adder and full adder
 
Impedance parameters
Impedance parametersImpedance parameters
Impedance parameters
 
Small signal analysis of bjt amplifiers
Small signal analysis of bjt amplifiersSmall signal analysis of bjt amplifiers
Small signal analysis of bjt amplifiers
 

Similar to Avr trainer kit manual

Elegoo Super Starter Kit for UNO V1.0.2017.7.9.pdf
Elegoo Super Starter Kit for UNO V1.0.2017.7.9.pdfElegoo Super Starter Kit for UNO V1.0.2017.7.9.pdf
Elegoo Super Starter Kit for UNO V1.0.2017.7.9.pdfasdasdasd25145
 
Pic programming gettingstarted
Pic programming gettingstartedPic programming gettingstarted
Pic programming gettingstartedAjit Padmarajan
 
Touch boardplus user guide
Touch boardplus user guideTouch boardplus user guide
Touch boardplus user guideWilliam McIntosh
 
Tac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PITac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PICliff Samuels Jr.
 
creative 1130
creative 1130creative 1130
creative 1130lobo9000
 
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdfAdvanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdfWiseNaeem
 
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdfAdvanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdfWiseNaeem
 
BMW Standard tools 2.12 on win7 64 bit
BMW Standard tools 2.12 on win7 64 bitBMW Standard tools 2.12 on win7 64 bit
BMW Standard tools 2.12 on win7 64 bitOBD365
 
Instructions for Use of the Renesas C Compiler for the Robo Interface
Instructions for Use of the Renesas C Compiler for the Robo InterfaceInstructions for Use of the Renesas C Compiler for the Robo Interface
Instructions for Use of the Renesas C Compiler for the Robo InterfacePaulo Marcelo Pontes
 
Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10stemplar
 
arduino
arduinoarduino
arduinomurbz
 
ROCm and Distributed Deep Learning on Spark and TensorFlow
ROCm and Distributed Deep Learning on Spark and TensorFlowROCm and Distributed Deep Learning on Spark and TensorFlow
ROCm and Distributed Deep Learning on Spark and TensorFlowDatabricks
 
install k+dcan cable standard tools 2.12 on windows 10 64bit
install k+dcan cable standard tools 2.12 on windows 10 64bitinstall k+dcan cable standard tools 2.12 on windows 10 64bit
install k+dcan cable standard tools 2.12 on windows 10 64bitWORLD OBD2
 

Similar to Avr trainer kit manual (20)

Elegoo Super Starter Kit for UNO V1.0.2017.7.9.pdf
Elegoo Super Starter Kit for UNO V1.0.2017.7.9.pdfElegoo Super Starter Kit for UNO V1.0.2017.7.9.pdf
Elegoo Super Starter Kit for UNO V1.0.2017.7.9.pdf
 
Pic programming gettingstarted
Pic programming gettingstartedPic programming gettingstarted
Pic programming gettingstarted
 
Touch boardplus user guide
Touch boardplus user guideTouch boardplus user guide
Touch boardplus user guide
 
Touch boardplus user gude
Touch boardplus user gudeTouch boardplus user gude
Touch boardplus user gude
 
Touch board user guide
Touch board user guideTouch board user guide
Touch board user guide
 
Tac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PITac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PI
 
creative 1130
creative 1130creative 1130
creative 1130
 
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdfAdvanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
 
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdfAdvanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
 
BMW Standard tools 2.12 on win7 64 bit
BMW Standard tools 2.12 on win7 64 bitBMW Standard tools 2.12 on win7 64 bit
BMW Standard tools 2.12 on win7 64 bit
 
Instructions for Use of the Renesas C Compiler for the Robo Interface
Instructions for Use of the Renesas C Compiler for the Robo InterfaceInstructions for Use of the Renesas C Compiler for the Robo Interface
Instructions for Use of the Renesas C Compiler for the Robo Interface
 
Pdf developer faq
Pdf developer faqPdf developer faq
Pdf developer faq
 
Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10
 
arduino
arduinoarduino
arduino
 
Power supply learning kit for uno
Power supply learning kit for unoPower supply learning kit for uno
Power supply learning kit for uno
 
ROCm and Distributed Deep Learning on Spark and TensorFlow
ROCm and Distributed Deep Learning on Spark and TensorFlowROCm and Distributed Deep Learning on Spark and TensorFlow
ROCm and Distributed Deep Learning on Spark and TensorFlow
 
Start with arduino
Start with arduinoStart with arduino
Start with arduino
 
Report on Advanced Robotics & Programming
Report on Advanced Robotics & ProgrammingReport on Advanced Robotics & Programming
Report on Advanced Robotics & Programming
 
notes about Arduino
notes about Arduinonotes about Arduino
notes about Arduino
 
install k+dcan cable standard tools 2.12 on windows 10 64bit
install k+dcan cable standard tools 2.12 on windows 10 64bitinstall k+dcan cable standard tools 2.12 on windows 10 64bit
install k+dcan cable standard tools 2.12 on windows 10 64bit
 

More from LITS IT Ltd,LASRC.SPACE,SAWDAGOR BD,FREELANCE BD,iREV,BD LAW ACADEMY,SMART AVI,HEA,HFSAC LTD.

More from LITS IT Ltd,LASRC.SPACE,SAWDAGOR BD,FREELANCE BD,iREV,BD LAW ACADEMY,SMART AVI,HEA,HFSAC LTD. (20)

লালমনিরহাট ৩ আসনের ভোট কেন্দ্র সমুহ - LALMONIRHAT 3 SADAR VOTE CENTER ALL
লালমনিরহাট ৩ আসনের ভোট কেন্দ্র সমুহ - LALMONIRHAT 3 SADAR VOTE CENTER ALLলালমনিরহাট ৩ আসনের ভোট কেন্দ্র সমুহ - LALMONIRHAT 3 SADAR VOTE CENTER ALL
লালমনিরহাট ৩ আসনের ভোট কেন্দ্র সমুহ - LALMONIRHAT 3 SADAR VOTE CENTER ALL
 
লালমনিরহাট ৩ আসনের ওয়ার্ড সমূহ - LALMONIRHAT 3 WARD LIST ALL
লালমনিরহাট ৩ আসনের ওয়ার্ড সমূহ - LALMONIRHAT 3 WARD LIST ALLলালমনিরহাট ৩ আসনের ওয়ার্ড সমূহ - LALMONIRHAT 3 WARD LIST ALL
লালমনিরহাট ৩ আসনের ওয়ার্ড সমূহ - LALMONIRHAT 3 WARD LIST ALL
 
ভূমি সংশ্লিষ্ট অপরাধ প্রতিকার ও প্রতিরোধ ৩৬ নং আইন, ২০২৩,
ভূমি সংশ্লিষ্ট অপরাধ প্রতিকার ও প্রতিরোধ  ৩৬ নং আইন, ২০২৩, ভূমি সংশ্লিষ্ট অপরাধ প্রতিকার ও প্রতিরোধ  ৩৬ নং আইন, ২০২৩,
ভূমি সংশ্লিষ্ট অপরাধ প্রতিকার ও প্রতিরোধ ৩৬ নং আইন, ২০২৩,
 
CrPC BARE ACT -1898 BANGLA.pdf
CrPC BARE ACT -1898  BANGLA.pdfCrPC BARE ACT -1898  BANGLA.pdf
CrPC BARE ACT -1898 BANGLA.pdf
 
CPC BARE ACT -1908 BANGLA.pdf
CPC BARE ACT -1908  BANGLA.pdfCPC BARE ACT -1908  BANGLA.pdf
CPC BARE ACT -1908 BANGLA.pdf
 
PC BARE ACT -1860 BANGLA.pdf
PC BARE ACT -1860  BANGLA.pdfPC BARE ACT -1860  BANGLA.pdf
PC BARE ACT -1860 BANGLA.pdf
 
SR BARE ACT -1877 BANGLA.pdf
SR BARE ACT -1877  BANGLA.pdfSR BARE ACT -1877  BANGLA.pdf
SR BARE ACT -1877 BANGLA.pdf
 
The Bangladesh Legal Practitioner_s and Bar Council Order, 1972.pdf
The Bangladesh Legal Practitioner_s and Bar Council Order, 1972.pdfThe Bangladesh Legal Practitioner_s and Bar Council Order, 1972.pdf
The Bangladesh Legal Practitioner_s and Bar Council Order, 1972.pdf
 
LA BARE ACT -1908 BANGLA.pdf
LA BARE ACT -1908  BANGLA.pdfLA BARE ACT -1908  BANGLA.pdf
LA BARE ACT -1908 BANGLA.pdf
 
EA BARE ACT -1872 BANGLA.pdf
EA BARE ACT -1872  BANGLA.pdfEA BARE ACT -1872  BANGLA.pdf
EA BARE ACT -1872 BANGLA.pdf
 
DIGITAL COMMERCE LAWS & RULES 2021.docx
DIGITAL COMMERCE LAWS & RULES 2021.docxDIGITAL COMMERCE LAWS & RULES 2021.docx
DIGITAL COMMERCE LAWS & RULES 2021.docx
 
Programming Your Home Automate with Arduino, Android, and Your Computer.pdf
Programming Your Home Automate with Arduino, Android, and Your Computer.pdfProgramming Your Home Automate with Arduino, Android, and Your Computer.pdf
Programming Your Home Automate with Arduino, Android, and Your Computer.pdf
 
Web site Review & Description by tanbircox.pdf
Web site Review & Description by tanbircox.pdfWeb site Review & Description by tanbircox.pdf
Web site Review & Description by tanbircox.pdf
 
Basic Electronics.pdf
Basic Electronics.pdfBasic Electronics.pdf
Basic Electronics.pdf
 
Circuit book_PP.pdf
Circuit book_PP.pdfCircuit book_PP.pdf
Circuit book_PP.pdf
 
Microcontroller.pdf
Microcontroller.pdfMicrocontroller.pdf
Microcontroller.pdf
 
Digital_electronics_dynamic.pdf
Digital_electronics_dynamic.pdfDigital_electronics_dynamic.pdf
Digital_electronics_dynamic.pdf
 
Project Electronics_Copy.pdf
Project Electronics_Copy.pdfProject Electronics_Copy.pdf
Project Electronics_Copy.pdf
 
বিবিসি রুলেস ও অরডার, ১৯৭২ বেয়ার এক্ট -BBC BARE ACT.docx
বিবিসি রুলেস ও অরডার, ১৯৭২ বেয়ার এক্ট -BBC BARE ACT.docxবিবিসি রুলেস ও অরডার, ১৯৭২ বেয়ার এক্ট -BBC BARE ACT.docx
বিবিসি রুলেস ও অরডার, ১৯৭২ বেয়ার এক্ট -BBC BARE ACT.docx
 
সুঃ প্রতিকার আইন ১৮৭৭ নোট.docx
সুঃ প্রতিকার আইন ১৮৭৭ নোট.docxসুঃ প্রতিকার আইন ১৮৭৭ নোট.docx
সুঃ প্রতিকার আইন ১৮৭৭ নোট.docx
 

Recently uploaded

CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage examplePragyanshuParadkar1
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 

Recently uploaded (20)

CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage example
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 

Avr trainer kit manual

  • 1. TechShop, 39, ARA Bhaban, 1 AVR Trainer Kit User Manual TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh AVR Trainer Kit User Manual Bangladesh Trainer Kit
  • 2. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 2 Contents Contents……………………………………………………………………………………..3 Version History…………………………………………………………………………....4 1. Introduction………………………………………………...…………………………...6 1.1 Kit Contents……………………………………………………………………....6 1.2 What’s on board?…………………………………………………………………7 2. How do I Start? ……………………………………………………………………………8 2.1 Driver Installation………………………………………………………………....8 2.2 Programming Software…………………………………………………………....12 2.2.1 AVRpal………………………………………………………………….13 2.2.2 eXtreme Burner…………………………………………………………15 3. Board Features……………………………………………………………………….....18 3.1 AVR Programmer…………………………………………………………………18 3.2 Oscillator……………………………………………………………………….....18 3.3 Power Supply……………………………………………………………………..19 3.4 LED Interfacing………………………………………………………………......20 3.5 Push Button Interfacing………………………………………………………......22 3.6 Seven Segment Display Interfacing………………………………………………23 3.7 ADC Interfacing……………………………………………………………….....24 3.8 LCD Interfacing………………………………………………………………......27 3.9 Buzzer Interfacing………………………………………………………………...28 3.10 Joystick Interfacing……………………………………………………………...29 3.11 Infrared Device Interfacing……………………………………………………..29 3.12 1-Wire Communication……………………………………………………….... 30 4. ISP Pinout………………………………………………………...…………………….31
  • 3. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 3 5. SPI Pinout……………………………………...…………………………………….....32 6. USART Pinout ………………………………………………………………...…........33 7. I2C Pinout………………………………………………………………………...….....34 8. Fuse Bytes………………………………………………………………………...........35 8.1 Introduction…………………………………………………………………....................35 8.2 Brown Out Detection (BOD) ……………………………………….................................37 8.3 Clock Selection………………………………………………………………………..….37 8.4 Startup Time………………………………………………………………………………38 8.5 Writing Fuse Bytes………………………………………………………………………..39 9. Troubleshooting………………………………………………………………………….....39 10.Warranty…………………………………………………………………………...............40
  • 4. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 4 Document Title AVR Trainer Kit User Manual Version 1.3 Date 2014-11-14 Status Design Changed Document Control ID AVR Trainer Kit_Manual_V1.3 General Notes TechShop offers this information as a service to its customers, to support application and engineering efforts that use the products designed by TechShop. The information provided is based upon requirements specifically provided to TechShop by the customers. TechShop has not undertaken any independent search for additional relevant information, including any information that may be in the customer’s possession. Furthermore, system validation of this product designed by TechShop within a larger electronic system remains the responsibility of the customer or the customer’s system integrator. All specifications supplied herein are subject to change. Copyright This document contains proprietary technical information which is the property of TechShop Bangladesh Limited, copying of this document and giving it to others and the using or communication of the contents thereof, are forbidden without express authority. Offenders are liable to the payment of damages. All rights reserved in the event of grant of a patent or the registration of a utility model or design. All specification supplied herein are subject to change without notice at any time. Copyright © TechShop Bangladesh Ltd., Dhaka, Bangladesh, 2013
  • 5. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 5 Version History Date Version Description of change Designer 2010-01-27 1.0 Origin FahadMirza 2013-05-30 1.1 Design Changed FahadMirza 2014-08-01 1.2 PS2 Removed Nur Mohammad 2014-11-14 1.3 Single Layer PCB Nur Mohammad
  • 6. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 6 1. Introduction AVR Trainer Kit is anexcellent developmentkit for novices for programming and experimenting with AVR microcontrollers from Atmel. It includes an On-board programmer which provides an interface between PC and microcontroller. All you have to do is to write the program in any AVR compiler, generate the hex file, connect the board to your computer’s USB port, place the microcontroller on the ZIF socket and load the program to the microcontroller. A number of buttons, jumpers and connectors are there to help the microcontroller to be interfaced with the peripherals. 1.1 Kit contents This kit contents: • AVR Trainer Kit Board. • Standard USB cable (A to B). • Some jumpers and Connectors. • User Guide DVD Many of us made our first steps in embedded world with AVR Trainer Kit™ . Today it has thousands of users: students, hobbyists, enthusiasts and professionals. We asked ourselves what we can do to make such a great board even greater. And we made some brilliant changes. We focused all of our creativity and knowledge into making a revolutionary new design, unlike any previous version of the board. We now present you with the new version, it’s portable, pluggable. We hope that you will be thrilled with your new board, just as we are.
  • 7. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 7 1.2 What’s On Board 1)ZIF Socket for ATmega16A/ATmega32A, with accessible I/O, grouped by PORT. 2)On board Programmer. 3)USB connector, connection with PC. 4)Crystal Oscillator (Default 16MHz). It’s replaceable. 5)External Supply Socket (5V). 6)SPI Pinout. 7)ISP Pinout. 8)USART Pinout. 9)I2C Pinout. 10)Seven Segment Display Interfacing. 11)LCD Interfacing Connector. 12)LCD Contrast. 13)ADC Interfacing. 14)Push Button Interfacing. 15)I/O Expander. 16) RESET Circuitry. 17) 8 LEDs Interfacing. 18) Buzzer Interfacing. 19) Infrared Interfacing.
  • 8. TechShop, 39, ARA Bhaban, 8 20)1-WireCommunication Interfacing. 21) Power Switch. 22) Vcc-GND power pin. 23) Joystick Pinout 2. How do I Start? Step 1: Use the USB cable to connect the the USB cable provided with a connector of the USB B type should be connected to the development board as shown in figure below; whereas, the other end of the cable (A type) should be connected to the PC. As soon a ‘power’ will glow. Step 2: Now you’ll need to install the driver of the programmer. driver is needed. Windows requires a driver. In order to complete the installation, you need to follow several steps. This procedure will only focus on Window 7. 2.1 Driver Installation 1. Unzip the ‘Driver’ file (included in the DVD and in our sit the USB port of your PC. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh Interfacing. Use the USB cable to connect the AVR Trainer Kit development board to your PC. One end of the USB cable provided with a connector of the USB B type should be connected to the development board as shown in figure below; whereas, the other end of the cable (A type) should be connected to the PC. As soon as the board is connected to the PC, the green LED marked as Now you’ll need to install the driver of the programmer. On Linux and MacOS X no driver is needed. Windows requires a driver. In order to complete the installation, you need to follow several steps. This procedure will only focus on Window 7. 1. Unzip the ‘Driver’ file (included in the DVD and in our site) and connect AVR Trainer Kit Connecting AVR Trainer Kit to a computer’s USB Port Bangladesh development board to your PC. One end of the USB cable provided with a connector of the USB B type should be connected to the development board as shown in figure below; whereas, the other end of the cable (A type) should s the board is connected to the PC, the green LED marked as On Linux and MacOS X no kernel driver is needed. Windows requires a driver. In order to complete the installation, you need to AVR Trainer Kit to Connecting AVR Trainer Kit to a computer’s USB Port Power Indicator LED
  • 9. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 9 2. Open Device Manager, find the entry for the USBasp and it should be displayed with a yellow alert icon on it. Then right click on the device and select “Update Driver Software”. 3. After you left click the “Update Driver Software”, it will come out with “How do you want to search for driver software?” Then choose the second one which is “Browse my computer for driver software” and click into it.
  • 10. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 10 4. After that, you will see the screen which will prompt out “Browse for driver software on your computer”. Select the driver folder (…Driverlibusb_1.2.4.0),then click “Next”. 5. Next, the windows will prompt out a “Windows Security” with a red warning dialog. Do not worry about it, and just click “Install this driver software anyway” and the driver will install.
  • 11. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 11 6. After click it, the next step is to wait a few seconds to let your computer to process the installation of driver software. 7. Now, you can use the programmer to do the programming for the microcontroller.
  • 12. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 12 Step 3: AVR Trainer Kit™ supports two most popular mcu, ATmega16A and ATmega32A. Now place your desired mcu into theZIF socket, as shown below. You are good to go now. NOTE:You can load other microcontrollers through ISP pinout. 2.2 Programming Software There are varieties of software which can work for the programmer. These are: • AVRpal – Version 3.1 or later. A great GUI of avrdude. We normally use this software. • eXtreme Burner – An easy to use GUI application. Our second favorite software. • Khazama AVR Programmer – An AVRdude GUI for MS Windows. • BASCOM-AVR – Version 1.11.9.6 or later. • ProgISP 1.72 – Supports various hardware, including USBasp, STK200 etc. For the list of the software above, we have no responsibility to teach users how to use;users must study themselves in order to use it.
  • 13. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 13 2.2.1 AVRpal 1. At the time I am writing this manual, I have V3.1 in my hand. 2. If AVRpal.net detect you programmer, then “Programmer Connected” and “Firmware Full Compatible” LED will lit. 3. Now click on the “Black Box” (which actually represents IC -_-), and software will detect which mcu ispresent in the ZIF socket. Make sure you checked “Set Slow SCK”. A detail on “Slow SCK” isdiscussed in “Fuse Bytes” section.
  • 14. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 14 4. So, it detects my mcu (ATmega16). To load “Hex” file browse it from “Select File”. 5. You can also read/write fuses. Take great care when you change the fuse bits. If you do not know anything about fuse bits, please read “Fuse Bytes” section first .
  • 15. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 15 6. By using fuse “Editor” you can save fuse byte for specific mcu.For instance, I frequently use L=0xE4 / H=0xD9 fuse bytes for ATmega16A. So I named it “General_8MHz” and then press “Save”. 7. Now if you click on the “Fuse Shortcuts” drop down menu, you’ll see “General_8MHz”. If you select it, corresponding fuse bytes will load. If there is another mcu in ZIF socket other than ATmega16A, it won’t be available, which will preventfrom writing wrong fuse bytes!! 2.2.2 eXtreme Burner No need to install Driver for USBasp, its included in the Extreme Burner Installation. Programming Steps are: 1) Plug the AVR Programmer into your Windows PC. 2) Install the “Extreme Burner V1.2”. Driver will be installed with the installation process. 3) Open Extreme Burner. 4) Under drop-down menu choose your desired chip.
  • 16. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 16 5) Click on the Fuse Bits/Settings tab and choose “Read All” for read your chip’s Fuse Bytes. 6) If you want to write Fuse Bytes into your chip, write down it on the blank boxes, check the “write”, and then press write. For more on Fuse Bytes check the “Fuse Bytes” chapter. Also you can visit: http://www.engbedded.com/fusecalc/ 7) For loading Hex file press “Open” and browse the hex file. 8) From the drop-down menu choose Write > Flash
  • 17. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 17 9) If programming is successful you will see just like below: To know more about this software, you can visit the official site (eXtreme Electronics): http://extremeelectronics.co.in/avr-tutorials/gui-software-for-usbasp-based-usb-avr- programmers/ Buckle up, because now we are going to introduce you with the features of the boards.
  • 18. TechShop, 39, ARA Bhaban, 18 3. Board Features 3.1 AVR Programmer Fig: Programmer unit of The on board programmer is shown in the above figure burning mcu outside of the board. SLW_SCK is easily accessible by a slide switch eXtreme Burner). To know more 3.2 Oscillator There is a non-soldered, replaceable c source. Its maximum value depends on the maximum frequency of the microcontroller. board comes with the 16MHz crystal. ISP Connector TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh AVR Programmer Fig: Programmer unit of AVR Trainer Kit The on board programmer is shown in the above figure. The ISP connectors are available for burning mcu outside of the board. SLW_SCK is easily accessible by a slide switch eXtreme Burner). To know more about Slow SCK go through ‘Fuse Bytes’ chapter. soldered, replaceable crystal oscillator on the board used as an source. Its maximum value depends on the maximum frequency of the microcontroller. omes with the 16MHz crystal. Bangladesh The ISP connectors are available for burning mcu outside of the board. SLW_SCK is easily accessible by a slide switch (required for about Slow SCK go through ‘Fuse Bytes’ chapter. the board used as an external clock source. Its maximum value depends on the maximum frequency of the microcontroller. The The programmer IC BUSY indicator Slow SCK Switch
  • 19. TechShop, 39, ARA Bhaban, 19 Fig: Schematic of crystal oscillator of 3.3 Power Supply The AVR Trainer Kit development board can use two power supply sources: 1. +5V power supply through the USB programming cable. 2. External power supply connected to a DC socket mounted on the development board. 16MHz Crystal Oscillator TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh Fig: Schematic of crystal oscillator of AVR Trainer Kit development board can use two power supply sources: power supply through the USB programming cable. External power supply connected to a DC socket mounted on the development board. Crystal Removed From Socket Bangladesh External power supply connected to a DC socket mounted on the development board. Crystal Removed From Socket
  • 20. TechShop, 39, ARA Bhaban, 20 Fig: NOTE: The USB supply of the board come directly from USB port of computer; it is advised not to use this power source to power application circuit or device. Wrong connection such as wrong polarity, wrong voltage, shorted might permanently damage your computer. NOTE:Use 4.5-5.3V as an external source. your components. Take extra caution when using external source. Check out techshopbd.com for appropriate 5v adapter. 3.4 LED Interfacing LED (Light-Emitting Diode) is a highly efficient electronic light source. A common LED diode voltage is approximately 2.5V, while the current varies from 0.2mA to 20mA, depending on the type of the LED. The AVR Trainer Kit consumption of 0.2mA or 0.3mA. Board contains 8 LEDs which can be used for visual indication of the logic state on PORT pins. An active LED indicates that a logic high (1) is TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh Fig: Schematic of external supply unit The USB supply of the board come directly from USB port of computer; it is advised not to use this power source to power application circuit or device. Wrong connection such as wrong polarity, wrong voltage, shorted might permanently damage your computer. 5.3V as an external source. Voltage more than that might burn your components. Take extra caution when using external source. Check out techshopbd.com for appropriate 5v adapter. Emitting Diode) is a highly efficient electronic light source. A common LED diode voltage is approximately 2.5V, while the current varies from 0.2mA to 20mA, depending on the AVR Trainer Kit™ board uses low-current LEDs with consumption of 0.2mA or 0.3mA. Board contains 8 LEDs which can be used for visual indication of the logic state on PORT pins. An active LED indicates that a logic high (1) is Bangladesh The USB supply of the board come directly from USB port of computer; it is advised not to use this power source to power application circuit or device. Wrong connection such as wrong polarity, wrong voltage, shorted might Voltage more than that might burn your components. Take extra caution when using external source. Check out Emitting Diode) is a highly efficient electronic light source. A common LED diode voltage is approximately 2.5V, while the current varies from 0.2mA to 20mA, depending on the current LEDs with typical current consumption of 0.2mA or 0.3mA. Board contains 8 LEDs which can be used for visual indication of the logic state on PORT pins. An active LED indicates that a logic high (1) is Power Switch
  • 21. TechShop, 39, ARA Bhaban, 21 present on the pin. In order to enable PORTC LEDs, it is necessa DIP switches on SW5 (figure below). Fig: Schematic of There is a male connector (J2) present in the board in case you want to check logic state for other PORTs instead of PORTC. Like the figure below, just connect the connector(supplied with the SW5 Dip Switch in ON position TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh present on the pin. In order to enable PORTC LEDs, it is necessary to enable the corresponding DIP switches on SW5 (figure below). Schematic of LED unit of AVR Trainer Kit There is a male connector (J2) present in the board in case you want to check logic state for other PORTs instead of PORTC. Like the figure below, just connect the connector(supplied with the External Pin for LEDs LED Bangladesh ry to enable the corresponding There is a male connector (J2) present in the board in case you want to check logic state for other PORTs instead of PORTC. Like the figure below, just connect the connector(supplied with the External Pin for LEDs LED
  • 22. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 22 kit) with your desired PORT and J2. Also don’t forget to slide the SW5 switches into OFF position (unlike figure below) or there might be logic contention between PORTs. Also don’t forget to disable the LCD’s Dip switch, because they too use some of PORTC’s pin. Now load “Led_blinking.hex” (…AVR Trainer KitExampleLED blinking) and LED will start blinking. NOTE: All the example code is written in “MikroC Pro for AVR” for ATmega32A. Also simulation file in “Proteus” is provided too. 3.5 Push Button Interfacing If you want to play with the digital input of microcontroller, we have two push buttons tied to ground. They are connected with PORTD2 and PORTD3 i.e. with two external interrupts. Buttons are externally pulled up to Vcc. Fig:Schematic of push button in AVR Trainer Kit Place the jumper like the figure below:
  • 23. TechShop, 39, ARA Bhaban, 23 Also don’t forget to Enable PORTC0 and PORTC1 LED switch (SW5). Load the “Push_Button.hex” (… you press the buttons, corresponding LED will lit. NOTE: All the example code is written in “MikroC Pro for AVR” for ATmega32A. Also simulation file in “Proteus” is provided too. 3.6 Seven Segment Display Interfacing One seven segment digit consists can be used to represent digits from 0 to 9 and even some letters. One additional LED is used for TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh Also don’t forget to Enable PORTC0 and PORTC1 LED switch (SW5). AVR Trainer KitExamplePush Button you press the buttons, corresponding LED will lit. All the example code is written in “MikroC Pro for AVR” for ATmega32A. Also simulation file in “Proteus” is provided too. Segment Display Interfacing consists of 7+1 LEDs which are arranged in a specific formation which can be used to represent digits from 0 to 9 and even some letters. One additional LED is used for Bangladesh Push Button). Now if All the example code is written in “MikroC Pro for AVR” for ATmega32A. of 7+1 LEDs which are arranged in a specific formation which can be used to represent digits from 0 to 9 and even some letters. One additional LED is used for
  • 24. TechShop, 39, ARA Bhaban, 24 marking the decimal dot, in case you want to write a decimal point in the desired segment. Trainer Kit™ contains one (Common Cathode) PORTB. To enable place jumpers like figure below: Make sure PORTB isn’t connected with other peripheral, like buzzer/SPI/ISP/1 “seven_segment_display.hex” ( Display) and a counter from 0 3.7 ADC Interfacing Digital signals have two discrete states, which are decoded as high and low, and interpreted as logic 1 and logic 0. Analog signals, on the other hand, are continuous, and can have any value within defined range. A/D converters are specialized circuits whi (voltages) into a digital representation, usually in form of an integer number. The value of this number is lineary dependent on the input voltage value. Most microcontrollers now days internally have A/D converters connected pins. Some of the most important parameters of A/D converters are conversion time and resolution. Conversion time determines how fast a digital number. This is an important parameter if TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh marking the decimal dot, in case you want to write a decimal point in the desired segment. (Common Cathode) of these digits. Eight data lines are connected to like figure below: isn’t connected with other peripheral, like buzzer/SPI/ISP/1 ” (…AVR Trainer KitExampleSeven Segment ) and a counter from 0-9 will start immediately. Digital signals have two discrete states, which are decoded as high and low, and interpreted as logic 1 and logic 0. Analog signals, on the other hand, are continuous, and can have any value within defined range. A/D converters are specialized circuits which can convert analog signals (voltages) into a digital representation, usually in form of an integer number. The value of this number is lineary dependent on the input voltage value. Most microcontrollers now days internally have A/D converters connected to one or more input pins. Some of the most important parameters of A/D converters are conversion time and resolution. Conversion time determines how fast an analog voltage can be represented in form of a digital number. This is an important parameter if you need fast data acquisition. Bangladesh marking the decimal dot, in case you want to write a decimal point in the desired segment. AVR of these digits. Eight data lines are connected to isn’t connected with other peripheral, like buzzer/SPI/ISP/1-wire etc. Load Seven Segment Digital signals have two discrete states, which are decoded as high and low, and interpreted as logic 1 and logic 0. Analog signals, on the other hand, are continuous, and can have any value ch can convert analog signals (voltages) into a digital representation, usually in form of an integer number. The value of this to one or more input pins. Some of the most important parameters of A/D converters are conversion time and be represented in form of you need fast data acquisition.
  • 25. TechShop, 39, ARA Bhaban, 25 The other parameter is resolution. Resolution represents the number of discrete steps that supported voltage range can be divided into. It determines the sensitivity of the A/D converter. Resolution is represented in maximu microcontrollers have 10-bit resolution, meaning that maximum value of conversion can be represented with 10 bits, which converted to integer is 2 voltage range, for example from 0 AVR Trainer Kit™ v2 provides an interface in form of potentiometers for simulating analog input voltages that can be routed to any of the The right figure shows the connection of AVCC and AREF. AVCC is tied to Vcc. And AREF is tied with a slide switch (SW2). You can either choose to connect AREF with AVCC or any external voltage you want. If you want to connect external voltage, connect the external reference voltage AREF connected to AVCC AREF Pin TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh The other parameter is resolution. Resolution represents the number of discrete steps that supported voltage range can be divided into. It determines the sensitivity of the A/D converter. Resolution is represented in maximum number of bits that resulting number occupies. Most AVR bit resolution, meaning that maximum value of conversion can be represented with 10 bits, which converted to integer is 210 =1024. This means that supported r example from 0-5V, can be divided into 1024 discrete steps of about 4.88mV. provides an interface in form of potentiometers for simulating analog input voltages that can be routed to any of the 8 supported analog input pins (default figure shows the connection of AVCC and AREF. AVCC is tied to Vcc. And AREF is tied with a slide switch (SW2). You can either choose to connect AREF with AVCC or any external voltage you want. If you want to connect external voltage, slide up the switch and reference voltage at AREF pin. Bangladesh The other parameter is resolution. Resolution represents the number of discrete steps that supported voltage range can be divided into. It determines the sensitivity of the A/D converter. m number of bits that resulting number occupies. Most AVR bit resolution, meaning that maximum value of conversion can be =1024. This means that supported 5V, can be divided into 1024 discrete steps of about 4.88mV. provides an interface in form of potentiometers for simulating analog (default channel 0). figure shows the connection of AVCC and AREF. AVCC is tied to Vcc. And AREF is tied with a slide switch (SW2). You can either choose to connect AREF with AVCC or any slide up the switch and
  • 26. TechShop, 39, ARA Bhaban, 26 A 1K resistor is connected in series with 100k POT to refrain the direct connection of Vcc with ADC pin. The capacitor C11 stabilize the voltage across ADC pin. By default and in our example code we connect the POT with Channel 0 (i.e. PA0) but you can always route to any other ADC pin. Connect the jumper J17 as shown in figure. Connect AREF with AVCC. Our sample code will use 7-segment display ADC value. So connect those jumpers too. Load “ADC_Interfacing.hex” ( Trainer KitExampleADC rotate the POT and see the voltage change in 7-segment display. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh A 1K resistor is connected in series with 100k POT to refrain the direct connection of Vcc with ADC pin. The capacitor C11 will stabilize the voltage across ADC pin. By default and in our example code we connect the POT with Channel 0 (i.e. PA0) but you can always route to any other ADC pin. t the jumper J17 as shown in figure. Connect AREF with AVCC. Our sample segment display to show the . So connect those jumpers too. ” (…AVR ADC). Now rotate the POT and see the voltage change in Bangladesh
  • 27. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 27 3.8 LCD Interfacing Liquid Crystal Displays or LCDs are cheap and popular way of representing information to the end user of some electronic device. Character LCDs can be used to represent standard and custom characters in the predefined number of fields. AVR Trainer Kit™ v2 provides the connector and the necessary interface for supporting 2x16 (or 4x20) character LCDs in 4-bit mode. This type of display has two rows consisted of 16 character fields. Each field is a 7x5 pixel matrix. NOTE:Make sure to turn off the power supply before placing LCD onto the board. Otherwise your display can be permanently damaged. Connector pinout explained GND & VCC - Display power supply lines. VEE - LCD contrast. RS- Register Select Signal line. R/W- Determines whether display is in Read or Write mode. You can permanently connect it with GND, leaving the display in Write mode all the time. E - Display Enable line D0–D3 - Display is supported in 4-bit data mode, so these pins connected to GND. D4–D7 - Upper half of the data byte LED+- Backlight LED anode, connected with Vcc. LED-- Backlight LED cathode, connected with GND. LCD Contrast can be adjusted with RV1. Through Dip Switch (DSW2) you can easily connect LCD with your MCU. The controlling pins go with PORTD4-6. If you want to permanently connect R/W with GND then leave (OFF) PD5>R/W switch and enable GND>R/W (shown below).
  • 28. TechShop, 39, ARA Bhaban, 28 Also a male connector (J26) is available in case you want to connect other mcu pin to LCD. Place a LCD (make sure all the powers are off). Connect USB cable and “LCD_Interfacing.hex” (…AVR Trainer Kit the board (better use a 5v adapter) and you’ll see moving text on the LCD. 3.9 Buzzer Interfacing Piezoelectricity is the charge which accumulates in certain solid materials in response to mechanical pressure, but also providing the charge to the piezoelectric material causes it to physically deform. One of the most widely used applications of piezoelectricity is the p of sound generators, called piezo buzzers. different shapes and sizes, which can be used to create sound waves when provided with analog electrical signal. AVR Trainer Kit™ v2 comes with piezo pin, which is determined by the position of J20 jumper. Buzzer is driven by transistor Q4 Microcontrollers can create sound by generating a PWM (Pulse Width Modulated) signal square wave signal, which is nothing more than the square signal determines the pitch of the generated sound, and duty cycle of the signal can be used to increase or decrease the volume in the range from 0% to 100% of the duty cyc can generate PWM signal using microcontrollers, or by writing custom software which emulates the desired signal waveform (like in the example we’ll show later) LCD’s pin1 goes here LCD Contrast POT TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh . Also a male connector (J26) is available in case you want to connect other mcu pin to LCD. Place a LCD (make sure all the powers are off). Connect USB cable and AVR Trainer KitExampleLCD Interfacing use a 5v adapter) and you’ll see moving text on the LCD. is the charge which accumulates in certain solid materials in response to mechanical pressure, but also providing the charge to the piezoelectric material causes it to physically deform. One of the most widely used applications of piezoelectricity is the p of sound generators, called piezo buzzers. Piezo buzzer is an electric component that comes in different shapes and sizes, which can be used to create sound waves when provided with analog ™ v2 comes with piezo buzzer which can be connected to PB3 microcontroller pin, which is determined by the position of J20 jumper. Buzzer is driven by transistor Q4 Microcontrollers can create sound by generating a PWM (Pulse Width Modulated) signal ch is nothing more than a sequence of logic zeros and ones. Frequency of the square signal determines the pitch of the generated sound, and duty cycle of the signal can be used to increase or decrease the volume in the range from 0% to 100% of the duty cyc can generate PWM signal using AVR’s Timer module, which is usually available in most microcontrollers, or by writing custom software which emulates the desired signal waveform (like in the example we’ll show later). Bangladesh Also a male connector (J26) is available in case you want to connect other mcu pin to LCD. Place a LCD (make sure all the powers are off). Connect USB cable and load LCD Interfacing). Power is the charge which accumulates in certain solid materials in response to mechanical pressure, but also providing the charge to the piezoelectric material causes it to physically deform. One of the most widely used applications of piezoelectricity is the production is an electric component that comes in different shapes and sizes, which can be used to create sound waves when provided with analog buzzer which can be connected to PB3 microcontroller pin, which is determined by the position of J20 jumper. Buzzer is driven by transistor Q4. Microcontrollers can create sound by generating a PWM (Pulse Width Modulated) signal – a a sequence of logic zeros and ones. Frequency of the square signal determines the pitch of the generated sound, and duty cycle of the signal can be used to increase or decrease the volume in the range from 0% to 100% of the duty cycle. You , which is usually available in most AVR microcontrollers, or by writing custom software which emulates the desired signal waveform Disable PD5>R/W and enable GND>R/W External connector for LCD control
  • 29. TechShop, 39, ARA Bhaban, 29 Fig:Buzzer interfacing with Place the jumper (J20) as shown in figure. Buzzer input will connect with PORTB3. So make sure this pin isn’t connecting with other (like 7 segment etc.). Our Buzzer example also needs LCD, so enable the dip switch (DSW2) of the LCD as mentioned at section “3.8 LCD Interfacing” and a push button on PD2, so place the push button (B2) jumper too. L “Buzzer.hex” (…AVR Trainer Kit adapter will be preferable). If you press LCD. 3.10 Joystick Interfacing Joysticks are one of the interesting things to interface. Our joystick will give you 5 positions; Up, Down, Left, Right and Center. The common is connected to Jumper (J3) will connect this joystick with PORTA3 use PORTA’s internal pull-up option. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh Fig:Buzzer interfacing with AVR Trainer Kit Place the jumper (J20) as shown in figure. Buzzer input will connect with PORTB3. So make sure this pin isn’t connecting with other (like 7 segment etc.). Our Buzzer example also needs tch (DSW2) of the LCD as mentioned at section “3.8 LCD and a push button on PD2, so place the push button (B2) jumper too. L AVR Trainer KitExampleBuzzer).Now power the board (a 5v adapter will be preferable). If you press the B2, music will start to play with the lyrics on the Joystick Interfacing Joysticks are one of the interesting things to interface. Our joystick will give you 5 positions; Up, Down, Left, Right and Center. The common is connected to ground i.e. they will be active low. Jumper (J3) will connect this joystick with PORTA3-7. No pull ups are present, so you have to up option. Bangladesh Place the jumper (J20) as shown in figure. Buzzer input will connect with PORTB3. So make sure this pin isn’t connecting with other (like 7 segment etc.). Our Buzzer example also needs tch (DSW2) of the LCD as mentioned at section “3.8 LCD and a push button on PD2, so place the push button (B2) jumper too. Load Now power the board (a 5v the B2, music will start to play with the lyrics on the Joysticks are one of the interesting things to interface. Our joystick will give you 5 positions; Up, ground i.e. they will be active low. 7. No pull ups are present, so you have to
  • 30. TechShop, 39, ARA Bhaban, 30 3.11 Infrared Interfacing Want to control your things wirelessly? One of the usual formats is infrared. Use your existing DVD player or TV’s remote. To help you with the infrared interfacing we provide an infrared sensor on the board with necessary passive components. 3.12 1-Wire communication: AVR Trainer Kit supports one wire communication to set a jumper in J44 position. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh Infrared Interfacing Want to control your things wirelessly? One of the usual formats is infrared. Use your existing DVD player or TV’s remote. To help you with the infrared interfacing we provide an infrared sensor on the board with necessary passive components. Wire communication: supports one wire communication through the connector U4.To do so, you have Bangladesh Want to control your things wirelessly? One of the usual formats is infrared. Use your existing DVD player or TV’s remote. To help you with the infrared interfacing we provide an infrared through the connector U4.To do so, you have
  • 31. TechShop, 39, ARA Bhaban, 31 Fig: The schematic of 1 Fig: The 1-Wire communication pinout of 4. ISP PINOUT: The ISP PINOUT of AVR Trainer Kit pins. With these pins you can programme any microcontroller outside the trainer board. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh The schematic of 1-Wire communication pinout of AVR Trainer Kit Wire communication pinout of AVR Trainer Kit AVR Trainer Kit has GND, VCC, SCK, MISO, MOSI and RST (RESET) pins. With these pins you can programme any microcontroller outside the trainer board. Bangladesh AVR Trainer Kit has GND, VCC, SCK, MISO, MOSI and RST (RESET) pins. With these pins you can programme any microcontroller outside the trainer board.
  • 32. TechShop, 39, ARA Bhaban, 32 Fig: Schematic of ISP Fig: ISP Pinout of 5.SPI PINOUT: The Serial Parallel Interface (SPI) allows high speed AVR microcontrollers and peripheral devices or between several AVR devices. of AVR Trainer Kit features 6 SCK,SS/.By these pins you can connect any SPI supported device to the microcontroller. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh chematic of ISP Pinout of AVR Trainer Kit of AVR Trainer Kit (SPI) allows high speed-synchronous data transfer between the peripheral devices or between several AVR devices. features 6 easily accessible pins for SPI.VCC,GND .By these pins you can connect any SPI supported device to the microcontroller. Bangladesh synchronous data transfer between the peripheral devices or between several AVR devices. The SPI pinout .VCC,GND, MISO, MOSI, .By these pins you can connect any SPI supported device to the microcontroller.
  • 33. TechShop, 39, ARA Bhaban, 33 Fig:schematic of SPI Pinout Fig: SPI Pinout 6. USART PINOUT: When USART module is used, it’s possible to connect the microcontroller of the development board to any external device that supports USART communication Fig:schematic of TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh schematic of SPI Pinout of AVR Trainer Kit SPI Pinout of AVR Trainer Kit : When USART module is used, it’s possible to connect the microcontroller of the development device that supports USART communication. schematic of USART Pinout of AVR Trainer Kit Bangladesh When USART module is used, it’s possible to connect the microcontroller of the development
  • 34. TechShop, 39, ARA Bhaban, 34 Fig:schematic of USART Pinout 7. I2C PINOUT: The I2C PINOUT of AVR Trainer Kit that you can easily connect the microcontroller to any I2C supported device. Fig: schematic of I2C Pinou TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh schematic of USART Pinout of AVR Trainer Kit AVR Trainer Kit features VCC, GND, TX1 and RX0 pins that you can easily connect the microcontroller to any I2C supported device. I2C Pinout of AVR Trainer Kit Bangladesh features VCC, GND, TX1 and RX0 pins side by side so
  • 35. TechShop, 39, ARA Bhaban, 35 Fig: Connecting RTC module with I2C pins of 8 Fuse Bytes I guess many of you were confused when programming AVR fuse bytes. I get many newbie questions like I programmed AVR but it doesn’t work. 90% of them and make them DEAD or unusable. In this tutorial first I will discuss about fuse bits and then how to active so called “DEAD” chips. 8.1 Introduction Fuses are an extremely important part thoroughly. You only need to set them once, but if you don't do it right, it's a disaster! You know about flash, EEPROM and RAM as parts of the chip. What I did not mention is that there are also 3 bytes of permanent (by permanent I mean that the out, but you can change them as many times as you'd like) storage called the fuses. The fuses determine how the chip will act, whether it has a bootloader, what speed and voltage it likes to run at, etc. Note that despite being called 'fuses' they are re do with protection from overpowering (like the fuses in a home). TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh Connecting RTC module with I2C pins of AVR Trainer Kit I guess many of you were confused when programming AVR fuse bytes. I get many newbie questions like I programmed AVR but it doesn’t work. 90% of them always set wrong fuse bytes and make them DEAD or unusable. In this tutorial first I will discuss about fuse bits and then how to active so called “DEAD” chips. Fuses are an extremely important part of programming a chip, but are rarely e thoroughly. You only need to set them once, but if you don't do it right, it's a disaster! You know about flash, EEPROM and RAM as parts of the chip. What I did not mention is that there are also 3 bytes of permanent (by permanent I mean that they stick around after power goes out, but you can change them as many times as you'd like) storage called the fuses. The fuses determine how the chip will act, whether it has a bootloader, what speed and voltage it likes to ing called 'fuses' they are re-settable and don’t have anything to do with protection from overpowering (like the fuses in a home). Bangladesh AVR Trainer Kit I guess many of you were confused when programming AVR fuse bytes. I get many newbie always set wrong fuse bytes and make them DEAD or unusable. In this tutorial first I will discuss about fuse bits and then programming a chip, but are rarely explained thoroughly. You only need to set them once, but if you don't do it right, it's a disaster! You know about flash, EEPROM and RAM as parts of the chip. What I did not mention is that y stick around after power goes out, but you can change them as many times as you'd like) storage called the fuses. The fuses determine how the chip will act, whether it has a bootloader, what speed and voltage it likes to settable and don’t have anything to
  • 36. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 36 The fuses are documented in the datasheets, but the best way to examine the fuses is to look at a fuse calculator such as in “MikroC” compiler. Please collect the latest version. When I am writing this tutorial I have version 5.6 in my hand. If you want to enable something in AVR what you do? Most probably you set corresponding bit as ‘1’, right? For Fuse bit its opposite. Here „1‟ means un-programmed or disable and ‘0’ means programmed or enable. Always remember these. Fuse bit = 0 => fuse bit is PROGRAMMED Fuse bit = 1 => fuse bit is UN-PROGRAMMED Open a project. I am assuming that you are using ATmega16. Go to “Project Menu” and click on “Edit Project” (Shifht+Ctrl+E). A window will open just like below: SPIEN bit is for programming. It should be enabled for loading program into chip. If you disable it you can’t program any more. So ‘MikroC’ makes this fixed and you can’t change it. If you check other bits (Like: JTAGEN) you will see the corresponding bits in “Configuration Registers” box (bottom right) changed to Zero. For more about other fuse bits browse ATmega16’s datasheet, page 255. I’d like to mention one thing before I go to next stage. By default in ATmega16, JTAG is enabled by default. That’s why you can’t use PORTC2-5 as digital I/O. So you have to disable it.
  • 37. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 37 8.2 Brown Out Detect (BOD) The first drop down menu is “Brown Out Detect”. These fuses set what voltage to turn the Brown out protection circuitry on. A brownout for a chip means that the power voltage is too low for it to run reliably at the speed of the clock. For example, the ATTiny2313 can run as fast at 20MHz but only if the power voltage is between 4.5V and 5.5V. If the voltage is lower than that, it may behave erratically, erasing or overwriting the RAMand EEPROM. It may also start running random piece of the flash program. To keep it from doing that, set the brownout voltage to 4.3V, then if the voltage dips, the chip will turn off until the voltage returns. It will then reset and start over. If the chip is meant to run at 5V, set the brown-out to 4.3V. If the chip can run at voltage as low as 3.3V you can set the brown-out to 1.8V. If the chip is a 'low voltage compatible' chip such as the attiny2313V (which can run at voltage as low as 1.8V if it’s clocked at 4MHz or less) then you can set the brownout to 1.8V. For simplicity, disable it. 8.3 Clock Selection The 2nd option is how the chip is clocked. Every CPU uses a clock, in general one assembly code instruction is run at every clock cycle. The one in your PC has a clock that runs at 1GHz or higher. This little chip runs much slower. If you look at the menu you'll see a huge list of options, but looking carefully you'll see there are two groupings, the Clock Source and the Startup Time. The Clock Source can be either of the following: External Clock, Internal 8MHz clock, Internal 4MHz clock, Internal 128KHz clock, External Crystal (0.4-0.9 MHz), External Crystal (0.9MHz - 3.0MHz), External Crystal (3.0MHz - 8.0MHz) or External Crystal (8.0MHz +) External Clock means that a square wave is being input into the CLOCK-IN pin. This is pretty rare unless you have a clock generating chip. Don't use this unless you're sure you mean to. Internal Clock means that there’s a little oscillator inside the chip, it’s not very precise but good for most projects that don’t have fine timing issues. The clock varies with temperature and the power supply voltage. You can choose from a 1MHz, 2MHz, 4MHz or 8MHz clock. Having an internal oscillator means we don't need to wire up a crystal and we can use the clock pins for our own nefarious purposes. External Crystal, If you need a special clock rate, like 3.58MHz or 12MHz or a high precision clock that won't drift with the temperature, you'll want an external crystal or oscillator.
  • 38. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 38 Clock settings have following options: Beginners usually use internal 1MHz to 8 MHz. Sochoose internal oscillator. For this tutorial I choose Int. RC Osc. 1 MHz. 8.4 StartupTime The Startup time can be either of the following: 6CK + 0 ms, 6CK + 4 ms, 6CK + 64 ms. The Startup Time is just how long the clock source needs to be stable from when power is first applied. Always go with the longest setting 6CK + 64ms unless you know for a fact your clock source needs less time and 64ms is too long to wait. The “Start-up Time” menu has following options. Choose the 64ms: By default, chips that come from the factory have the Internal 1 MHz clock with 6CK + 0ms Startup. So, in configuration register box I see the fuse bits are: LOW: 0xE1 HIGH: 0xD9 It’s time to load this bit into chip.
  • 39. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 39 8.5 Writing Fuse Bytes (By AVRpal.net): If your chip is brand new, then by default its clock frequency is set into internal 1 MHz. So, in AVRpal.net you have to check “Set Slow SCK” box. If you change the fuse bits for higher frequency then you can either “check” or “uncheck” Slow SCK, your choice. The difference is, when “Slow SCK” is checked the program will load slowly and vice versa. REMEMBER, if clock set to 1 MHZ, you have to check “Slow SCK” box. Otherwise it won’t work. So write fuse bytes in corresponding box and press ‘Write fuses’. 9. Trouble Shooting! I think the above tutorial will help you set fuse bits properly. But though what if you set wrong fuse bit? (Most of the time it happens with pony prog user). Here comes the solution: If your programmer does not detect you chip: 1) First check, is “SLOW SCK” checked (in AVRpal)? If not, then put ‘Check’ and try again. 2) If till problem remains then put a crystal (12 or 16MHz, I prefer 16MHz) between XTAL1 and XTAL2 pin (if you are using ISP connector to program), with “SLOW SCK” checked. Most of the time problem will solve in this stage. 3) If till problem exist then maybe you disabled SPIEN bit, which is unlikely, a rare situation, but definitely it isn’t for wrong clock fuse bit. If that is the situation then you need high voltage programmer (like TopWin). Also you can use “Fuse bit Doctor” (Google it!). 4) Check the Target mcu’s Vcc and GND pin; see if they get between 4.5 to 5.5V. 5) ‘Short Test’of MOSI, MISO, SCK, RST pin between your programmer and your chip. I hope the five steps above will solve your problem.
  • 40. TechShop, 39, ARA Bhaban, KaziNazrul Islam Avenue, Karwan Bazar, Dhaka-1215, Bangladesh 40 10. Warranty Product warranty is valid for 6 months. Warranty only applies to manufacturing defect. Damage caused by misuse is not covered under warranty. Warranty does not cover freight cost for both ways. Servicing is free for life time. Thank you for using TechShop’s Product.