™ 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.
TO OUR VALUED CUSTOMERS , ZDQW WR H[SUHVV P\ WKDQNV WR \RX IRU EHLQJ LQWHUHVWHG LQ RXU SURGXFWV DQG IRU KDYLQJ FRQ¿GHQFH LQ Mikroelektronika. The primary aim of our company is to design and produce high quality electronic products and to constantly improve the performance thereof in order to better suit your needs.
page AVRPLC16 v6 TABLE OF CONTENTS General information .......................................................................................................................... 4 Key features ..................................................................................................................................... 5 1.0. Connecting the development system to a power supply source ............................................... 6 2.0. ATMEGA32 microcontroller ...................................
page 4 AVRPLC16 v6 General information The AVRPLC16 v6™ development system provides a full-featured platform intended for development of devices used in industry. It is connected to these devices via relays. The development system features numerous modules using different communication standards such as RS-485, RS-232, Ethernet etc. In addition to these communication modules, the development system also features ADC module, RTC module and MMC/SD connector.
1 2 3 4 page AVRPLC16 v6 5 22 6 21 20 7 19 8 18 9 17 10 16 15 14 13 12 11 Key features 1. Screw terminals used to supply AD inputs with signals 2. Inputs used to supply optocouplers with signals 3. Power supply 4. On-board programmer 5. On-board programmer’s USB connector 12. 16 relays 13. Microcontroller in DIP40 package 14. Real-time clock 15. Antenna holder 16. Screw terminals used to connect earphones and microphone 6. Jumpers used to switch the function of the programming pins 7.
page 6 AVRPLC16 v6 1.0. Connecting the development system to a power supply In order to enable the development system to be turned on, it is necessary to provide the power supply voltage over a screw connector CN1, Figure 1-1. )LJXUH Providing power supply voltage )LJXUH Power supply voltage regulator The power supply voltage provided via the CN1 screw connector may be in a range between 12 and 22V AC or 16 and 30V DC.
page AVRPLC16 v6 2.0. ATMEGA32 microcontroller The AVRPLC16 v6 development system comes with the ATMEGA32 microcontroller in DIP40 pakage.
page 8 AVRPLC16 v6 3.0. Programming microcontroller The ATMEGA32 microcontroller on the development system is programmed with on-board AVRprog or external AVR ISP and JTAG programmers, Figure 3-1. Figure 3-1: AVRprog programmer )LUVW \RX VKRXOG ZULWH D SURJUDP DQG FRPSLOH LW LQWR D KH[ ¿OH LQ D FRPSLOHU 7KHQ \RX VKRXOG ORDG WKH KH[ ¿OH LQWR WKH microcontroller. The on-board programmer is connected to the PC via a USB cable, Figure 3-2 (A and B).
A multiplexer is part of the on-board programmer. This circuit enables the programming pins to be disconnected from the development system while the programming process is in progress, Figure 3. )LJXUH Multiplexing In addition to the on-board programmer, the microcontroller can be programmed with the AVR ISP external programmer that is connected to the development system via the CN45 connector. The JTAG emulator, connected via a 2x5 connector CN46, can also be used for programming.
page 10 AVRPLC16 v6 Depending on the programmer that is used to program the microcontroller, it is necessary to place jumper J10 in the appropriate position, Figure 3-5. A B )LJXUH The position of jumper J10 A The on-board programmer is in use when jumper J10 is placed in the ON-BOARD position B The external programmer is in use when jumper J10 is placed in the EXTERNAL position If necessary, the microcontroller’s programming pins may be disconnected from the programmer.
page AVRPLC16 v6 4.0. MMC/SD connector The development system is capable of reading memory cards due to an on-board MMC/SD connector CN47. Memory card communicates with the microcontroller via the Serial Peripheral Interface (SPI). In order to establish the SPI connection, it is necessary to turn on the appropriate switches on the DIP switches SW9 and SW10, Figure 4-3.
page 12 AVRPLC16 v6 5.0. RS-485 module The RS-485 module enables the development system to communicate to external devices whose operation is in compliance with the RS-485 standard. The connection between this module and one of these devices is established via a screw connector CN10, Figure 5-2. In order to turn on this module, it is necessary to set switches 1,2 and 3 on the DIP switch SW9 to the ON position, Figure 5-3.
page AVRPLC16 v6 6.0. RS-232 module The RS-232 module enables the development system to communicate to external devices whose operation is in compliance with the RS-232 standard. The connection between this module and one of these devices is established via screw terminals CN4 and CN5, Figure 6-2. In order to turn on this module, it is necessary to set switches 1 and 2 on the DIP switch SW11 to the ON position, Figure 6-3.
page 14 AVRPLC16 v6 7.0. ADC module The ADC module is used to convert an analog voltage level into the appropriate 12-bit digital value. The analog voltage signal is supplied via screw terminals CN15 and CN16. The 5V VCC or 4.096V may serve as a voltage reference source. The result of conversion is transferred from the ADC module to the microcontroller via the Serial Peripheral Interface (SPI).
page AVRPLC16 v6 8.0. Ethernet module The Ethernet module enables the development system to access the LAN network via the RJ45 connector. The operation of the Ethernet module is in compliance with the IEEE 802.3 standard. Communication between this module and the microcontroller is performed via the Serial Peripheral Interface (SPI).
page 16 AVRPLC16 v6 9.0. GSM module The Telit’s GSM/GPRS - GM862 module is connected to the development system via the GSM1 connector. Due to this module, the development system can communicate with remote devices through wireless GSM network. In addition to the GSM function, the development system may also use the Global Positioning System (GPS).
page AVRPLC16 v6 Figure 9-6: Telit’s module with connected antennas When all is properly set, it is necessary to insert a SIM card into the appropriate slot on the module. If the SIM card is not inserted, the development system will not be able to communicate to remote devices via wireless communication. A B C Figure 9-7: Inserting SIM card The GSM module gives a possibility of making phone calls.
page AVRPLC16 v6 )LJXUH GSM module connection schematic 127( Teltit’s modules GM862-QUAD and GM862-GPS may be used with this development system.
page AVRPLC16 v6 10.0. RTC module The RTC (Real-Time Clock) module on the development system is used to keep the real time, provide information on dates including correction for a leap year and months with less than 31 days. It can also serve as alarm, timer, for automatic power-fail detection, to generate interrupt at pre-set time and square wave voltage signals. This module has a battery backup and can operate even when the development system’s power supply is off.
page 20 AVRPLC16 v6 11.0. A/D inputs In addition to the ADC module, A/D conversion may also be performed by the A/D module built into the microcontroller. Tha A/D module converts analog voltage signal in a range between 0 and 5V. The conversion of an analog signal into WKH DSSURSULDWH GLJLWDO QXPEHU LV SHUIRUPHG LQ ELW UHVROXWLRQ ,Q RUGHU WR HQDEOH WKH $ ' LQSXWV LW LV ¿UVW QHFHVVDU\ WR set switches 1-8 on the DIP switch SW6 to the ON position.
page AVRPLC16 v6 12.0. Relays and optocouplers Industrial devices usually consume more power than the microcontroller can provide via its I/O ports. To enable the microcontroller to be connected to such devices, the development system is supplied with 16 relays by means of which it is possible to provide up to 250V power supply voltage. Each relay has one normally-open (W0, W1...) and one normally-closed (NW0, NW1...) contact. Sixteen relays are divided in four groups each consisting of four relays.
page 22 AVRPLC16 v6 13.0. Input/output ports Along the right side of the development system, there are four 10-pin connectors linked to the microcontroller I/O ports. The microcontroller pins used for programming are not directly connected to the appropriate 10-pin connector, but via the multiplexer. DIP switches SW1-SW4 enable each connector pin to be connected to one pull-up/pull-down resistor.
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.
,I \RX KDYH DQ\ TXHVWLRQV FRPPHQWV RU EXVLQHVV SURSRVDOV GR QRW KHVLWDWH WR FRQWDFW XV DW RI¿FH#PLNURH FRP If you are experiencing some problems with any of our products or just need additional information, please place your ticket at www.mikroe.com/en/support If you want to learn more about our products, please visit our website at www.mikroe.