Home
EasyAVR6 User Manual
Contents
1. nm 10 FO PON b NR mE 11 8 0 RS 232 Communication ln En EE 12 9 0 PS 2 Communication Be e 13 10 0 DS1820 Temperature SENSOM cccssecccessceseeceectecceeneeetenceenseceenseceescensssoeseneensenseeeneesssnesens 14 11 0 A D Converter Test Iipuls eic eed as 15 120 CED 16 13 0 AU pei hr 17 E Ty de E 18 15 0 Alphanumeric 2x16 LOD Display uuu uuu ansia apswasaqankhapasaqhyuqunqa 19 16 0 On Board 2x16 LCD Display with Serial Communication 20 17 0 129x064 Graphic LOD RT LULU LL niena niken iiiaae eiA iD a EAA 21 18 0 Touch IF A PP OCRE Oo whee 22 190 OPO A eee ee 23 20 0 Port Expander Additional I O Porte 25 MikroElektronika page W EasyAVR6 Development System 4 Q 3 Introduction to EasyAVR6 Development Board The EasyAVR6 development system is an extraordinary development tool suitable for programming and experimenting with AVR microcontrollers from Atmel Such development system includes an on board programmer providing an interface between the microcontroller and the PC You are simply expected to write a code in one of the AVR compilers generate a HEX file and program your microcontroller using the AVRorog programmer Numerous on board modules such as 128x64 graphic LCD display alphanumeric 2x16 LCD display on board 2x16 LCD display
2. GRAPHIC LCD CONNECTOR o al i POAT Ce ON BOARD Graphic LCD display with backlight The AVRflash program provides a complete list of all supported microcontrollers The latest version of this program with updated list of supported microcontrollers can be downloaded from our website www mikroe com Package contains Development board EasyAVR6 CD product CD with appropriate software Cables USB cable Documentation EasyAVR6 and AVRflash manuals Installing USB drivers manual and Electrical Schematic of the EasyAVR6 development system System specification Power supply over a DC connector 7V to 23V AC or 9V to 32V DC or over a USB cable 5V DC Power consumption 50mA in idle state when on board modules are inactive Size 26 5 x 22cm 10 4 x 8 6inch Weight 417g 0 92lbs EasyAVR6 Development System i je 9 ei SUPPLY exr m e 0 Je Jas um SWITCHING A SUPPLY CI e Rs ese COMMUNICATION LCD 2 CHARACTERS IN 4 BIT MODE LCD 2 6 CONTRAST LCDexl6 WITH BACKLIGHT Z SS pd l ad CICI CII E UIDI Le EE ES ASS 1 EJ Ed E e e Key Features A Power supply voltage regulator On board programmer s USB connector On boad USB 2 0 programmer AVAprog External AVRISP9 programmer s connector JTAG interface connector A D converter test inputs PS 2 connector On board 2x16 LCD display DIP switches to enable pull up pull down resistors Pull
3. 128x64 graphic LCD display contrast potentiometer 128x64 graphic LCD display connector Clock oscillator Touch panel connector MENU keypad Keypad 4x4 Push buttons to simulate digital inputs Logic state selector Protective resistor ON OFF jumper Reset button 35 LEDs to indicate pins logic state DS1820 temperature sensor socket Alphanumeric LCD display contrast adjustment Alphanumeric LCD display connector RS 232 communication connector MikroElektronika 6 Eas yAVR6 Development System Q CH 3 1 0 Connecting the System to your PC Step 1 Follow the instructions for installing USB drivers and the AVHflash program provided in the relevant manuals It is not possible to program AVR microcontrollers without having these devices installed first In case that you already have some of the MikroElektronika s compilers installed on your PC there is no need to reinstall the AVAflash program as it will be automatically installed along with the compiler Step 2 Use the USB cable to connect the EasyAVR6 development system to your PC One end of the USB cable provided with a connector of the USB B type should be connected to the development system as shown in Figure 1 2 whereas the other end of the cable USB A type should be connected to your PC When establishing a connection make sure that jumper J6 is placed in the USB position as shown in Figure 1 1 J6 power supply selector 4 j x SWITCHING POWER SUPPLY a Figure 1 2
4. Fa SyAVR 6 User manual 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 Due to simple design a large number of add on modules and ready to use examples all our users regardless of their experience have the possibility to develop their projects in a fast and efficient way C I gt D a ai Q gt a EJMikroElektronika SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD waking it simple TO OUR VALUED CUSTOMERS I want to express my thanks to you for being interested in our products and having confidence in MikroElektronika It is our intention to provide you with the best quality products Furthermore we will continue to improve our performance to better suit your needs ee im General Manager EasyAVR6 Development System TABLE OF CONTENTS Introduction to EasyAVR6 Development Gvstem nennen nennen nnns 4 F Mm lU s cT TIO E TTE 5 1 0 Connecting the System TO your Pcmcia cda 6 2 Crespi ete nte EE EM 7 3 0 On Board USB 2 0 AVRprog Programmer a r sedes 8 4 0 External AVRISP mkll Programmer ENEE 9 5 0 JTAG A 10 6 0 Clock OI eiu MERERI
5. PA2 PA3 or PA4 The R63 resistor has a protective function as it is used for limiting current flow through the potentiometer or the microcontroller pin The value of the input analog voltage can be changed linearly using potentiometer P1 10k PAO is A D input Figure 11 1 ADC default Figure 11 2 The PAO pin jumper positions used as A D conversion input Top view Figure 11 3 AVR microcontroller in DIP14 package and A D converter test inputs connection PAO is A D input PAO is A D input gt gPB7 A I RESET AREF a Top view Top view Figure 11 4 Microcontroller in DIP40 package and A D converter test Figure 11 5 Microcontroller in DIP20B package and A D converter test inputs connectiion inputs connection NOTE In order to enable the microcontroller to accurately perform A D conversion it is necessary to turn off LED diodes and pull up pull down resistors on port pins used by the A D converter MikroElektronika Eas yAVR6 Development System 15 page 16 Eas yAVR6 Development System QU 3 12 0 LEDs LED diode Light Emitting Diode is a highly efficient electronic light source When connecting LEDs it is necessary to place a current limiting resistor the value of which is calculated using formula R U I where R is referred to resistance expressed in ohms U is referred to voltage on the LED and I stands for LED diode current A common LED diode voltage is approximately 2 5V while the current varies fr
6. jp T 31 Top view DISP BCK R28 10 8l9SrEezl E S0 31 52 23 zu 35 zh Z Tmp u 5pc MikroElektronika page 3 NO NO page Eas yAVR6 Development System 18 0 Touch Panel The touch panel is a thin self adhesive transparent panel sensitive to touch It is placed over a GLCD display The main purpose of this panel is to register pressure at some specific display point and to forward its coordinates in the form of analog voltage to the microcontroller Switches 5 6 7 and 8 on the DIP switch SW8 are used for connecting touch panel to the microcontroller Figure 18 1 Touch panel Figure 18 1 shows how to place a touch panel over a GLCD display Make sure that the flat cable is to the left of the GLCD display as shown in Figure 4 7 CO gt o AAA AA AAA A A AAA 7 NO pn Sit E PB1 pa iE E PB2 Md E PB3 St E PB4 PAA T ops PAS i TP past TEE RESET AREFE Evcc D euni ono acci XTAL2 ord IxTAL1 gy Pcol i PDO Pcs i E PD1 PC4I E PD2 Sat E PD3 PC2H E PD4 Sit E PD5 PCol PD6 PD7 a 8 19Svtcl BOTTOM TOUCHPANEL SW8 BOTTOM LEFT DRIVEA DRIVEB ON CEEEE Figure 18 2 Touch panel connection schematic Figure 18 3 Placing touch panel Figure 18 3 shows in detail how to connect a touch panel to the microcontroller Bring the end of the flat cable close to the CN13 connector as shown in Figure 1 Plug the cable into the connector as shown in Figure 2 a
7. power supply voltage to be either AC in the range of 7V to 23V or DC in the range of 9V to 32V Jumper J6 is used as a power supply selector When using USB power supply jumper J6 should be placed in the USB position When using external power supply jumper J6 should be placed in the EXT position The development system is turned on by setting the POWER SUPPLY switch in the ON position Power supply voltage regulator USB connector Jumper J6 as a power supply selector L3 T PO SWITCHING POWER sean LY J6 System is powered BAI ZS through DC connector System is powered through a Use USB connector EXT USB mam m P Side view Side view 4x1N4007 Top view L2 220uH E NGND CMPRI zl A K Side view Bottom view Side view m L rrr Side view Side view Figure 7 2 Power supply source connection schematic MikroElektronika Pa page page F5 EasyAVR6 Development System 8 0 RS 232 Communication Interface The USART universal synchronous asynchronous receiver transmitter is one of the most common ways of exchanging data between the PC and peripheral components RS 232 serial communication is performed through a 9 pin SUB D connector and the microcontroller USART module In order to enable such communication it is necessary to establish a connection between RX and TX communication lines and microcontroller pins provided with USART module using a DIP switch SW9 The microcontroller pins used in su
8. signal SCK and therefore starts data exchange PORT Serial EXPANDER output TEAM bes Master Nie 5 CS CS SPI Slave MCP23S17 Figure 20 3 SPI communication block diagram The principle of operation of the port expander s ports 0 and 1 is almost identical to the operation of other ports on the development system The only difference here is that port signals are received in parallel format The MCP23517 converts such signals into serial format and sends them to the microcontroller The result is a reduced number of lines used for sending signals from ports 0 and 1 to the microcontroller MikroElektronika page LI NO lo page SW6 CS PB1 RST PB2 SCK PB7 SW7 PB6 MISO PB5 MOSI Jumpers J14 and J15 in the pull up position gt XTAL1 O PDO SS Figure 20 3 Port expander connection schematic MikroElektronika P01 LED U5 CGPDO i o GPB2 MEE cro E uo 75 7 uini IGPB7 vcco Mele E GND cs E Eas yAVR6 Development System GPA7 W SCH GPA5 Foa GPA4 ed GPA3 p GPA2 Lee GPA1 p GPA0 INTA INTB RESETI GNDI GND INE GE SC T RMINOS Y CONDICIONES Todos los productos de MikroElektronika son protegidos por la ley y por los tratados internacionales de derechos de autor Este manual es protegido por los tratados de derechos de autor tambi n Es prohibido copiar este manual en parte o en conjunto sin la autorizaci n previa por escrito de
9. up pull down mode selection I O port connectors AVR microcontroller sockets Touch panel controller Port expander eet oe Ee II sl s si s l sl i mi CET ml m mim mim m s m Im s ml is is isi eee isj isi isj is eee iGleasy AV a DODUO O O D NONE 000013 m DH jannn gg DO EE B foooo ii ii onn EE Om NB E gp PR Mens page U1 MIKROELEKTRONIKA WWW MIKROE COM AW WWW S PORTA 7 HI eis PROGRAMMER SOCKET SELECTION NN GE uu S Z PORTB 7 5 7 ue 7 EXTERNAL Z A PROGRAMMER ADC INPUT Z Z Z Z 2 Z ES Su Z A z Z E az A E E DS oe J amp 7 PORIC 7 DIP8B z 7 we 7 lt U 14111111 Z A EE dr 111111 Z Z Z Be oounlel 11411101 ss Z 000000000000090 2 Z DIP20A DIP40 DIPA0B BH Z Z Z Z Z Z HE 4 PORID 7 Z Z Z Z 2 IW Z 1171771171 j j Z Z 11111111 7 Z CELL Z Z Z Z 4 Z Z Z PORTE ABW WWW MAMAS EEE LI I IL IL ILI I T m m ng ml m im m eee 25 D I PORTO SIS SSS DA UCH D SUPP PANGE 6 JU EXT cuoc G sas sss s d qt ii Uy it JO Ay SSS SSSS9SI9I SOSOSS gt gt gt S PORTI H l E LW IN E m le TR LW gt m e el mf BI S E BI Ke Li i Um I E Um E M el W PORT EXPANDER ey amp 9 6 OG 1 16 17 18 19 20 21 22 23 24 20 26 27 28 29
10. 0 AVRprog Programmer The AVRprog programmer is a tool used for dumping hex code into the microcontroller The EasyAVA6 has an on board AVRprog programmer which allows you to establish a connection between the microcontroller and your PC Figure 3 2 shows the connection between a compiler AVHflash program and microcontroller Ui If 8 Jumper J8 used for selecting programmer built in or external to be used for programming AVR chip Programmer s USB connector Programmer s chip Ka LM rss P gen Y r m By jm i ER 4 2 P D Write a program in some of AVR compilers and generate a HEX file Compiling program pling prog 2 Use the AVRflash program to select an appropriate microcontroller 1110001001 Bin and to load the HEX file E Ed cog a Eh 0110100011 E le 0111 2FC23AA7 3 Click the Write button to load the 1011 F43E0021A program into the microcontroller DA67F0541 File Edit View Project Run Tools Help txt1 txt2 Loading HEX code txt3 E AE mm SHE On the right side of the AVRflash gt program s main window there are a number of buttons which make the programming process easier There i mu rae is also an option at the bottom of the I window which enables you to monitor the programming progress void Move Delavi Delay ts 5000 sat Seet ob CE er Eech 1004 Ward Write a code in some
11. CI EXTAL2 H PC7I XTAL1 gy Pool gPD0 Se gPD1 PC4 PD2 PC3 I B PD3 Set E PD4 PC1i a PD5 Neu LINK PD7 DIP40 Figure 19 4 PORTA connection schematic MikroElektronika page LA 24 EasyAVR6 Development System d O amp Pull up pull down resistors enable you to set the logic level on all microcontroller input pins when they are in idle state Such level depends on the position of the pull up pull down jumper The PAO pin with the relevant DIP switch SW1 jumper J1 and PAO push button with jumper J13 are used here for the purpose of explaining the performance of pull up pull down resistors The principle of their operation is identical for all the microcontroller pins pn Paoi Brei NT rop SEI E PB3 PAS I a PB4 PAS E PB5 PASI PB6 PA6 E PB7 PA7 RESET AREF pvcc onpi Fono acci XTAL2 Set ExTAL1 gy PC6 E PDO St E PD1 PC4H PD2 Set E PD3 St E PD4 Sat E PD5 fen PD6 PD7H DIP40 E PBO Sit E PB1 INT E PB2 PA21 E PB3 PA3 i PB4 ST E PB5 PA5 ipo pac TM pari PRESET AREF nvcc cNpi ono acci XTAL2 PC7I Lena gy Pcel PDO PC5 i E PD Pc4 PD2 PC3l E PD3 PC21 E PD4 Seit E PD5 PCOI PD6 PD7 DIP40 VCC O up pull J1 down MikroElektronika up E RN1 Ke J1 swt up RN1 De lu swt 12345678 Figure 19 5 Jumper J1 in pull down and J13 in pull up position 12345678 Figure 19 7 Jumpers J1 and J13 in the same positi
12. Connecting USB cable J6 in USB position POWER SUPPLY switch ya E o aa _ rs Figure 1 1 Power supply Step 3 Turn on your development system by setting the power supply switch to the ON position Two LEDs marked as POWER and USB LINK will be turned on to indicate that your development system is ready to use Use the on board AVAprog programmer and AVAflash program to dump a code into the microcontroller and employ the board to test and develop your projects NOTE Ifyou use some additional modules such as LCD GLCD extra boards etc it is necessary to place them properly on the develop ment system before it is turned on Otherwise they can be permanently damaged Refer to Figure 1 3 for their proper placing Figure 1 3 Placing additional modules on the board MikroElektronika EasyAVR6 Development System 2 0 Supported Microcontrollers The EasyAVR6 development system provides eight separate sockets for AVR microcontrollers in DIP40 DIP28 DIP20 DIP 14 and DIP8 packages These sockets allow supported devices in DIP packages to be plugged directly into the development board There are two sockets for AVR microcontrollers in DIP40 DIP20 and DIP8 packages provided on the board Which of these sockets will you use depends solely on the pinout of the microcontroller in use The EasyAVR6 development system comes with the microcontroller in a DIP40 package Jumpers J10 and J11 next to the sockets DIP28 and DIP8 are used for
13. MikroElektronika Se permite imprimir este manual en el formato PDF para el uso privado La distribuci n y la modificaci n de su contenido son prohibidas MikroElektronika proporciona este manual como est sin garant as de ninguna especie sean expresas o impl citas incluyendo las garant as o condiciones impl citas de comerciabilidad y aptitud para fines espec ficos Aunque MikroElektronika ha puesto el m ximo empe o en asegurar la exactitud de la informaci n incluida en este manual no asume la responsabilidad de ninguna especie de da os derivados del acceso a la informaci n o de los programas y productos presentados en este manual incluyendo da os por la p rdida de los beneficios empresariales informaci n comercial interrupci n de negocio o cualquier otra p rdida pecuniaria Las informaciones contenidas en este manual son para el uso interno Pueden ser modificadas en cualquier momento y sin aviso previo ACTIVIDADES DE ALTO RIESGO Los productos de MikroElektronika no son tolerantes a fallos y no est n dise ados fabricados o pensados para su uso o reventa como equipo de control en l nea en entornos peligrosos que requieran un funciona miento sin fallos como en instalaciones nucleares en la navegaci n a rea o en sistemas de comunicacio nes de tr fico a reo m quinas de auxilio vital o sistemas de armamento en los que un fallo del software podr a conducir directamente a la muerte lesiones corporales o da o
14. ate microcontroller socket PROGRAMMER Jumper J8 in the EXTERNAL ieee Position enables external m AVRISP programmer eet epos The position of jumper J7 when the external programmer used for programming microcontrollers in DIP20B and The position of jumper J7 when the external programmer is used for programming microcontrollers in DIP14 A heel D I package EXTERNAL PROGRAMM an lid position enables on board programmer The position of jumper J7 when the external programmer E41 is used for programming microcontrollers in DIP40 and UII DIP20A packages EXTERNAL PROGRAMMER The position of jumper J7 when the external programmer is used for programming microcontrollers in DIP28 i package EXTERNAL PROGRAMMER Figure 4 2 AVRISP mkll connected to the development system MikroElektronika 10 U 9 5 0 JTAG Connector EasyAVR6 Development System JTAG ICE is an emulator used for AVR microcontrollers with built in JTAG interface Wega AVR microcontrollers JTAG ICE is primar ily intended for work with the AVR Studio program The JTAG connector built into AVR microcontrollers is a modified version of the original JTAG interface It enables contents of internal EEPROM and FLASH memory to be changed programming microcontroller JTAG ICE emulator employs a male 2x5 connector to establish connection with the development system Figure 5 1 JTAG connector The JTAG connector is directly connec
15. ce is in the button arrangement The keypad MENU buttons are arranged so as to provide easy navigation through menus ESSUAVRE BY MIKROELEKTRONIKA Jumper J13 is in the VCC position Pins PC0 PC1 PC2 and PC3 are connected to pull down resis tors through DIP switch SW3 gPB0 gPB1 PB2 PB3 PB4 PB5 PB6 gt PA6 PB 1 PA7 I I RESET 3 AREF GND PAO PA1 H PA2 down PA3 PA4 PA5 yere Ken i5 to Pere ovcc o XTAL2 E MXTAL1 O PDO I PD1 PD2 PD3 PD4 I PD5 Pe DIP40 Pull down Figure 14 2 Keypad 4x4 performance CC O up ja ANS A 8x10K pull N 3 sw Ka BAT43 AM WK Side view 12345678 BRE D8 Figure 14 4 Keypads 4x4 and MENU and microcontroller connection schematic MikroElektronika Figure 14 3 Keypad MENU E R58 18 El 220R EasyAVR6 Development System 19 page 15 0 Alphanumeric 2x16 LCD Display The EasyAVR6 development system provides an on board connector so that the alphanumeric 2x16 LCD display can be plugged in Such connector is linked to the microcontroller through the PORTD port Potentiometer P7 is used for display contrast adjustment The DISP BCK switch on the DIP switch SW10 is used for turning on off display backlight Communication between an LCD display and the microcontroller is established using a 4 bit mode Alphanumeric digits are displayed in two lines each containing up t
16. ch communication are marked as follows RX receive data and TX transmit data Baud rate goes up to 115 kbps In order to enable the USART module of the microcontroller to receive input signals with different voltage levels it is necessary to provide a voltage level converter such as MAX 202C Nome o E EME Jire DURAM se wl Fre SOCEET Rene ne OCET j TOGRA The function of DIP switch SW9 is to determine which of the microcontroller pins are to be used as RX and TX lines The microcontroller pinout varies depending on the type of the microcontroller Figure 8 2 shows the connection between the RS 232 module and the microcontroller in DIP40 package ATMEGA16 SW9 RX PB2 TX PB3 ON PAO PA1l SIE PA3 I PAS i ici nou Sech C30 PA6 C2 R1 IN 100nF E PB7 PA7 i C2 R1 OUTI 2 co M ee RESET AREF I s NT20UT T2INI VCCo Mes T e By ER2IN AO K Kein p A AVCC suB D9p RS232 EXTAL2 4 PC7I AXTAL1 ex PC6 I PDO PC51 APD1 OZE PD2 Sei I PD3 mera PD4 PC1I gPD5 Sein PD6 PD7I O VCC O C28 E C1 vce y C31 V 100nF k E lt KEE 98 49S8v 6 GND Bottom view DIP40 Figure 8 2 RS 232 module schematic NOTE Make sure that your microcontroller is provided with the USART module as it is not necessarily integrated in all AVR microcontrollers MikroElektronika EasyAVR6 Development System 9 0 PS 2 Communication Interface The PS 2 connector enables inpu
17. h a means of increasing the number of available I O ports by two If the port expander communicates to the microcontroller over the DIP switches SW6 and SW7 then the microcontroller pins used for SPI communication cannot be used as l O pins Switches INTA and INTB on the DIP switch SW9 enable interrupt used by MCP23S17 Jumper for selecting pull up pull down resistor DIP switch connecting port expander to the microcon troller iT lt aw o Do amp gt 1 0 A Q a es Figure 20 2 DIP switches SW6 and SW7 when port expander is enabled Figure 20 1 Port expander The microcontroller communicates to the port expander MCP23S17 circuit using serial communicaion SPI The advantage of such communication is that only four lines are used for transmitting and receiving data simultaneously MOSI Master Output Slave Input microcontroller output MCP23S17 input MISO Master Input Slave Output microcontroller input MCP23517 output SCK Serial Clock microcontroller clock signal CS Chip Select enables data transfer Data transfer is performed in both directions simultaneously by means of MOSI and MISO lines The MOSI line is used for transferring data from the microcontroller to the port expander whereas the MISO line transfers data from the port expander to the microcontroller The microcontroller initializes data transfer when the CS pin is driven low OV It causes the microcontroller to send clock
18. ly voltage of 3V to 5 5V is required for its operation It takes maximum 750ms for the DS1820 to calculate temperature with 9 bit resolution The EasyAVR6 development system provides a separate socket for the DS1820 It may use either PA4 or PB2 pin for communication with the microcontroller Jumper J9 s purpose is selection of the pin to be used for 1 wire communication Figure 10 4 shows 1 wire communication with microcontroller through the PA4 pin NOTE Make sure that half circle on the board matches the round side of the DS1820 Figure 10 1 DS1820 Figure 10 2 J11 in the Figure 10 3 J11 in the connector 1 wire com left hand position 1 wire right hand position 1 wire munication is not used communication through communication through the PA4 pin the PB2 pin Jumper J9 set in the PA4 position DS1820 PB7 4 PA7 RESET 3 AREF DQ Botoom view A VCC GND Figure 10 4 1 wire communication connection schematic MikroElektronika 11 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 the converted number is linearly dependent on the input voltage value The A D converter within the microcontroller converts an analog voltage value into a 10 bit number Voltages varying from OV to 5V DC may be supplied through the A D test inputs Jumper J12 is used for selecting some of the following pins PAO PA1
19. m view Side view simulating digital inputs be applied to the pin by pressing button JI3 iS sen TE kW Figure 13 1 Push buttons used for simulating digital inputs By pressing any push button PAO PA7 when jumper J13 is in the VCC position a logic one 5V will be applied to the appropriate microcontroller pin as shown in Figure 13 2 Jumper J13 in the VCC position PB7 PAT ll I RESET 3 AREF Figure 13 2 PORTA push button connection schematic MikroElektronika N page 18 d 8 14 0 Keypads EasyAVR6 Development System There are two keypads provided on the EasyAVR6 development system These are keypad 4x4 and keypad MENU Keypad 4x4 is a standard alphanumeric keypad connected to the microcontroller PORTC The performance of such keypad is based on the scan and sense principle where the PCO PC1 PC2 and PCS pins are configured as inputs connected to pull down resistors The PC4 PC5 PC6 and PC7 pins are configured as high level voltage outputs Pressing any button will cause a logic one 1 to be applied to input pins Push button detection is performed from within software For example pressing button 6 will cause a logic one 1 to appear on the PC2 pin In order to determine which of the push buttons is pressed a logic one 1 is applied to each of the following output pins PC4 PC5 PC6 and PC7 Keypad MENU buttons are connected in a similar way to the PORTA buttons The only differen
20. nd press it easily so as to fit the connector as shown in Figure 3 Now you can plug a GLCD display into the appropriate connector as shown in Figure 4 NOTE LEDs and pull up pull down resistors on the PORTA port must be turned off when using a touch panel MikroElektronika EasyAVR6 Development System 19 0 Input Output Ports Along the right side of the development system there are seven 10 pin connectors which are connected to the microcontroller s I O ports Some of the connector pins are directly connected to the microcontroller pins whereas some of them are connected using jumpers DIP switches SW1 SW5 enable each connector pin to be connected to one pull up pull down resistor Whether port pins are to be connected to a pull up or pull down resistor depends on the position of jumpers J1 J5 2x5 PORTB male connector e 3 FLOWS BR INT gas Mu Casen Jumper for pull up pull Si down resistor selection Figure 19 2 J3 in the pull down position DIP switch to turn on pull up pull down resistors for each pin Figure 19 3 J3 in the E Us egg AB pull up position Figure 19 1 I O ports SW1 1 8 OFF vec Jumper J1 in the pull down position Us RN1 TD 8x10K Jumper J13 in the VCC position pull ON down J1 SW1 12345678 ol Mitoon E eu dadas uibus TY O guNBEER Nay 1222 PAE _ j j EES Dei TTT Tn WW if ft Te me TT O ae BR foam LIT Jj lil RESET 3 AREF I Ivcc D owpi GND Is Avc
21. o 16 characters of 7x5 pixels TUE T y HD Pi D UNITE Can PC TLOPIENT TE SU N ap PERMANENTE y DA a LETT x MAE ACE Le D dais AND ere MIT E CAN D PROP y AA A WENTI y sai mg Bony GED S BW Dese SW10 DISP BCK ON PBO PAO ll PB1 PA11 PB2 PA2 E PB3 St TVN PB4 SEN APB5 PA5 PB6 gt PA6 APB7 4 PA7 I RESET AREF I vcco IMAN DY GND ES avcc i XTAL2 ER KOTA AXTAL1 ep PC6 I PDO Sea PD1 PC4I PD2 PC3 I L o PD3 PC21 y PD4 PC1I EE Lm ecol id p gt PD7I DIP40 DISP BCK Figure 15 3 Alphanumeric 2x16 LCD display connection schematic MikroElektronika NO 0 EasyAVR6 Development System d l 16 0 On Board 2x16 LCD Display with Serial Communication On board 2x16 display is connected to the microcontroller through a port expander In order to use this display it is necessary to set switches 1 6 on the DIP switch SW10 to the ON position thus connecting the on board LCD display to port expander s port 1 The following DIP switches SW6 SW7 and SW9 enable the port expander to use serial communication Potentiometer P5 is used for display contrast adjustment Unlike common LCD display the on board LCD display has no backlight and receives data to be displayed through the port expander which employs SPI communication for the purpose of communicating with the microcontroller Such display also shows digits in two lines each containing up to 16 characters of 7x5 pixels Cont
22. of AVR compilers generate EIER send aa a hex file and the on board programmer will take cade ha das SSSR SSES EGS DATA HEX File care of loading data into the microcontroller a Figure 3 2 The principle of programmer s operation NOTE For more information on the AVAprog programmer refer to the relevant manual provided in the EasyAVR6 development system package MikroElektronika Eas yAVR6 Development System 9 e el AVR microcontrollers are programmed by means of SPI serial communication using the following microcontroller pins MISO MOSI and SCK Build in programmer AVRprog Multiplexer MISO VISTO mos EE oin x CHIP GND SCK SCK Programming lines L interface During the programming a multiplexer disconnects the microcontroller pins used for programming from the rest of the board and connects them to the AVRprog programmer After the programming is complete these pins are disconnected from the programmer and may be used as input output pins 4 0 External AVRISP mkll Programmer In addition to the on board programmer the EasyAVR6 development system may also use the external AVRISP programmer from Atmel for programming microcontrollers Such programmer is plugged into the AVR SP connector In order to enable a microcontroller to be programmed using this programmer it is necessary to set jumper J8 in the EXTERNAL position prior to turning the programmer on Then use jumper J7 to select the appropri
23. om 1mA to 20mA depending on the type of LED diode The EasyAVR6 development system uses LEDs with current 1mA The EasyAVR6 has 35 LEDs which visually indicate the state of each microcontroller I O pin An active LED diode indicates that a logic one 1 is present on the pin In order to enable the pin state to be shown it is necessary to select appropriate port PORTA E PORTB PORTC or PORTD using the DIP switch SW8 TED LCD AND GLC Notch indicating the SMD LED cathode GLCD Prope ALY Or E PERMANENTLY DAMA SE BOTH EA m Wal m gt 3 D O 2 O BLOGVTECL Figure 12 2 LED diode and PORTA connection schematic MikroElektronika EasyAVR6 Development System 13 0 Push Buttons The logic state of all microcontroller digital inputs may be changed using push buttons Jumper J13 is used to determine the logic state to be applied to the desired microcontroller pin by pressing the appropriate push button The purpose of the protective resistor is to limit the maximum current thus preventing a short circuit from occurring If needed advanced users may short such resistor us ing jumper J18 Just next to the push buttons there is a RESET button which is not connected to the MCLR pin The reset signal is generated by the programmer RESET button Jumper J18 used for shorting protective resistor Jumper J13 used for selecting logic state to Top view Inside view Push buttons used for Botto
24. on In order to enable the port PORTA pins to be connected to the pull down resistors first it is necessary to set jumper J1 in the Down position This enables any port PORTA pin to be provided with a logic zero OV in idle state over jumper J1 and 8x10K resistor network To provide the PAO pin with such signal it is necessary to set switch PAO on the DIP switch SW1 in the ON position As a result every time you press the PAO push button a logic one 1 will appear on the PAO pin provided that jumper J13 is set in the VCC position In order to enable port PORTA pins to be connected to pull up resistors and the port input pins to be acivated with logic zero 0 it is necessary to set jumper J1 in the Up position 5V and jumper J13 in the GND position OV Also the PAO pin on the DIP switch SW1 should be set in the ON position so as to enable all port PORTA input pins over the 10k resistor to be provided with logic one 5V in their idle state The PAO switch supplies the PAO pin with this voltage over the 10k resistor As a result every time you press the PAO push button a logic zero 0 will appear on the PAO pin In case that jumpers J1 and J13 have the same logic state pressure on any button will not cause input pins to change their logic state Eas yAVR6 Development System 2 20 0 Port Expander Additional Input Output Ports The SPI communication lines and MCP23517 circuit provide the EasyAVR6 development system wit
25. rast adjustment potentiometer DIP switch SW10 to turn the on board 2x16 LCD display ON SW6 SW7 CS RST SCK MISO MOSI ON SW10 1 6 ON Ss l LI LI LI Lj aen 3 AREF I TRE PE INTA oT Were Na INTB F PE INTB VCC O Q is E R2 gPB7 PA7 I LILILILILI Top view Figure 16 2 On board 2x16 LCD display connection schematic MikroElektronika EasyAVR6 Development System 17 0 128x64 Graphic LCD Display 128x64 graphic LCD display 128x64 GLCD provides an advanced method for displaying graphic messages It is connected to the microcontroller through PORTC and PORTD GLCD display has the screen resolution of 128x64 pixels which allows you to display diagrams tables and other graphic contents Since the PORTD port is also used by 2x16 alphanumeric LCD display you cannot use both displays simultaneously Potentiometer P6 is used for the GLCD display contrast adjustment Switch 7 on the DIP switch SW10 is used for turning on off display backlight Figure 17 1 GLCD display SW10 DISP BCK ON pg Paoi E PB1 INT E PB2 PA21 EPB3 PA3 I E PB4 Pa4 i E PB5 PAS I rss D pasl TEE RESET AREF I pvcc D cNpi GND Ve Eer enz P poyi EXTA gy Pool E PDO PC5 E PD1 rere PD2 Pc3i E PD3 PC21 E PD4 Sait ps Sat re PD7 I DIP40 Figure 17 3 GLCD display connection schematic Contrast adjustment potentiometer Touch panel connector GLCD connector Figure 17 2 GLCD connector NO E
26. s f sicos o medioambientales graves Actividades de alto riesgo MikroElektronika y sus proveedores niegan espec ficamente cualquier ga rant a expresa o impl cita de aptitud para Actividades de alto riesgo MARCAS REGISTRADAS Los productos y los nombres corporativos utilizados en este manual son protegidos por la ley de los derechos de autor sin reparar en la ausencia de notas adicionales Las marcas registradas son utilizadas exlusivamente con el prop sito de identificar y explicar los conceptos correspondientes y en beneficio de sus respectivos propietarios sin intenci n de infringirlas Copyright 2003 2009 por MikroElektronika Todos los derechos reservados LUOD SOJYILU BOIJJO US SOJJOSOU UOD 0JOe UOD US seBuod OID0Heu ap elsendoid o oejuawoo ejunbald eunbye auall IS Ywoddns us WOd oU AWA ue Jeyon un efep EUOIDIPE uoioeuuojul eysoeooeu OJOS o sojonpoud SOJISANU ep eraimbyeno uoo sewajqoid Sus IS LJO9 60JXIU MMM gem euiDed esanu aysa J0A8J Jod sojonpouad sofisenu ep seuu Jeqes eJeinb IS Cd THOM CQ30Q038W3 dOd SNOILN IOS 3H VMOSVH ANY 38VMIJOS a E
27. selecting functions of the microcontroller pins PB3 PB3 is an I O pin OSC Pin PB3 is fed with a clock signal from the on board oscillator VCC Pin is connected to VCC PC7 PC7 is an I O pin AVR microcontrollers can use either built in internal or on board external oscillator as a clock signal source The clock oscillator provided on the board generates clock signals for most supported microcontrollers Microcontrollers plugged into the DIP8A socket use built in oscillator for clock generation and are not connected to the on board oscillator Microcontrollers plugged into the DIP8B socket may use either internal or external oscillator which depends on the jumper J10 position Prior to plugging the microcontroller into the appropriate socket make sure that the power supply is turned off Figure 2 2 shows how to correctly plug a microcontroller into the appropriate socket Figure 1 shows an unoccupied DIP40 socket Place one end of the microcontroller into the socket as shown in Figure 2 Then put the microcontroller slowly down until all the pins thereof match the socket as shown in Figure 3 Check again that everything is placed correctly and press the microcontroller easily down until it is completely plugged into the socket as shown in Figure 4 NOTE Only one microcontroller may be plugged into the development board at the same time MikroElektronika page I Eas yAVR6 Development System O Q 8 3 0 On Board USB 2
28. t units such as keyboard and mouse to be connected to the development system In order to enable PS 2 communication it is necessary to correctly place jumpers J16 and J17 thus connecting DATA and CLK lines to the microcontroller pins PCO and PC1 Do not connect disconnect input units to the PS 2 connector while the development system is turned on as it may permanently damage the microcontroller Figure 9 1 PS 2 connector Figure 9 2 PS 2 connector J16 and J17 are not placed J16 and J17 are placed Jumpers J16 and J17 are placed PB7 PA7 I RESET AREF NC DATA Front view o P4213 Bottom view Figure 9 3 PS 2 connector connection schematic Figure 9 4 EasyAVR6 connected to keyboard MikroElektronika 13 page 14 Eas yAVR6 Development System d 8 10 0 DS1820 Temperature Sensor 1 wire serial communication enables data to be transferred over one single communication line while the process itself is under the control of the master microcontroller The advantage of such communication is that only one microcontroller pin is used All slave de vices have by default a unique ID code which enables the master device to easily identify all devices sharing the same interface DS1820 is a temperature sensor that uses 1 wire standard for its operation lt is capable of measuring temperatures within the range of 55 to 125 C and provides 0 5 C accuracy for temperatures within the range of 10 to 85 C Power supp
29. ted to the microcontroller pins so that it doesn t depend on jumpers J7 and J8 settings which otherwise have to be performed when using AVRprog and AVHISP programmers 6 0 Clock Oscillator There is a clock oscillator provided on the board used as a clock signal external source The quartz crystal used for the purpose of stabilizing clock frequency is plugged into the appropriate socket and therefore can always be replaced with another one Its maximum value depends on the maximum operating frequency of the microcontroller Quartz crystal X2 plugged into the appropriate socket which enables it to be easily replaced Figure 6 1 Oscillator MikroElektronika VCCo U U9C 74HC04 74HC04 gt gt JU EXT CLOCK X2 i R65 Figure 6 2 Oscillator connection schematic PBO PB1 PB2 I PB3 PB4 PB5 PB6 gt gPB7 PAO PA1I PA21 PA3 1 SEN PA5 PA6 ll PA7 I RESET E AREF a ee Te XTAL2 Gel XTAL1 O PDO PD1 PD2 I PD3 I PD4 PD5 I PD6 DIP40 GND AVCCI Wed PC6 PC5I We ke PC2I Wal PCO PD7 oVCC EasyAVR6 Development System 7 0 Power Supply The EasyAVR6 development system may use one of two power supply sources 1 5V PC power supply through the USB programming cable 2 External power supply connected to a DC connector provided on the development board The MC34063A voltage regulator and Gretz rectifier are used for enabling external
30. with serial communication keypad 4x4 port expander etc allow you to easily simulate the operation of the target device eia CC qe con fe g MS D r Full featured and user friendly s pos development board for AVR syey V Ja microcontrollers d ael 1 S AVR N x Tir w nb 1 s EE E gt EA 90 men Ce ner Algen saa e E a Je ES EFFETTI l le Sch Tue uou lm T Tm Dl B n eros ee 55 w 2 e e Fromm SWITCHES POWER SUPPLY ET ordenata l a A A OLE EH KS E mun S i Li _ _ i mar imm ww LLL Di GATAS ce a ll ERRE LIS 7 vImum E PE m High Performance USB 2 0 EH AIS a On Board Programmer STA SPT EE E IC ha Bi K D en IPEA d MIL Gres PORT Lee E WT uu uj ra p DC ake sl ERNNSKRSN nn es era ca Tv AAA rrsan PORT Set Kee THE LE EIL n d ki ITE LEE ITE TEATE a ae 11434145 TTT bh Sp see eee be LIII TE TESEI E Pel Ls ma iar E E L E Ex Ls n PU Mri Ls d e Port Expander provides easy rr kap om ba ce POM ACI UCD Ds d E L I SE i TE LY Mu NS t E CU Em H ESA VO expansion 2 additional W mM e 22 ports using data format yesss nr s i conversion fae aaa E E DEXTERAE Se TII easy i E ag Alphanumeric On Board AERE NS 2x16 LCD Display with Serial E JE mas Communication ins Do
Download Pdf Manuals
Related Search
Related Contents
一Guide 〝 F370 - NIBE Super-MMS - Home E-shop Freedom One eLift Lectern - Spectrum Industries, Inc. Avtek International 1EVF14 projection screen Troy-Bilt Trimmer TB75SS User's Manual to View for Free! - Nick Carver Photography Page 1 Page 2 雨カバー (オプション) 躯体取付フラケッ ト ブラケッ ト Krieger User Guide Brodit ProClip 513488 Copyright © All rights reserved.
Failed to retrieve file