All MikroElektronika´s development systems represent irreplaceable tools for programming and developing microcontroller-based devices. Carefully chosen components and the use of machines of the last generation for mounting and testing thereof are the best guarantee of high reliability of our devices.
DISCLAIMER All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any other copyright material. No part of this manual, including product and software described herein, may be reproduced, stored in a retrieval system, translated or transmitted in any form or by any means, without the prior written permission of MikroElektronika.
page BIG AVR 6 Development System TABLE OF CONTENTS Introduction to BIGAVR6 Development System ............................................................................... 4 Key Features .................................................................................................................................... 5 1.0. Connecting the System to a PC ................................................................................................ 6 2.0. Supported Microcontrollers .................
page 4 BIG AVR 6 Development System Introduction to BIGAVR6 Development System The BIGAVR6™ development system is an extraordinary development tool suitable for programming and experimenting with AVR® microcontrollers from Atmel®. The system includes an on-board programmer providing an interface between the microcontroller and D 3&
1 2 3 4 5 6 7 8 9 10 page BIG AVR 6 Development System 11 30 12 29 13 28 14 27 26 25 15 24 23 22 21 20 .H\ )HDWXUHV 1. On-board programmer’s USB connector 2. AVR ISP external programmer’s connector 3. JTAG connector 4. CAN communication interface 5. A/D converter test inputs 6. USB communication connector 7. Serial communication connector RS-232A 8. Real-time clock 9. Serial communication connector RS-232B 10. MCU card socket 11. Jumper for pull-up/pull-down resistor selection 12.
page 6 BIG AVR 6 Development System &RQQHFWLQJ WKH 6\VWHP WR D 3& 6WHS Follow the instructions provided in the relevant manuals and install the $95ÀDVK program and USB drivers from the product CD. USB drivers are necessary for the proper operation of the on-board programmer. In case you already have one of the MikroElektronika’s AVR compilers installed on your PC, there is no need to reinstall USB drivers as they are already installed along with the compiler.
page BIG AVR 6 Development System 2.0. Supported Microcontrollers The BIGAVR6 development system provides a DIMM-168P connector to place an MCU card into. This development system comes with an MCU card with the ATMEGA128 microcontroller in 64-pin TQFP package soldered on it, Figure 2-3. Besides, the MCU card alone provides an oscillator as well as 80 soldering pads connected to microcontroller pins. Each pad is marked the same as the pin it is connected to.
page 8 BIG AVR 6 Development System Placing MCU card into the DIMM-168P connector is performed as follows: 1 2 A B Open extraction levers A and B Place the MCU card into the DIMM-168P connector 4 3 Push the MCU card down gently into the DIMM-168P connector and lift extraction levers slowly at the same time ([WUDFWLRQ OHYHUV XVHG WR ¿[ MCU card in the ‘open’ position Close the extraction levers when the MCU card is properly placed into the connector ([WUDFWLRQ OHYHUV XVHG WR ¿[ MCU card in the
page BIG AVR 6 Development System 2Q ERDUG 86% $95SURJ 3URJUDPPHU A programmer is a necessary tool when working with microcontrollers. The BIGAVR6 has an on-board AVRprog programmer which provides an interface between the microcontroller and the PC. The $95ÀDVK SURJUDP LV XVHG IRU ORDGLQJ D KH[ ¿OH LQWR WKH microcontroller. Figure 3-3 shows connection between the compiler, $95ÀDVK program and the microcontroller.
page 10 BIG AVR 6 Development System AVR microcontrollers are programmed using SPI serial communication which employs the following microcontroller pins MISO, MOSI and SCK. During the programming, the multiplexer disconnects the microcontroller pins used for programming from the rest of the board and connects them to the AVRprog programmer. When the process of programming is complete, these pins are automatically disconnected from the programmer and may be used as input/output pins.
page BIG AVR 6 Development System 5.0. JTAG Connector JTAG ICEmkII is a programmer/debugger for AVR microcontrollers provided with a built-in JTAG interface. The JTAG ICEmkII is primarily intended for use with the AVR Studio SURJUDP 7KH -7$* LQWHUIDFH EXLOW LQ LQWR $95 PLFURFRQWUROOHUV LV D PRGL¿HG YHUVLRQ of the original JTAG interface, which enables the contents of internal EEPROM and FLASH memory to be altered (programming microcontrollers).
page 12 BIG AVR 6 Development System 7.0. Power supply The BIGAVR6 development system may use one of two power supply sources: 1. +5V PC power supply through the USB programming cable; and 2. External power supply source connected to a AC/DC connector provided on the development board. 7KH 0& $ YROWDJH UHJXODWRU DQG *UHW] UHFWL¿HU DUH XVHG WR HQDEOH H[WHUQDO SRZHU VXSSO\ YROWDJH WR EH HLWKHU $& LQ WKH UDQJH RI 7V to 23V) or DC (in the range of 9V to 32V).
page BIG AVR 6 Development System 9ROWDJH 5HIHUHQFH 6RXUFH The BIGAVR6 development system is provided with the MCP1541 circuit which generates voltage reference used for A/D conversion. The microcontroller is supplied with such voltage, the value of which is 4.096V, through the AREF pin. In addition, the AREF pin can also be supplied with the 5V power supply voltage. The position of jumper J18 determines which of these voltages is to be supplied on the AREF pin.
page 14 BIG AVR 6 Development System 56 &RPPXQLFDWLRQ ,QWHUIDFH USART (8QLYHUVDO 6\QFKURQRXV $V\QFKURQRXV 5HFHLYHU 7UDQVPLWWHU) is one of the most common ways of exchanging data between the PC and peripheral units. RS-232 serial communication is performed through a 9-pin SUB-D connector and the microcontroller USART module. The BIGAVR6 provides two RS-232 ports, RS-232A and RS-232B. Use switches marked as RX232-A (PE0 pin) and TX232-A (PE1 pin) on the DIP switch SW13 to enable port RS-232A.
page BIG AVR 6 Development System &$1 &RPPXQLFDWLRQ ,QWHUIDFH CAN (Controller Area Network) is a communication standard primarily intended for use in automotive industry. It enables the microcontroller to communicate to a car device without using a host PC. In addition, such communication is widely used in industrial automation. The BIGAVR6 uses the MCP2551 circuit for CAN communication. This circuit provides an interface between the microcontroller and some peripheral device.
page 16 BIG AVR 6 Development System 12.0. A/D Converter Test Inputs An A/D converter is used for converting an analog signal into the appropriate digital value. A/D converter is linear, which means that converted number is linearly dependent on the input voltage value. The A/D converter built into the microcontroller converts an analog voltage value into a 10-bit number. Potentiometer P5 enables voltage to vary between 0 and 5V.
page BIG AVR 6 Development System '6 7HPSHUDWXUH 6HQVRU 1-wire® serial communication enables data to be transferred over a single communication line while the process itself is under control of the PDVWHU device. The advantage of such communication is that only one microcontroller pin is used. All VODYH devices have by default a XQLTXH ,' FRGH ZKLFK HQDEOHV WKH PDVWHU device to easily identify all devices sharing the same communication interface.
page 18 BIG AVR 6 Development System 5HDO 7LPH &ORFN 57& The real-time clock is widely used in alarm devices, industrial controllers, consumer devices etc. Thanks to the DS1307 circuit, the BIGAVR6 development system is capable of keeping the real time.
page BIG AVR 6 Development System 15.0. MMC/SD Connector The MMC/SD connector is used to enable memory cards to be interfaced to the microcontroller. To enable communication between memory card and microcontroller, it is necessary to adjust their voltage levels. Memory card is powered by the 3.3V power supply voltage (VCC-MMC) generated by the REG1 voltage regulator, whereas the value of the microcontroller power supply voltage is 5V (VCC).
page 20 BIG AVR 6 Development System 16.0. LEDs /(' /LJKW (PLWWLQJ 'LRGH LV D KLJKO\ HI¿FLHQW HOHFWURQLF OLJKW VRXUFH :KHQ FRQQHFWLQJ /('V LW LV QHFHVVDU\ WR XVH D FXUUHQW OLPLWLQJ resistor. A common LED diode voltage is approximately 2.5V, while the current varies from 1 to 20mA depending on the type of LED. The BIGAVR6 uses LEDs with current I=1mA. There are 86 LEDs on the BIGAVR6 development system which visually indicate the state of each microcontroller I/O pin.
page BIG AVR 6 Development System 17.0. 3XVK %XWWRQV The logic state of all microcontroller input pins may be changed by means of push buttons. Jumper J12 is used to determine the logic state to be applied to the desired microcontroller pin by pressing appropriate push button. The function of the protective resistor is to limit the maximum current, thus preventing the development system and peripheral modules from being damaged in case a short circuit occurs.
page 22 BIG AVR 6 Development System 18.0. [ /&' 'LVSOD\ The BIGAVR6 development system provides an on-board connector for the alphanumeric 2x16 LCD display. Such connector is linked to the microcontroller via port PORTC. Potentiometer P4 is used to adjust display contrast. Switch 8 (LCD-GLCD BACKLIGHT) on the DIP switch SW15 is used to turn the display backlight on/off. Communication between the LCD display and the microcontroller is performed in a 4-bit mode.
page BIG AVR 6 Development System 19.0. [ *UDSKLF /&' 'LVSOD\ 128x64 graphic LCD display (GLCD) is connected to the microcontroller via PORTA and PORTE ports and enables graphic content to be displayed. It has the screen resolution of 128x64 pixels, which allows diagrams, tables and other graphic content to be displayed. Potentiometer P3 is used for the GLCD display contrast adjustment. Switch 8 (LCD-GLCD BACKLIGHT) on the DIP switch SW15 is used to turn the display backlight on/off.
page 24 BIG AVR 6 Development System 20.0. 7RXFK 3DQHO The touch panel is a thin, self-adhesive, transparent, touch-sensitive panel. It is placed over a GLCD display. Its main function is to UHJLVWHU SUHVVXUH DW VRPH VSHFL¿F GLVSOD\ SRLQW DQG WR IRUZDUG LWV FRRUGLQDWHV LQ WKH IRUP RI DQDORJ YROWDJH WR WKH PLFURFRQWUROOHU Switches 1, 2, 3 and 4 on the DIP switch SW13 are used for connecting the microcontroller and touch panel.
page BIG AVR 6 Development System 21.0. Input/Output Ports Along the right side of the development system, there are eleven 10-pin connectors which are connected to the microcontroller’s I/O ports. Pins PB1, PB2, PB3, PE0 and PE1 are used for programming and therefore are not directly connected to the appropriate 10pin connectors, but via the programmer’s multiplexer. DIP switches SW1-SW11 enable each connector pin to be connected to one pull-up/pull-down resistor.
page 26 BIG AVR 6 Development System Pull-up/pull-down resistors enable you to set the logic level on all microcontroller’s input pins when they are in idle state. Such level depends on the position of the pull-up/pull-down jumper. The PG2 pin with the relevant DIP switch SW7, jumper J7 and PG2 push button with jumper J12 are used here for the purpose of explaining the performance of pull-up/pull-down resistors. The principle of their operation is the same as for all other microcontroller pins.
DISCLAIMER All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any other copyright material. No part of this manual, including product and software described herein, may be reproduced, stored in a retrieval system, translated or transmitted in any form or by any means, without the prior written permission of MikroElektronika.
All MikroElektronika´s development systems represent irreplaceable tools for programming and developing microcontroller-based devices. Carefully chosen components and the use of machines of the last generation for mounting and testing thereof are the best guarantee of high reliability of our devices.