Upload
kywheat3306
View
6
Download
1
Tags:
Embed Size (px)
Citation preview
S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D
MikroElektronikaDevelopment tools - Books - Compilers
Software and Hardwaresolutions for Embedded World
BigAVRUsers Manual
With useful implemented peripherals, plentiful practical
code examples and a broad set of additional add-on
boards (Serial Ethernet, Compact Flash, MMC/SD,
ADC, DAC, CAN, RTC, RS-485, etc.), MikroElektronika
development boards make fast and reliable tools that
can satisfy the needs of experienced engineers and
beginners alike.
2 in1ATMEL
DEVELOPMENT
BOARD
AVRDEVELOPMENT
BOARD
AVRATMELUSB 2.0
IN-CIRCUITPROGRAMMER
USB 2.0
IN-CIRCUITPROGRAMMER
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 22page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
No part of this manual, including the product and software described in it, may be repro-
duced, transmitted, transcribed, stored in a retrieval system, or translated into any language
in any form or by any means, except documentation kept buy the purchaser for backup pur-
poses, without the express written permission of MikroElektronika company.
Product warranty or service will not be extended if the product is repaired, modified or
altered, unless such repair, modification or alteration is authorized in writing by
MikroElektronika.
MIKROELEKTRONIKA PROVIDE THIS MANUAL AS IS WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
WARRANTIES OR CONDITIONS OF MERCHANTABILITY OR FITNESS FOR A PARTIC-
ULAR PUROSE.
IN NO EVENT SHALL MIKROELEKTRONIKA, ITS DIRECTORS, OFFICERS, EMPLOY-
EES OR DISTRIBUTORS BE LIABLE FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES(INCLUDING DAMAGES FOR LOSS OF PROFITS, LOSS
OF BUSINESS, LOSS OF USE OR DATA, INTERRUPTION OF BUSINESS AND THE
LIKE) EVEN IF MIKROELEKTRONIKA HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES ARISING FROM ANY DEFECT OR ERROR IN THIS MANUAL OR
PRODUCT.
SPECIFICATION AND INFORMATION CONTAINED IN THIS MANUAL ARE FURNISHED
FOR INTERNATIONAL USE ONLY, AND ARE SUBJECT TO CHANGE AT ANY TIME WITH-
OUT NOTICE, AND SHOULD BE CONSTRUED AS A COMMITMENT BY
MIKROELEKTRONIKA
MikroElektronika assumes no responsibility or liability for any errors or inaccuracies that
may appear in this manual, including the product and software described in it.
Product and corporate names appearing in this manual may or may not be registered trade-
marks or copyrights of their respective companies, and are used only for identification or
explanation and to the owners benefit, without intent to infringe.
First edition
December 2006
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 33page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
CCOO
NNTT
EENN
TTSS
CONNECTING THE SYSTEM page 4
INTRODUCTION page 5
Power Supply page 11
On-Board USB 2.0 programmer page 12
Jumpers page 7
Switches and their functions page 6
MCU sockets page 8
LEDs page 15
Pushbutton switches page 17
Graphic LCD page 20
LCD 2x16 in 4-bit mode page 22
LCD 2x16 in 8-bit mode page 24
CONTENTS
DESCRIPTION OF THE DEVELOPMENT SYSTEM page 6
RS-232 Communication page 26
Direct port access page 33
A/D Converter input page 30
PS/2 (Keyboard) connector page 32
DS1820 Digital Thermometer page 29
MMC/SD (Multimedia Card) page 36
Oscillator page 14
JTAG connector page 35
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
44page
The development system box contains the development system, product CD, USB cable,
RS232 cable and this manual.
The first thing to do is to take the system out of the box. Unpack the USB cable and connect
it to the PC. Please use USB ports on the back of the PC with direct connection to the moth-
erboard.
Install the AVRFlash programmer and drivers. Start the installation from the product CD:
CD_Drive:/product/zip/AVRFlash_setup.exe.
After the installation connect the USB cable to the BigAVR board. You will be asked for the
AVRFlash drivers. Point to them in order to finish the driver installation. They are placed in
folder:
System_Drive:\Program Files\Mikroelektronika\AVRFLASH\Driver.NT
Run and use AVRFlash as it is explained in the PDF document AVRFlash programmer:CD_Drive:/product/pdf/avrprog_manual.pdf
After these 4 steps, your BigAVR is installed and ready for use. You can try to read a pro-
gram from the chip or to load an example from the examples folder of mikroElektronikas
compilers for AVR or from the product CD:
CD_Drive:/product/zip/bigavr_examples.zip.
CCOO
NNNN
EECC
TTIINN
GG TT
HHEE
SSYY
SSTT
EEMM
CONNECTING THE SYSTEM
Step no.1
Step no.2
Step no.3
Step no.4
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 55page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
IINNTT
RROO
DDUU
CCTT
IIOONN
The BigAVR development system is a full-featured development board for Atmel AVR
microcontrollers. It has been designed to allow students and engineers to easily exercise and
explore the capabilities of AVR microcontrollers. It allows AVR microcontrollers to be inter-
faced with external circuits and a broad range of peripheral devices, allowing a user to con-
centrate on software development.
Figure 1 illustrates the development board. Each component is marked on a silkscreen, both
top and bottom. These marks describe connections to the microcontroller, operation modes,
and provide some useful notes. The need for additional schematics is minimized since all
relevant information is printed on the board.
INTRODUCTION
Figure 1. BigAVR development board
ATMEL
DEVELOPMENT
BOARD
AVRDEVELOPMENT
BOARD
AVRATMEL
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
66page
SSWW
IITTCC
HHEE
SS SWITCHES The BigAVR development board features a number of peripherial devices. In order to
enable these devices before programming, you need to check if appropriate jumpers or
switches have been properly set. Switches are devices that have two positions - ON and
OFF, which have a role to establish or break a connection between two contacts. The
BigAVR development board has four groups of switches.
The first two groups, SW1 and SW2, are used to enable LEDs connected to PORTA,
PORTB, PORTC, PORTD, PORTE, PORTF, PORTG, PORTH, PORTJ, PORTK and
PORTL. Switch SW2 is also used to enable connection between DS1820 temperature sen-
sor and microcontroller PG0 pin and also to enable SPI communication and CS pin for
MMC/SD Card.
The switches of SW4 are used to enable a connection between the microcontroller PORTF
with external pull-up/down resistors. When PORTF pins are used as digital inputs/outputs,
the appropriate pull-up/down resistors should be enabled.
The switches of SW3 are used to enable connection between the microcontroller pins and
both RS232 communication devices. The first four switches are used for RS232-A
communication lines, while the second four are used for RS232-B communication lines.
Switch is ON
Switch is OFF
1 ON
43
25
87
6
Figure 2.
Group of 8 switches
Switches 1 and 2 are ON,
and other switches are OFF
Jumpers, like switches, can break or establish a connection between two points. Beneath the
plastic cover of the jumper is a metal contact, which makes a connection when the jumper
is placed between two disconnected pins.
For example, the jumpers J15 and J16 are used to connect or disconnect PS/2 Data and Clk
lines to the PC0 and PC1 pins, respectively. A connection is made when the jumper is placed
between two contacts.
More often, jumpers are used as a selector between two possible connections using a three
pin connector. As illustrated in Fig. 4, the middle connector can be connected to the left or
right pin, depending on the jumpers position.
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 77page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
JJUUMM
PPEE
RRSS
Figure 3.
Figure 4.
Jumper as a
switch
Jumper as a
multiplexer
JUMPERS
Jumper is ON
Jumper is OFF
Left lineis selected
All lines aredisconnected
Right lineis selected
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
88page
MMCC
UU CC
AARR
DD
The BigAVR development board has a 104-pin MCU Card. If you want to use some other
microcontroller, all you have to do is to change MCU Cards. You can use 64-pin MCUs
(ATmega128 for example) or 100-pin MCUs (ATmega1280 for example). BigAVR MCU
Card is shown on the following picture:
MCU CARD
Figure 5.MCU Card
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 99page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
MMCC
UU CC
AARR
DDWhen you are placing MCU Card on the BigAVR MCU socket, you must follow thesesteps:
If there is already MCU Card
placed on BigAVR, you must
remove it by slowly pulling it up.
Place MCU Card on the board.
Note that label on the MCU Card
must be at the upper-left corner as
it is drawn on the BigAVR board.
When MCU Card is on the place,
push it down by applying the
pressure on all edges at the same
time.
Step no.1
Step no.2
Step no.3
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
1100page
MMCC
UU CC
AARR
DD
PE3
1 ON
43
2
PORTE
SW1
58
76
VCCVCC
VCC
PORTE
PE3 PE3
PORTEJ5J12
CN5
X110MHz
C122pF
C222pF
10
KR
ese
t
10
0n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
Microcontrollers pins are routed to various peripherals as illustrated in Fig. 6. All ports have
direct connections to Direct Port Access connectors. Such connectors are typically used for
connecting external peripherals to the board or for providing useful points for connecting
digital logic probe.
All ports are connected to LEDs, push-button switches and pull-up/down resistors, which
allow easy monitoring and testing of digital pin state .
Some pins are connected to other peripherials such as the DS1820 temperature sensor,
RS-232 communication, LCD, etc.
System connectionFigure 6.
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 1111page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
PPOO
WWEE
RR SS
UUPP
PPLLYYAs a power supply source, users can select either a regulated supply from the USB cable
(default) or an external power supply. In case of the USB power supply, the system should
be connected to a PC using the USB programming cable, while the jumper J14 should be
set in the right-hand position.
In the case of an external power supply, the BigAVR board produces +5V using an LM7805
voltage regulator. The external power supply can be AC or DC, with a voltage between 8V
and 16V and the jumper J14 should be set in the left-hand position. In Fig. 7 you can see
USB and external power supply connectors.
GND
Vin Vout
VCC
CN24 8-16V (AC/DC)
+
E1470uF
C2100nF
E2470uF
C3100nF
1
2
VCC
D-
D+
GND
5V 5V
USB
FP1
1
2
3
USB yPower Suppl
External Power Supply
EXT
EXT
USB
USB
REG17805
J14
C1100nF
EXT USB
POWER SUPPLY
J14 in the left-hand
position: system will
take power from the
external AC/DC
power adapter.
J14 in the right-hand
position: system will
take power from the
USB cable.
USB and power supply connectorsFigure 7.
Figure 8. Power supply select jumper
USB
connector
External power
supply connector
POWER SUPPLY
SELECTABLE
POWER SUPPLY
SELECTABLE
Figure 9. Power supply schematic
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
1122page
OONN
--BBOO
AARR
DD UU
SSBB
PPRR
OOGG
RRAA
MMMM
EERR ON-BOARD USB 2.0 PROGRAMMER
There is no need for the use of exter-
nal equipment during programming,
as the BigAVR development system
has its own on-board USB 2.0 pro-
grammer.
All you need to do is connect the sys-
tem to a PC using the USB cable.
Then, load your program into the
microcontroller via the AVRFlashprogramming software, which is
supplied with the board.Figure 10. On-Board USB programmer
Note: There is no need for manually reseting MCU after programming. The programmer
will reset the MCU automatically.
USB 2.0
IN-CIRCUITPROGRAMMER
USB 2.0
IN-CIRCUITPROGRAMMER
J20
J21
J20
J21
Figure 11.
Figure 12.
PE0, PE1 and PB1 used asprogramming lines (Default)
PB2, PB3 and PB1 usedas programming lines
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 1133page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
OONN
--BBOO
AARR
DD UU
SSBB
PPRR
OOGG
RRAA
MMMM
EERR
Figure 13. Programmer schematic
There are two different AVR MCU groups. The first one (Default) uses special pins for pro-
gramming: PDI (PE0 pin), PDO (PE1 pin) and SCK (PB1 pin). The second one uses SPI
communication lines for programming: MOSI (PB2 pin), MISO (PB3 pin) and SCK (PB1
pin).
With jumpers J20 and J21 you can select which pins will be used for programming (acord-
ing to the MCU type).
VCC
USB LINK
27
U3
TO PERIPHERALSON DEVELOPMENT BOARD
AV
RF
lash
On
-Bo
ard
US
Bp
rog
ram
mer VCCD-
D+
GND
USB
CN181
2
3
4
USB CONN.
VCC
271
K
POWER
1K
10
KR
eset
10
0n
VCC
VCC
X110MHz
C122pF
C222pF
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
SW
ITC
H
J20
J21
VCC
OSCILLATOR
GND
VCCA
B
C
D
E
F
C15
22pF
C16
22pF
74HC04
X28MHz
R111K
R10 1M
X110MHz
C122pF
C222pF
10
KR
eset
10
0n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
J1
Externalcrystal selected
Externaloscillator selected
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
1144page
OOSS
CCIILL
LLAATT
OORR OSCILLATOR
BigAVR development board has on-board oscillator circuit for generating microcontrollers
clock input and also crystal oscillator placed on MCU Card. Within the AVRFlash program-mer you can either choose internal RC oscillator, external clock or external crystal. With
jumper J1 (placed on MCU Card) you can choose which clock will be used to drive MCU:
external oscillator or crystal.
Figure 14.Oscillator
Figure 15.
Oscillator schematic
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 1155page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
LLEEDD
ss
Light Emitting Diodes (LEDs) are the most commonly used components, usually for dis-
playing pins digital state. BigAVR has 86 LEDs that are connected to the microcontrollers
PORTA, PORTB, PORTC, PORTD, PORTE, PORTF, PORTG, PORTH, PORTJ, PORTK
and PORTL.
LEDs
Figure 16. Light Emitting Diodes
Each group of LEDs can be enabled or disabled using the switches SW1 and SW2. Fig. 17.
illustrates the connection of a LEDs to PORTF of the microcontroller. A resistor is used in
series with the LED to limit the LED's current. In this case the resistor's value is 1K.
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
1166page
LLEEDD
ss The LEDs are enabled when the corresponding switch on SW1 and SW2 is on. Whenenabled, LEDs will display the state of the corresponding microcontroller pin; otherwise the
LEDs will always be off, no matter what the port state is, as no current can flow through
LED.
1
2
3
4
5
6
7
8
9
PF7
PF6
PF5
PF4
PF3
PF2
PF1
PF0
1 ON
43
25
87
6
PORTD LED
PORTC LED
PORTB LED
PORTA LED
PORTE LED
PORTF LED
CURRENT FLOWRN20
RPACK8/98x1K
SW1
X110MHz
C122pF
C222pF
10
KR
eset
10
0n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
PORTG LED
PORTH LED
1 ON
43
25
87
6
PORTL LED
PORTK LED
PORTJ LED
SW2
Figure 17.LED schematic
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 1177page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
PPUU
SSHH
BBUU
TTTT
OONN
SSWW
IITTCC
HHEE
SS
AVRFlashOn-Board USBprogrammer
X110MHz
C122pF
C222pF
10K
Reset
100n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
BigAVR has 86 push buttons,
which can be used to change states
of digital inputs to microcontroller's
ports. There is also one switch that
acts as a RESET. Reset switch
schematic is shown in Figure 18.
PUSHBUTTON SWITCHES
Figure 20.Pushbutton switches
Figure 19.
Reset switch
Figure 18.
Reset switch schematic
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
1188page
PPUU
SSHH
BBUU
TTTT
OONN
SS
WWIITT
CCHH
EESS
X110MHz
C122pF
C222pF
10K
Re
se
t
100n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
PC0
PC1
PC2
PC3
PC4
PC6
PC5
PC7
PORTC
J12
0V while buttonis pressed
5V while buttonis pressed
VCC
Figure 21.Buttons schematic
Buttons connections to PORTC is shown in Fig. 21. Jumper J12 determines whether a but-
ton press will bring logical zero or logical one to the appropriate pin.
When button is not pressed, pin state is determined by the pull-up or pull-down port
jumpers.
In the example shown in Fig. 21, J12 is connected to +5V, therefore pressing the buttons will
bring logical one to the appropriate pins.
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 1199page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
PPUU
SSHH
BBUU
TTTT
OONN
SS
WWIITT
CCHH
EESSOn Fig. 22 the J3 jumper is
set to pull-up, therefore
when the button is not
pressed, pull-up resistor
pulls the microcontrollers
PC2 pin to +5V.
A button press causes the
port pin to be connected to
ground (J12 is in the lower
position).
Thus, only when the button
is pressed the microcon-
troller will sense a logical
zero; otherwise the pin state
will always be logical one.
On Fig. 23 the J3 jumper is
set to pull-down, therefore
when the button is not
pressed, pull-down resistor
pulls the microcontrollers
PC2 pin to 0V.
A button press causes the
port pin to be connected to
+5V (J12 is in the higher
position).
Thus, only when the button
is pressed the microcon-
troller will sense a logical
one; otherwise the pin state
will always be logical zero.
pull-up
0V while pressed
vcc
vcc
PC2
PORTC
J3
J12
X110MHz
C122pF
C222pF
10
KR
eset
10
0n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
PC2
PORTCpull-down
5V while pressed
vcc
vcc
J3
J12
X110MHz
C122pF
C222pF
10
KR
eset
10
0n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
Figure 22.
Figure 23.
Button with pull-up resistor
Button with pull-down resistor
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
2200page
GGRR
AAPP
HHIICC
LLCC
DD 11
2288XX
6644 GRAPHIC LCDA graphic LCD (GLCD) allows advanced visual messages to be displayed. While a charac-
ter LCD can display only alphanumeric characters, a GLCD can be used to display mes-
sages in the form of drawings and bitmaps.
The most commonly used graphic LCD has the screen resolution of 128x64 pixels. Before
a GLCD is connected, the user needs to set the jumper J17 (Fig. 25) to the upper position.
The GLCDs contrast can be adjusted using the potentiometer P3, which is placed to the
right of the GLCD.
Figure 24. GLCD
GRAPHIC LCD
CONNECTOR
ON-BOARD
GRAPHIC LCD
CONNECTOR
ON-BOARD
NOTE: Make sure to turn off the power supply before placing GLCD on development
board! If the power supply is connected while placing, GLCD unit can be permanently dam-
aged!
CS1
CS2
D3
P3 10K
VoContrastAdjustment
VCC
D5
D4
D3
D2
D1
D0E
R/WR
S
LE
D-
Vo
LE
D+
VC
C
Ve
e
GN
D
RS
T
CS
2
D7
CS
1
D6
1 20
LCD8 contrastselected
GLCD and LCD8contrast not selected
GLCD contrastselected
R16 10
VCC
X110MHz
C122pF
C222pF
10K
Reset
100n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
RS
R/W
E
RST
D4
D5
D6
D7
D0
D1
D2
Vee
J17
GRAPH.
CHAR. VCC
PA
5P
A4
PA
3P
A2
PA
1P
A0
PE
6P
E5
PE
4
PE
7
PE
3
PA
7
PE
2
PA
6
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 2211page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
GGRR
AAPP
HHIICC
LLCC
DD 11
2288XX
6644
In order to enable GLCD,
jumper J17 should be set to
the upper position, labeled
as GRAPH.
Figure 25. GLCD schematic
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
2222page
LLCCDD
22XX
1166 II
NN 44
--BBIITT
MMOO
DDEE
A standard character LCD is probably the most widely used data visualization component.
Usually, it can display two lines of 16 alphanumeric characters, each made up of 5x8 pix-
els. The character LCD communicates with the microcontroller via a 4-bit or 8-bit data bus,
each requiring the use of a different connector on BigAVR development board.
For 4-bit data bus use, the LCD should be placed in the upper left of the board, above the
LEDs. The connection to the microcontroller is shown in Fig. 27 where there are only four
data lines.
LCD 2X16 IN 4-BIT MODE
Figure 26. LCD 2x16 in 4-bit mode
2x16 LCD2x16 LCD
2x16 LCDCONNECTOR2x16 LCDCONNECTOR
ON-BOARDON-BOARD
NOTE: Make sure to turn off the power supply before placing GLCD on development
board! If the power supply is connected while placing, GLCD unit can be permanently dam-
aged!
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 2233page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
LLCCDD
22XX
1166 II
NN 44
--BBIITT
MMOO
DDEE
Vo
ContrastAdjustment
P410K
D7
X110MHz
C122pF
C222pF
10K
Reset
100n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128 D6D5
D4
E
RS
D7
D6
D5
D4
D3
D2
D1
D0E
R/WR
SV
EE
VC
CG
ND
1 14
LCD Display
4-bit mode
VCC
PC
7P
C6
PC
5P
C4
GN
DG
ND
GN
DG
ND
PC
3G
ND
PC
2
Figure 27.
LCD 2x16 in 4-bit mode schematic
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
2244page
LLCCDD
22XX
1166 II
NN 88
--BBIITT
MMOO
DDEE LCD 2X16 IN 8-BIT MODE
When using a character LCD in 8-bit mode, the connector that is shared with the GLCD
should be used. Since this connector has 20 pins and the character LCD has only 14 pins,
special attention is required when placing the LCD. Otherwise the LCD can be permanent-
ly damaged.
Figure 28.
LCD 2x16 in 8-bit mode
NOTE: Make sure to place the LCD properly! Improper placement may damage the LCD
unit permanently!
View from the back:shows which pinsstays disconnected.
2x16 LCD2x16 LCD
2x16 LCDCONNECTOR2x16 LCDCONNECTOR
ON-BOARDON-BOARD
NOTE: Make sure to turn off the power supply before placing GLCD on development
board! If the power supply is connected while placing, GLCD unit can be permanently dam-
aged!
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 2255page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
LLCCDD
22XX
1166 II
NN 88
--BBIITT
MMOO
DDEE
D3
P3 10K
VoContrastAdjustment
LCD8 contrastselected
GLCD and LCD8contrast not selected
GLCD contrastselected
VCC
X110MHz
C122pF
C222pF
10
KR
eset
10
0n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
RS
R/W
E
D4
D5
D6
D7
D0
D1
D2
Vee
J17
GRAPH.
CHAR. VCC
D7
D6
D5
D4
D3
D2
D1
D0E
R/WR
SV
EE
VC
CG
ND
1 14
LCD Display
8-bit mode
PA
5P
A4
PA
3P
A2
PA
1P
A0
PE
6P
E5
PE
4
PA
7P
A6
Figure 29. LCD 8-bit mode schematic
Leave two free pins
to the left side
Leave four free pins
to the right side
In order to enable LCD,
jumper J17 should be set
to the lower position,
labeled as CHAR.
The LCD must be placed in the marked position with two free pins to the left and four free
pins to the right. It is important to note that the LCD should be placed or removed from
BigAVR only when the power is off. Before attaching the LCD, set jumper J17 to the lower
position. The LCD's contrast can be adjusted using potentiometer P3 which is located to the
right of the GLCD/LCD connector.
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
2266page
RRSS
--223322
CCOO
MMMM
UUNN
IICCAA
TTIIOO
NN
RS-232 COMMUNICATION
RS-232 communication enables point-to-point data transfer. It is commonly used in data
acquisition applications, for the transfer of data between the microcontroller and a PC. Since
the voltage levels of a microcontroller and PC are not directly compatible with each other,
a level transition buffer such as the MAX232 must be used.
Figure 30. RS232 connectors
In order to provide a more flexible system, the microcontroller is connected to the MAX232
through the switches 1, 2, 3, and 4 on SW3 for the RS232-A port and the switches 5,6,7 and
8 on SW3 for the RS232-B port. Rx and Tx lines for the RS232-A port are connected to PE0
and PE1 pins, respectively. Rx and Tx lines for the RS232-B port are connected to PD2 and
PD3 pins, respectively. Both RS232 ports have RTS and CTS lines for implementing hard-
ware handshaking.
ENABLEDENABLED
RS232RS232
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 2277page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
RRSS
--223322
CCOO
MMMM
UUNN
IICCAA
TTIIOO
NN
MA
X2
32
C1+
VS+
C1-
C2+
C2-
VS-
T2OUT
R2IN
VCC
GND
T1OUT
R1IN
R1OUT
T1IN
T2IN
R2OUT
1
2
3
4
5
6
7
8
16
15
14
13
12
11
10
9
U1
RS232CON
CONNECTMCU TO PC
Receivedata (Rx)
SendData (Tx)
1 5
6 9
1 2 3 4 56 7 8 9
CN25SUB-D 9p
C10100nF
CONNECTPC TO MCU
1 5
6
Rx
Tx
9
SERIALCABLE
PC
RS232-ACON
1 ON
43
25
87
6
RS
-23
2A
E310uF
E410uF
E510uF
E610uF
VCC
VCC
SW3
X110MHz
C122pF
C222pF
10
KR
ese
t
10
0n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
CTS
RTS
RS
-23
2B
RTS
CTS
Figure 31.
Connection between microcontroller and a PC: RS232-A
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
2288page
RRSS
--223322
CCOO
MMMM
UUNN
IICCAA
TTIIOO
NN
RS232CON
CONNECTMCU TO PC
Receivedata (Rx)
SendData (Tx)
1 5
6 9
CN26SUB-D 9p
CONNECTPC TO MCU
1 5
6 9
SERIALCABLE
RS232-BCON
MA
X2
32
C1+
VS+
C1-
C2+
C2-
VS-
T2OUT
R2IN
VCC
GND
T1OUT
R1IN
R1OUT
T1IN
T2IN
R2OUT
1
2
3
4
5
6
7
8
16
15
14
13
12
11
10
9
U1
1 2 3 4 56 7 8 9
C11100nF
Rx
Tx
1 ON
43
25
87
6
RS
-23
2B
RS
-23
2A
E710uF
E810uF
E910uF
E1010uF
VCC
VCC
SW3
CTS
RTS
X110MHz
C122pF
C222pF
10
KR
ese
t
10
0n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
RTS
CTS
PC
Figure 32.
Connection between microcontroller and a PC: RS232-B
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 2299page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
DDSS
11882200
DDIIGG
IITTAA
LL TT
HHEE
RRMM
OOMM
EETT
EERR
DS1820 digital thermometer is well suited to environ-
mental temperature measurement, having the temper-
ature range of -55C to 125C and the accuracy of +/-
0.5C. It must be placed correctly in the 3-pin socket
provided on BigAVR, with its rounded side to the
upper edge of the board (see Fig. 33) otherwise the
DS1820 could be permanently damaged. DS1820s
data pin can be connected to PG0 pin by enabling
switch 4 on SW2.
DS1820
VCCGND
DQ
VCC
VCC
-50 C
125 C
X110MHz
C122pF
C222pF
10
KR
ese
t
10
0n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
1 ON
43
2
SW2
58
76
R110K
There is a mark in theform of half-circle forproper orientation ofDS1820 sensor.
DS1820 DIGITAL THERMOMETER
Figure 33.
Figure 34.
DS1820
DS1820 schematic
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
3300page
AANN
AALLOO
GG TT
OO DD
IIGGIITT
AALL
CCOO
NNVV
EERR
TTEE
RR II
NNPP
UUTT
A/D CONVERTER INPUTADC INPUT
ENABLED
ADC INPUT
ENABLED
VREF4.096VON-BOARD
VREF4.096VON-BOARD
Figure 35.
A/D Converter input
BigAVR development board has two potentiometers for working with A/D Converter
(Analog-to-Digital Converter). Both potentiometers outputs are in the range of 0V to 5V.
Two analog signals can be connected on two different analog input pins at the same time.
The jumpers group J18 enables connection between potentiometer P1 and one of the follow-
ing pins: PF0, PF1, PF2, PF3 or PF4. The jumpers group J19 enables connection between
potentiometer P2 and one of the following pins: PF1, PF2, PF3, PF4 or PF5.
In order to measure analog signal without interference, turn the coresponding switch on
SW4 to OFF position. This will disable connection of the used PORTF pin to the pull-
up/down resistors.
Applications of A/D Conversion are various. Microcontroller takes analog signal from its
input pin and translates it into a digital value. Basically, you can measure any analog signal
that fits in range acceptable by AVR. That range is 0V to 5V.
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 3311page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
AANN
AALLOO
GG TT
OO DD
IIGGIITT
AALL
CCOO
NNVV
EERR
TTEE
RR II
NNPP
UUTT
vcc vcc
P110K
P210K
0 - 5V
0 - 5V 0 - 5V
J18 J19
PORTF
pull-up/down
1
ON
8765432
SW
4
PF
5
PF
4
PF
3
PF
2
PF
1
PF
0
X110MHz
C122pF
C222pF
10K
Re
se
t
100n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
J6
E1110uF
R131K
VOUTVIN
GNDR12100
1
2
3
REF1
MCP1541
J13
AREFvcc
vcc
vcc
Figure 36.
A/D Converter input schematic
NOTE: Jumpers J18 and J19 should not select the same pin.
Potentiometer P1 is
connected to RF2 pin
and potentiometer P2 is
connected to RF3 pin.
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
3322page
PPSS
//22 ((
KKEE
YYBB
OOAA
RRDD
)) CC
OONN
NNEE
CCTT
OORR
The PS/2 connector allows direct connec-
tion between BigAVR and devices that use
PS/2 communication, such as PC, keyboard
or mouse. For example, the microcontroller
can be connected to a keyboard to capture
pressed keys or it can be connected to a PC
to act as a keyboard. CLK and DATA lines
are used for data tansfer. In this case, they
are connected to pins PC1 and PC0 respec-
tively.
+5V
DATANC
NC CLKR2610K
DATANCGNDVCCCLKNC
PS2CONNECTOR
VCCR2510K
VCCVCC
X110MHz
C122pF
C222pF
10K
Reset
100n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
J16 J15
Figure 39.
Figure 37.PS/2 connector
PS/2 communication schematic
PS/2 (KEYBOARD) CONNECTORPS/2 READY
DEVELOPMENTDEVELOPMENT
PS/2 READY
Figure 38.
Keyboard connected todevelopment board
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 3333page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
DDIIRR
EECC
TT PP
OORR
TT AA
CCCC
EESS
SS
These connectors can be used for system expansion with external boards such as Serial
Ethernet, Compact Flash, MMC/SD, ADC, DAC, CAN, RTC, RS-485, etc. Ensure that the
on-board peripherals are disconnected from microcontroller by setting the appropriate
jumpers and switches, while external peripherals are using the same pins. The connectors
can also be used for attaching logic probes or other test equipment.
All microcontroller input/output pins can be accessed via connectors placed along the right
side of the board. For each of PORTA, PORTB, PORTC, PORTD, PORTE, PORTF,
PORTG, PORTH, PORTJ, PORTK and PORTL there is one 10-pin connector providing
VCC, GND and up to eight port pins.
DIRECT PORT ACCESS
Figure 40.Direct port access connectors
Figure 41.
Example of how to connect exter-nal peripheral with flat cable
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
3344page
DDIIRR
EECC
TT PP
OORR
TT AA
CCCC
EESS
SS
VCC
PA4
PA6
PA0
PA2
PA5
PA7
PA1
PA3
HEADER 5x2
CN1
VCC
PA1
PA0
PA3
PA2
PA5
PA4
PA7
PA6
8
9
6
7
4
5
2
3
1
J1
Pull-up line isconnected
All linesare disconnected
Pull-down lineis connected
RN1
RPACK8/98x10K
X110MHz
C122pF
C222pF
10
KR
eset
10
0n
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
VCC
Figure 42.
PORTA connection
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 3355page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
JJTTAA
GG CC
OONN
NNEE
CCTT
OORRJTAG connector can be used as serial programming interface or On-Chip debug system. For
the On-chip Debug system, in addition to the JTAG interface pins, the RESET pin is mon-
itored by the debugger to be able to detect external reset sources. The debugger can also pull
the RESET pin low to reset the whole system. The JTAG interface is accessed through four
of the microcontrollers pins:
- TMS: Test Mode Select,
- TCK: Test Clock,
- TDI: Test Data In,
- TDO: Test Data Out.
TMS
Vsupply
TCK
TDO
nSRST
nTRST
GND
VTref
HEADER 5x2
CN13 VCC
TDI GND
JTAGCONNECTOR
VCC
NC
mRST
X110MHz
C122pF
C222pF
10
KR
ese
t
10
0n
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
VCC
JTAG CONNECTOR
Figure 43.
JTAG connector schematic
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
3366page
MMMM
CC//SS
DD ((
MMUU
LLTTIIMM
EEDD
IIAA CC
AARR
DD))
To enable MMC card you must turn on switches 5, 6, 7 and 8 on SW2. By doing that, micro-
controllers SPI comunnication lines (SDI, SDO and SCK) and Chip Select are connected to
MMC. Working voltage of BigAVR is 5V DC, while working voltage of MMC card is 3.3V
DC. Because of that, there is a voltage regulator on-board with MMC card (MC33269DT-
3.3). Data lines from microcontroller to MMC card must be also adjusted to 3.3V. It is done
with resister voltage dividers as shown on Figure 45.
MMC card is used as storage media for a portable devices, in a form that can easily be
removed for access by a PC. For example, a digital camera would use an MMC card for
storing image files. With an MMC reader (typically small box that connects via USB or
some other serial connection) you can easily transfer data from MMC card to your comput-
er. Microcontroller on BigAVR communicates with Multi Media Card via SPI communica-
tion.
Figure 44.
MMC slot on-board
Modern comput-
ers, both laptops
and desktops,
often have SD
slots, which can
read MMC cards.
MMC/SD (MULTIMEDIA CARD)MMC/SDMASS STORAGEMMC/SDMASS STORAGE
SUPPORTEDSUPPORTED
256MB
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 3377page
USBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users ManualMikroElektronikaDevelopment tools
MMMM
CC//SS
DD ((
MMUU
LLTTIIMM
EEDD
IIAA CC
AARR
DD))
SPI-SDO
SPI-SCK
MMC-CS#
SPI-SDI
R183K3
R203K3
R172K2
R192K2
R212K2
R223K3
MMC-CS#
MMC-SDO
MMC-SDI
MMC-SCK
7
6
5
43
2
1
CN22
MMC/SDCARDDout
GND
SCK
+3.3VGND
Din
CS
1 ON
87
65
43
2
SW2
C13100nF
VCC3
C12100nF
VCC
VOUT
VINGND
VCC
3
1 2
REG2
VCC3
E1610uF
MC33269DT-3.3
PB1
PB3
PB2
PG1
VCC3
X110MHz
C122pF
C222pF
10
KR
eset
10
0n
VCC
VCC
PEN PA3
PB
7A
VC
C
PE0 PA4
PG
3G
ND
PE1 PA5
PG
4A
RE
F
PE2 PA6
RE
SE
TP
F0
PE3 PA7
VC
CP
F1
PE4 PG2
GN
DP
F2
PE5 PC7
XTA
L2
PF
3
PE6 PC6
XTA
L1
PF
4
PE7 PC5
PD
0P
F5
PB0 PC4
PD
1P
F6
PB1 PC3
PD
2P
F7
PB2 PC2
PD
3G
ND
PB3 PC1
PD
4V
CC
PB4 PC0
PD
5P
A0
PB5 PG1
PD
6P
A1
PB6 PG0
PD
7P
A2
ATmega128
Figure 45.MMC schematic
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER
BigAVR
BigAVR Users Manual MikroElektronikaDevelopment tools
3388page
If you are experiencing problems with any
of our products or you just want additional
information, please let us know. We are
committed to meeting your every need.
Technical Support :
If you have any other question, comment
or a business proposal, please contact us:
E-mail: [email protected]: www.mikroe.comForum: www.mikroe.com/forum/