Home

Easy 8051 v6 Development System User Manual

image

Contents

1. ERST RONA P3 0 I P3 1 COALerroc IP32 N PSENI p33 Ol p27 P3 4 ey I P3 5 ISP MSN IP3 6 P241 P3 7 P2 31 AXTAL2 P221 AXTAL1 P2 10 KeJNID BAON DIP40 VCC MCU O Figure 17 4 Port PORTO connection schematic MikroElektronika 24 Easy8051 v6 Development System 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 microcontroller pin PO O with the relevant DIP switch SW1 jumper J1 and push button PO O with jumper J6 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 Figure 17 7 Jumpers J1 and J6 in the same position MikroElektronika In order to enable the PORTO port to be connected to the pull down resistors first it is necessary to set jumper J1 to the Down position This enables any port PORTO pin to be provided with a logic zero 0V in idle state over jumper J1 and 8x10k resistor network To provide the PO O pin with such a signal it is necessary to set the PO O switch on the DIP switch SW1 to the ON position As a result every time you press the PO O push button a logic one VCC will appear on the PO O pin provided that jumper J6 is set to the position referred to by VCC In order to enable port PORTO p
2. 5 1 0 Connecting the System to your PC assess t pret eya pk bak t ie kato kl a e e vet a 6 2 0 Supported Microcontrollers oi itil ri kit a e NE 7 3 0 On board USB 2 0 8051prog Programmer esee nennen nnne nnns 8 AO COC K O SGI OM teat pt e ee ey ek n ae e te ek a EEEE et e ke ot NY e ea 9 95 0 Power SUD DIY RERO E I 10 6 0 RS 232 Communication Interface asistieron 11 TA D CONVENT oipe ppa NE ai dp en e E E U 12 8 0 DS1820 Temperature Sensor estroncio ideas 13 lt A 14 10 0 PUSA BUON Sudaderas 15 EO MENO CUA snoot iio 16 AA oe 17 13 0 On board 2x16 LCD DISplay odas es e pt ta oca 18 140 2x16 E AS E EE SEE oi sr ei a be 19 15 0 120x064 GANPNIE LED DISDIAY ea kel into fe e n kk ka a a kaa e l en ke ai eee epil 20 16 0 Seven Segment Display east sitiasyon an et a e er e est a Ni 21 10 KORONG societat ei 23 18 0 Port Expander Additional I O Ports usicisspessde pru ainia 25 4 Easy8051 v6 Development System B S Introduction to Easy8051 v6 Development System The Easy8051 v6 development system is a fully contained board suitable for programming 8051 microcontrollers from Atmel as well as for designing and testing 8051 projects This development system includes an on board programmer providing an interface between the microcontroller and a PC You are simply expected to write a program in one of the 8051 compilers
3. E MCU TO PERIPHERALS DR OSCILLATOR L B ta J9 DISABLES CURRENT NO PROTECTION or Dd IS AND MENU KEYPAD E H E Rl ALE Y na J10 SELECTS ADC VOLTAGE REFERENC tt J11 SELECTS POWER SUPPLY EXTERNAL OR U Du Di fill m 4 A l J12 CM ECTS POTENTIOMETER P3 TO CHO en CH2 OF CH3 ANALOG INPUT E T ri nil L 2 J13 J14 FRAME poun OR PULL DOWN RESISTORS ON PORTEKPANDER S Du E ni E m W NOTE MAKE SURE DE ME ARE SO RESISTORS a PORTO Y MEN PO Ar 0 7 E E E it a it NI Js it it 2 a e onon MU E on e E FOR MORE INFORMATION REFER TO THE EASY8051 L I I I I I 0 0 LIII PORT XPANDER J IS USED FOR SELECTING VOLTAGE LEVEL TO BE APPLIED WHEN BUTTON IS PRESSED ENTER ag 7 Ge a9 Key Features 1 a 3 4 9 6 E 8 9 Power supply voltage regulator On board programmer s USB connector USB 2 0 8051prog programmer On board 2x16 LCD display contrast adjustment Seven segment display On board alphanumeric 2x16 LCD display A D converter test inputs 4 096V voltage reference DIP switches to enable pull up pull down resistors Pull up pull down resistor selection I O port connectors Sockets to plug 8051 microcontrollers into Graphic LCD display contrast adjustment 14 19 16 17 18 19 20 21 22 23 24 25 26 2f Port expander Graphic LCD display connector MENU keypad 4x4 keypad Push buttons to simulate digital inputs Pins logic state selector Jumpe
4. Easy 8051 V6 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 project in a fast and efficient way E dam Y ponn T dome E a E a JMikroElektronika SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD waking it simple TO OUR VALUED CUSTOMERS l want to express my thanks to you for being interested in our products and for having confidence in 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 Nebojsa Matic General Manager The Atmel name and logo the Atmel logo AVR AVR Logo AVR Freaks AVR Freaks Logo AVR Studio IDIC megaAVR megaAVR Logo picoPower tinyAVR are trademarks of Atmel Coorporation Easy8051 v6 Development System TABLE OF CONTENTS Introduction to Easy8051 v6 Development System cccocccccccccocnccocnncocnnnonnnnncnnnonnnnnnnnnnnnnonnnnnnnnnnns 4 KEV FOU O c
5. In order to enable the microcontroller s USART module to receive input signals with different voltage levels it is necessary to provide a voltage level converter such as MAX202C MAX232 AN SWITCHING POWER SUPPLY i NS se RS 232 connector Lo s k E n GEE KED P PORT4 LCD Bck P gt NC Figure 6 1 RS 232 module Switches 5 and 6 on the DIP switch SW8 are used to interface the RS 232 module to the microcontroller via RX and TX lines as shown in Figure 6 2 Port RS 232 is connected to the microcontroller IP1 0 eel oVCC IP1 1 ZOKO I P1 2 ON IP13 OA IP1 4 PO 3 IP1 5 ON IP1 6 PO 5 P3 0 P1 7 P0 6 RST RONA IP30 Cf EANPPI RAE O o a 00 VCC MCU O Cz ki n vcc A V 100nF h GND ici TiouTI C30 n C2 R1 IN 100nF I le Hc2 R1ouTl 829Srvt cl co AM ni LEY PSENI 100nF P T1 i E P3 3 P271 A I P3 4 P2 61 BR2IN R2OUTIH 1K SUB D 9p RS232 IP3 5 AJ f P3 6 P241 IP3 7 P2 31 XTAL2 AA I XTAL1 P2 11 Ken P2 01 MAX202 VCC MCU DIP40 Figure 6 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 PIC microcontrollers MikroElektronika 12 Easy8051 v6 Development System 7 0 A D Converter An A D converter is used for converting an analog signal into the appropriate digital value A D converter is linear which
6. are used for selecting functions of the microcontroller pins ALT Pen g E Figure 2 1 Microcontroller sockets 8051 microcontrollers can use either internal on board or external oscillator for the generation of the clock signals There is a quartz oscillator used as an external oscillator provided on the board Signals generated by such an oscillator are used as clock signals for most supported microcontrollers Figure 2 2 Plugging a microcontroller into appropiale socket Prior to plugging a microcontroller into the appropriate socket make sure that the power supply is turned off It is shown in Figure 2 2 how to correctly plug in a microcontroller 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 down easily until it is completely plugged into the socket as shown in Figure 4 NOTE Only one microcontroller may be placed on the development board at the same time MikroElektronika page 8 Easy8051 v6 Development System 3 0 On board USB 2 0 8051prog Programmer A programmer is a necessary tool when working with microcontrollers as it is used for loading a HEX code into the microcontroller The Easy8051 v6 development system includes an on board 8051prog programmer All
7. but not limited to the implied warranties or conditions of merchantability or fitness for a particular purpose MikroElektronika shall assume no responsibility or liability for any errors omissions and inaccuracies that may appear in this manual In no event shall MikroElektronika its directors officers employees or distributors be liable for any indirect specific incidental or consequential damages including damages for loss of business profits and business information business interruption or any other pecuniary loss arising out of the use of this manual or product even if MikroElektronika has been advised of the possibility of such damages MikroElektronika reserves the right to change information contained in this manual at any time without prior notice if necessary HIGH RISK ACTIVITIES The products of MikroElektronika are not fault tolerant nor designed manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail safe performance such as in the operation of nuclear facilities aircraft navigation or communication systems air traffic control direct life support machines or weapons systems in which the failure of Software could lead directly to death personal injury or severe physical or environmental damage High Risk Activities MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities TRA
8. 12823 The seven segment display s time multiplexing is based on fast turning display segments on off in such a manner that one gets impression that all digits are active simultaneously The microcontroller feeds display segments with signals via the PORTO port whereas the PORT1 port selects one of them to display appropriate number In the example shown in Figure 16 2 signals from the microcontroller cause the DIS3 display segments to show number 5 When such display is off the microcontroller sends signal to the next digit DIS2 via the P1 2 pin to show number 6 The same procedure applies to digits DIS1 and DISO When one cycle is complete another one automatically starts and digits successively change on dislays DIS3 DIS2 DIS1 DISO DIS3 DIS2 etc Red lines mark the signal route from the microcontroller to the seven segment display OUT Il DIS3 segments OUT AE E m OUT ELE Q drv d co OUT gt out ELL HE zs gt or de MESSI ULN2803 ATA SITAS DIS1 3 S2 DISO 7 SEG DISP 7 SEG DISP 7 SEG DISP Figure 16 2 Showing a digit on the seven segment display DIS3 MikroElektronika 21 NI 2 Easy8051 v6 Development System Red lines mark the signal route from the microcontroller to the seven segment display OUT DIS2 segments OUT te oul B SP ve gt OUT Zo i roo WES 1 1 DIS1 DISO 7 SEG DISP 7 SEG DISP 7 SEG DISP 7 SEG DISP 1 Figure 16 3 Showing a digit on the s
9. means that the converted number is linearly dependent on the input voltage value The Easy8051 v6 development uses the MCP3204 circuit as an AID converter Voltage to be converted is brought to the input pins of this circuit which then converts it into a 12 bit digital value Such number is transferred to the microcontroller via serial communication while switches 1 4 5 and 6 on the DIP switch SW6 should be set to the ON position Voltage provided on the A D converter input pins can be either power supply voltage 5V or external voltage brought to the converter via CN12 and CN13 connectors When the power supply voltage is used it is necessary to determine which of the following pins CHO CH1 CH2 or CH3 is to be supplied with such voltage using jumper J12 In this case the voltage value on the A D converter input can vary between OV and 5V using potentiometer P3 When the external voltage is used it is necessary to remove jumpers J12 in order to prevent voltage interference and provide conversion accuracy The MCP3204 circuit includes the Vref pin to receive voltage reference However the main purpose of this pin is to determine the range of analog voltage to be converted hence the A D conversion resolution Jumper J10 is used for selecting one of two possible voltage reference sources When this jumper is in the VCC position the value of the voltage reference is 5V whereas it amounts to 4 096V when the jumper is set to the position referred to by 4 0
10. the performance thereof in order to better suit your needs Nebojsa Matic General Manager The Atmel name and logo the Atmel logo AVR AVR Logo AVR Freaks AVR Freaks Logo AVR Studio IDIC megaAVR megaAVR Logo picoPower tinyAVR are trademarks of Atmel Coorporation 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 The manual PDF edition can be printed for private or local use but not for distribution Any modification of this manual is prohibited MikroElektronika provides this manual as is without warranty of any kind either expressed or implied including but not limited to the implied warranties or conditions of merchantability or fitness for a particular purpose MikroElektronika shall assume no responsibility or liability for any errors omissions and inaccuracies that may appear in this manual In no event shall MikroElektronika its directors officers employees or distributors be liable for any indirect specific incidental or consequential damages including damages for loss of business profits and business information business interrupt
11. you need is a hex file to be loaded into the microcontroller using the 8051flash programmer Figure 3 2 shows the connection between the compiler 8051flash program and microcontroller I Programmer s USB connector Programmer s chip H Multiplexer O Write a program in one of the 8051 mpilers an ner hex file 4 mikroC PRO for 8051 C Program FilesiMikroelektro compilers and generate a hex file Compiling program File Edit view Project Run Tools Help Use the 8051flash program DO ck A Ma da ime 531 to select the microcontroller to be see c yt 1110001001 Bin programmed and load the hex ted 0111 2FC23AA7 i 1011 F43E0021A G Click the Write button to load the ff LCD module connections Hex DA67F0541 program into the microcontroller shit LCD RS at P2 0 bit shit LCD EN at P2 1 bir Loading a HEX code shit LCD D4 at F2 Lt MET On the left side of the 8051flash shit LCD DS sbit LCD D shit LCD D7 at P2 5 bit program s window there is a number ofoptions used for setting parameters forthe operation ofthe microcontroller On the right side of the window there is a number of buttons which enable the HEX code to be loaded into the microcontroller Positioned in the bottom right corner of the window the Progress bar enables you to monitor Write a code in one of the 8051 compilers erect MN e Dena Me the programming progress generate a hex file and load data into
12. 8 lt E Z Z a an 4 DIP16 7 4 o E p 2 7 WA P S A 2 a 5 4 Z 6 w3 NA rers knn ka knn PORT2 7 e E o8 Z Z Fads 7 A v A fu Z VA Na E RES BE mit e VA oz Z a ot A A esoocoocoocsooooo US Pull A 4 Z Z Z Z ue 7 4 Doun u Z Z LJ Z Z Z Li A Z Z VA ZZ Z Z Z 4 Z za SS OS AWWW Z A G VA Z Z Z Z S A DIP20 DIP40 DIP14A 7 mmmmEEEE ATA 2 meeeeececcccccococc 3 Z Z um p n m mn mn I ae Z v Qu Em Z Z AE 4 we 7 J 11 ZOOO OuNMTMWYVNUUW 1 Z mi Z Up Z Z Y te GsS5x5 ceuobo0aqa00q0g0g 415 1 DA Z Pull Z A ta 1 VA 4 u Z U il 95 9Oozoooo7 25gBMlc 4 Z Z D A A lt zi N ZUNZZZZINNNNiDZ S Z oun KA a M ii 5 060666060000 0 i3 A Z Z PA TEST IMPORTANT La VA 4 4 Z I ba Z Z Z Z E BE SURE TO TURN OFF THE POWER SUPPLY BEFORE E A Z Z A ta PLACING LCD ORGLCD ON DEVELOPMENT BOARD La pA A Z tt mt Z nn OTHERWISE BOTH LCD AND GLCD UNITS CAN BE Z Y Sit LA Z liv procran ooo POR w 11 PERMANENTLY DAMAGED pou Z A TS T T T I IL Y A 4 Z sil BE SURE TO PLACE LCD AND GLCD PROPERLY ba Z ext MEMORY 7 2 mi A x Y G 4 Z A ji OTHERWISE BOTH LCD AND GLCD UNITS CAN BE x A 4 TT TI Z A a e PERMANENTLY DAMAGED D DIP14B Z Z A 0 f it J Z A A Z Z Z Z EA Z Z G Z Z A Z Z 5 m Z Z ranse 25 San O WB nn ficca Van 7 ER EHRE A Z Tt o NN EE M Z c Kl a o000000090 Z I 1 1 1 p f dL v NN i NN NI Z L eo eo Z Ooo y e e XS mim g NN O WB sann ee ee ye eee o E F1 a Fi eo eo le DEVE
13. 96 The latter is generated by the MCP1541 circuit RTER sw AID conversion is performed via the CHO pin on A D convertor Mele tovCC ORON PO 18 P3 OA 10K w P0 3l GND SAN E ON VOUT P0 51 MCP1541 U7 Hu 1 ove a A ADE CSE ut Ree gone pau SPI SCK DO DOUT H SPI MOS WES ebat a BXTAL2 A MCP3204 E XTAL1 Ken SW6 BLOGVECL DIP40 Figure 7 3 Microcontroller and A D converter test inputs connection schematic MikroElektronika Easy8051 v6 Development System 1 8 0 DS1820 Temperature Sensor 1 wire serial communication enables data to be transferred over a 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 devices 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 It 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 supply 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 Easy8051 v6 development system provides a separate socket for the DS1820 It may use either P1 2 or P3 3 pin for communication with the micro
14. DEMARKS The Mikroelektronika name and logo the Mikroelektronika logo mikroC mikroC PRO mikroBasic mikro Basic PRO mikroPascal mikroPascal PRO AVRflash PICflash dsPICprog 18FJprog PSOCprog AVR prog 8051prog ARMflash EasyPIC5 EasyPIC6 BigPIC5 BigPIC6 dsPIC PRO4 Easy8051B EasyARM EasyAVR5 EasyAVR6 BigAVR2 EasydsPIC4A EasyPSoC4 EasyVR Stamp LV18FJ LV24 33A LV32MX PIC32MX4 MultiMedia Board PICPLC16 PICPLC8 PICPLC4 SmartGSM GPRS UNI DS are trademarks of Mikroelektronika All other trademarks mentioned herein are property of their respective companies All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies and are only used for identification or explanation and to the owners benefit with no intent to infringe Mikroelektronika 2009 All Rights Reserved WOJ eo1riIwWD solo je sn joejuoo 0 ejejiseu jou op siesodoud ssouisnq 10 ET suonsonb fue aney inf In poddns iano God MMM LI LJ B Li i ere To 100 MANM je ausgom ano usn A asta syon LT ind woae asot wea 9 juem nof y Cd THOM GJACIIJWI YOJ SNOLLNTOS JIVMAJVH ANY JYYMLJOS a TO OUR VALUED CUSTOMERS l want to express my thanks to you for being interested in our products and for having confidence in mikroElektronika The primary aim of our company is to design and produce high quality electronic products and to constantly improve
15. Figure 10 1 Push buttons Jumper J6 in the VCC position Figure 10 2 Push buttons and port PORTO connection schematic MikroElektronika 16 Easy8051 v6 Development System 11 0 MENU Keypad There is a group of push buttons on the Easy8051 v6 development system which constitute a navigation keypad called MENU The main feature of the MENU keypad is the arrangement of its push buttons marked as left right up and down arrows Besides there are also two additional push buttons referred to by ENTER and CANCEL MENU push buttons are connected in the same way as the port PORT3 push buttons Their function is determined by the user when writing the program for the microcontroller Have in mind when writing a program for the microcontroller that the MENU keypad is connected to the PORT3 port Figure 11 1 MENU keypad MENU keypad push buttons are connected in the same manner as port PORT3 push buttons MO Need oOVCC IP1 1 PO 0 1P12 P0 11 I P1 3 Po 2 vol eres i A TIR PO 5 i 1P1 7 PO 6 I RST PO 7 IP30 EAVPPI CA O o PIT 1P3 2 PSENI Eso P2 71 m P3 4 P2 61 E P35 P2 51 E P3 6 P2 4 fi P3 7 P2 31 ENTER CANCEL XTAL2 P2 21 XTAL1 P2 11l i uo IN KEN P2 01 A alla DIP40 Figure 11 2 MENU keypad and microcontroller connection schematic MikroElektronika Easy8051 v6 Development System 12 0 4x4 Keypad The 4x4 keypad is a standard alphanumeric keypad connected to the microcontro
16. I The advantage of such communication is that only five 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 MCP23S17 output SCK Serial Clock microcontroller clock signal CS Chip Select enables data transfer RST Reset 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 signal SCK and therefore start data exchange The principle of operation of the port expander s ports O and 1 is almost identical to the operation of other ports on the development system The only difference here is that the port signals are received in a parallel format The MCP23S17 then 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 O and 1 to the microcontroller and vice versa Jumpers J15 are used to determine the port expander s hardware address These jumper are also used to provide the port expander s pins A2 A1 and AO with a logic one 1 or zero 0 They should be p
17. LOPMENT BOARD zan gp om n o 9 EESE T Te SI v Ex 00000000 Z casy a e00000 EISE BY MIKROELEKTRONIKA E NN D WB mn LA m a e RENN n nm S GRAPHIC LCDI28x64 WITH BACKLIGHT 2 fan a gp wp gp o cu T EST a C MIL p U f a m w Garsa gE L E m s agar A NOU Iz Lodo E YOn EE y amp wa nm nu m c E28 oeS gasgnngnsiBi zm L LA LA LA x 4 5 6 B ii on 03 AMTORAMeHONO W pa NS M um ae ko ME bur Cer Cd e iam E Gap WE n5 nuu n i ggg SERE EEES FE A UN on m m e IMPORTANT LN Q 7 8 9 C E A BE SURE TO TURN OFF THE POWER SUPPLY BEFORE en tik PLACING LCD OR GLCD ON DEVELOPMENTBOARD gt B mu mu mu mu m Fg OTHERWISE BOTH LCD AND GLCD UNITS CAN BE e us mm m 8 ma TL PERMANENTLY DAMAGED La BE SURE TO PLACE LCD AND GLCD PROPERLY ra Y 0 D ta OTHERWISE BOTH LCD AND GLCD UNITS CAN BE LD LD EE ES m me ur m In n tt _PERMANENTLY DAMAGED jiu CI 1 1 N VG a a T a T ene En En En uN it PORTA PORIB LEDS Du B tr SW7 TURNS EE To LEDS AND LCD AND GLCD BACKIIGHT A ba MO CONNECTS DS ES S TEMPERATURE SENSOR TO P1 2 Of 3 5 PIN B B ta SW9 CONNECTS CI ON GLASS LCD COG2X16 ON BOARD TO l1 a y E r P r l1 r i i SWiO PORT EXPANDEI S FORTE AND ENABLES PORT EXPAND R S INTERRUPT PINS 15 31 35 el CC a m m a m 1 m E SELECT PULL UP OR PULL DOWN RESISTORS ON PORTO PORTI B ig m an DISABLE ta J7 SELECTS BETWEEN INTERNAL yon EXTERNAL PROGRAM MEMORY EXECUTION E fi D PROTECT tt J8 CONNEC
18. RTO PORT1 PORT2 PORT3 or PORTA using the DIP switch SW7 a J UTES 8 2 R g de fran E x LEU taksi EEREN ab AN E xd KEER E E TIVA YE a E if Microcontroller SMD resistor limiting current flow through an LED Vein ag ETE NS LEDs ARE LIT T eu N w A o o gt N oe Figure 9 2 LED diode and port PORTO connection schematic MikroElektronika Easy8051 v6 Development System 10 0 Push Buttons The logic state of all microcontroller digital inputs may be changed using the push buttons Jumper J6 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 shorten such resistor using jumper J9 Right next to the push buttons there is a RESET button which is not connected to the mRST pin The reset signal is generated by the programmer VCC O m O RESET button Jumper J9 used for shorten ing the protective resistor Jumper J6 used for se lecting logic state to be applied to the pin by pressing a button E __ Push buttons used for digital inputs simulation Pressure on any push button when jumper J6 is in the VCC position will cause a logic one 5V to be applied to appropriate microcontroller pin as shown in Figure 10 2
19. controller which depends on the position of switches 7 and 8 on the DIP switch SW8 In Figure 8 5 switch 7 on the DIP switch SWS is in the ON position which means that communication is enabled via the P1 2 pin NOTE Make sure that half circle on the board matches the round side of the DS1820 n Figure 8 3 Switch Figure 8 4 Switch connector DS1820 is is plugged into the 7 on the DIP switch 8 on the DIP switch not placed connector SW8 is in the ON SW8 is in the ON position D81820 position D81820 is connected to the is connected to the P1 2 pin P3 3 pin Temperature sensor is connected to VCC MCU the microcontroller via the P1 2 pin I DS1820 INEA amp DQ Botoom view E Figure 8 5 DS1820 and microcontroller connection schematic MikroElektronika 14 Easy8051 v6 Development System 9 0 LEDs LED diode Light Emitting Diode is a highly efficient electronic light source When connecting LEDs it is necessary to use a current limiting resistor A common LED diode voltage is approximately 2 5V while the current varies from 1mA to 20mA depending on the type of LED diode The Easy8051 v6 development system uses LEDs with current 1mA The Easy8051 v6 development has 38 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 PO
20. even segment display DIS2 Seven segment display is enabled 8BLOGVECI OUT oR ouT aw i ii Q OUT I dwe i paz OUT I drv d 2o gt Out PELE oR eur FH Ee q B R26 OUT evel ar SLOSVECTL DIS3 DIS1 DISO 7 SEG DISP 7 SEG DISP 7 SEG DISP 7 SEG DISP Figure 16 4 Seven segment display connection schematic MikroElektronika Easy8051 v6 Development System 17 0 Input Output Ports Along the right side of the development system there are nine 10 pin connectors which are connected to the microcontroller I O ports Pins P1 5 Pi G and P1 7 are not directly connected to the appropriate 10 pin connector but via programmer s multiplexer 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 PORTO male connector Additional module connected to PORT1 Jumper for pull up pull down resistor selection DIP switch to turn a um e Figure 17 2 J2 in the pull down positon on pull up pull down resistors for each pin ze Figure 17 3 J2 in the pull up position on Figure 17 1 I O ports Microcontroller port PORTO pins are VCC MCU connected to pull down resistors a RNA A 8x10K pu down 1 sw Boy 12345678 IP1 0 ee oVCC 1P1 1 Po O IP12 PO 11 EC P1 3 PO 2 ju r 1l l P1 5 PO 4 qox d n 0 di a
21. generate a hex file and program your microcontroller using the on board 8051prog programmer The Easy8051 v6 contains many devices such as 128x64 graphic LCD display alphanumeric 2x16 LCD display on board 2x16 LCD display 4x4 keypad port expander etc that conveniently interface with 8051 microcontrollers and allow you to easily simulate the operation of the target device MERLO SUED ikea Full featured and user friendly STER ease TTT ct 8051 development system for 8051 ee ir ug microcontroller based devices za ME C Ss T J Ww 4 om High performance on board it as a A kkkkkokskekokeksk kal A ANANA EI ae USB 2 0 programmer ass2GGGB JaYSY Oweni e IN CIRCUIT nds LEE Grenn l af tat m PELL S at m e L EHUT NAN Renn a sa TITETTI TS gn 2 o 3 LUI Sahel y DL M 3 AM ANN NA eo Saas Ra W WU EARR RRA E 0999 995052 sew i 23 us 4 bs d LLL uec No DIES mM Moi a ke tt Bum kai E ma priiis KE IY Port expander gives two more I O ports to your 8051 microcontroller ew ES 33388 Li gt A n 3 MU MEPA Em mmogz ux m p ncc AITTI AITTI Serial on board 2x16 LCD display eee mese sess EE gn mo E UTC p r saa Pai nd J mI DO Aa pa Pao Vs LE v qa D ye ALS x 3 Es e e FOJ 1 3 M e bd p c n TY 3 Ea TE TWO Vi LE na 3 Pos P A men Ne re ke gt re d lk
22. he ON position thus connecting the on board display s pins to port expander s port PORTB SPI communication between the port expander and microcontroller is enabled by means of the DIP switch SW6 Potentiometer P5 is used for the display contrast adjustment Unlike additional LCD display the on board LCD display has no backlight whereas both displays shows digits in two lines each containing up to 16 characters of 7x5 pixels Potentiometer P5 for the display contrast adjustment DIP switch SW9 used to enable on boad display SW6 CS RST SCK MISO MOSI ON SW9 1 8 ON ered ovcc PO 0 f t P0 11 E Po3l IGPB1 GPA6 Po 41 GPB2 GPA5I Po 51 I GPB3 GPA4 Po 6 i GPB4 GPA3I LI LI LI LI LI LI LI LILI L Po7i IGPB5 GPA2I uie exeo monn gre GPA1 i GPB7 GPAO ALE PROG oT Mee INTA PE INTA VANN ASA E PSENI P271 mo ro cam P2 61 es RESET SC9S681V SPI SCK P2 51 IS P2 41 P2 31 P2 21 E MCP23S17 P2 11 P2 01 SW9 OVCC MCU Figure 13 2 On board LCD display connection schematic MikroElektronika Easy8051 v6 Development System The Easy8051 v6 development system provides an on board connector for alphanumeric 2x16 LCD display to be plugged into Such connector is linked to the microcontroller through the PORT2 port Potentiometer P2 is used for display contrast adjustment The switch marked as LCD BCK on the DIP switch SW7 is used to turn on off the display backlight Communicat
23. ill illuminate to indicate that your development system is ready to use Use the on board 8051prog programmer and 8051flash program to dump a code into the microcontroller and employ the board to test and develop your projects NOTE If you use additional modules such as LCD GLCD etc it is necessary to place them properly on the develop ment board before it is turned on Otherwise both additional modules and development system can be permanently damaged Refer to Figure 1 3 for their proper placing EX LE na r koki A kon e Li ip T d a E T a j li E DT X os hn y La x Ys j Ai Tu ile LT oe a 1 F ai Fus amp ac OM E ea Fr Figure 1 3 Placing additional modules on the board MikroElektronika Easy8051 v6 Development System 2 0 Supported Microcontrollers The Easy8051 v6 development system provides eight separate sockets for 8051 microcontrollers in DIP40 DIP28 DIP20 DIP16 DIP14A DIP14B PLCC44 and PLCC32 packages These sockets allow supported microcontrollers in DIP packages to be directly plugged into the development board There are two sockets for 8051 microcontrollers in DIP14 package provided on the board Which of these sockets will you use depends solely on the pinout of the microcontroller in use The Easy8051 v6 development system comes with the microcontroller in DIP40 package A gt Jumpers J7 J8 and J16 next to the DIP40 socket and oscillator TAT i maman
24. ins to be connected to pull up resistors and port input pins to be activated with logic zero 0 itis necessary to set jumper J1 in position referred to as Up and jumper J6 in position referred to as GND This enables any port PORTO input pin to be provided with a logic one 5V in idle state over the 10k resistor The PO O switch should be set to the ON position afterwards As a result every time you press the PO O push button a logic zero 0 will apear on the PO O pin In case jumpers J1 and J6 have the same logic state pressure on any button will not cause input pins to change their logic state Easy8051 v6 Development System 2 18 0 Port Expander Additional Input Output Ports The SPI communication lines and MCP23S17 circuit provide the Easy8051 v6 development system with a means of increasing the number of available I O ports by two If the port expander communicates to the microcontroller over the DIP switch SW6 then the microcontroller pins P3 5 P3 4 P3 7 P1 7 P1 6 and P1 5 used for the operation of port expander cannot be used as l O pins Jumper for selecting pull up pull down resistor Dian Me L A E D BRE TTIE j bie fag gg Peo S4 WITH MACHIN OU Jumpers to cee Nee Figure 18 2 Position of DIP switch SW6 pue SIS when the port expander is enabled GABI LED Figure 18 1 Port expander The microcontroller communicates to the port expander MCP23S17 circuit using serial communication SP
25. ion between the LCD display and the microcontroller is performed in a 4 bit mode Alphanumeric digits are displayed in two lines each containing up to 16 characters of 7x5 pixels Contrast adjusting potentiometer y Jackliaht ie turned an ed qi To e IS turnea on IP1 0 dele oVCC IP1 1 PO 0 P1 2 PO 1l EP1 3 P0O 21 IP14 PO 31 P1 5 P0 41 IP1 6 PO 5 1 v LCD BCK BLOGVECI EP1 7 Po 6 i ERST PO 7 P3 0 Cf EANPPI HP3 1 O o MTS IP32 N PSENI P3 3 P2 70 P3 4 P2 6 E P3 5 P2 5 P ll P3 6 P2 4 i P3 7 P2 3 ae ll XTAL2 P2 2 E ll XTAL1 P2 1 an l GND P2 01 DIP40 Figure 14 3 Alphanumeric 2x16 LCD display connection schematic MikroElektronika 20 Easy8051 v6 Development System 15 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 PORTO and PORT2 GLCD display has the screen resolution of 128x64 pixels which allows you to display diagrams tables and other graphic content Since the PORT2 port is also used by 2x16 alphanumeric LCD display you cannot use both displays simultaneously Potentiometer P1 is used for the GLCD display contrast adjustment Switch 7 GLCD BCK on the DIP switch SW7 is used to turn the display backlight on off Contrast adjustment potentiometer GLCD connector Figure 15 1 GLCD display Figu
26. ion or any other pecuniary loss arising out of the use of this manual or product even if MikroElektronika has been advised of the possibility of such damages MikroElektronika reserves the right to change information contained in this manual at any time without prior notice if necessary HIGH RISK ACTIVITIES The products of MikroElektronika are not fault tolerant nor designed manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail safe performance such as in the operation of nuclear facilities aircraft navigation or communication systems air traffic control direct life support machines or weapons systems in which the failure of Software could lead directly to death personal injury or severe physical or environmental damage High Risk Activities MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities TRADEMARKS The Mikroelektronika name and logo the Mikroelektronika logo mikroC mikroC PRO mikroBasic mikro Basic PRO mikroPascal mikroPascal PRO AVRflash PlCflash dsPlCprog 18FJprog PSOCprog AVR prog 8051prog ARMflash EasyPIC5 EasyPIC6 BigPIC5 BigPIC6 dsPIC PRO4 Easy8051B EasyARM EasyAVR5 EasyAVR6 BigAVR2 EasydsPIC4A EasyPSoC4 EasyVR Stamp LV18FJ LV24 33A LV32MX PIC32MXA MultiMedia Board PICPLC16 PICPLC8 PICPLC4 SmartGSM GPRS UNI DS are trademarks of Mikroelektroni
27. ka All other trademarks mentioned herein are property of their respective companies All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies and are only used for identification or explanation and to the owners benefit with no intent to infringe Mikroelektronika 2009 All Rights Reserved Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery amp Lifecycle Information MikroElektronika MIKROE 455
28. kose Ta w Graphic LCD display with backlight GLCD128x64 The 8051flash 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 at www mikroe com Package contains Development system Easy8051 v6 CD product CD with appropriate software Cables USB cable Documentation Easy8051 v6 and 8051flash manuals Installing USB drivers quick guide and electrical schematic of the Easy8051 v6 development system a Di Ni ebd meg Im E 3 LIT System specification Bins Dre e Power supply over a DC connector 7 to 23V AC or 9 to 32V DC or over a USB cable for programming 5V DC Power consumption 50mA in idle state when on board modules are inactive Dimension 26 5 x 22cm 10 4 x 8 6inch Weight 417g 0 92lbs alt a MikroElektronika Easy8051 v6 Development System POWER z m ae iz aL ma um Ed POWER SUPPLY O EXT USB SWITCHING POWER SUPPLY V Gm 9 9 9 9 0 9 v MIKO Ele tonta Se E TOOLS FOR EMBEDDED WO kI III LI na jaa am RUSO w o a w a w uL wi a 2 a ip ud y A A A A A A A A A A A A Z Z Z Z 7 f m Z e RS 232 E 9i Z 1 x Z C S E Z COMMUNICATION OFF oz we Z p Z e m an k 0
29. laced in the low position logic 0 by default MOSI MOSI SPI MISO o 3 MISO NN NR Master ie MIA CS CS SPI Slave MCP23817 Figure 18 3 SPI communication block diagram MikroElektronika NI XTAL2 E XTAL1 Ke DIP40 Figure 18 4 Port expander schematic MikroElektronika i001 LOMO P0O 11l OA PO 3 PO 41l P0 51 OKA KOVA QU EavPP COALerroc PSENI LAA AJ AJ P241 P2 31l P2 21 P2 11 P2 01 P3 4 P1 AN Easy8051 v6 Development System LA PA6 US re crs ros it umo ros ial IGPB5 MES rec IGPB7 vcco 1 Mele Ken MCP23S17 l GPBO GPA7 M GPA5 Ivan Gras Twa GPASI GPA21 GPA1 pou GPAON INTAI ro Pente DIP switch SW6 enables port expander 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 The manual PDF edition can be printed for private or local use but not for distribution Any modification of this manual is prohibited MikroElektronika provides this manual as is without warranty of any kind either expressed or implied including
30. ller PORTO The operation of such keypad is based on the scan and sense principle where the PO 4 P0 5 PO 6 and PO 7 pins are configured as inputs connected to pull down resistors Pins PO O PO 1 PO 2 and PO 3 are configured as high level voltage outputs Pressure on any button will cause a logic one 1 to be applied to one of input pins It is determined which of the push buttons is pressed from within the software For example by pressing button 6 a logic one 1 will appear on the PO 5 pin After that by applying a logic one 1 to each of the following output pins PO O PO 1 PO 2 and PO 3 it is possible to determine which of the push buttons is pressed m A LLL RE A ui Et Pull ima Figure 12 1 4x4 keypad Figure 12 2 4x4 keypad performance Jumper J1 is in the GND veL MOH position Pins P0 4 P0 5 P0 6 Fi m RN JEDE 8x10K and PO 7 are connected to pull down resistors via DIP switch SWA Fe Mad ovec 12345678 PO O A BS Po21 P0 3l T40 T44 T48 T52 05i O O O O Bol poa p A A A p E s OO TUUS Vellei fol fe R64 a R66 220R gs 220R Figure 12 3 4x4 keypad and microcontroller connection schematic MikroElektronika mb al 8 Easy8051 v6 Development System 13 0 On board 2x16 LCD Display The on board LCD display is connected to the microcontroller via the port expander In order to enable such a display to be used it is necessary to set switches 1 6 DIP on the DIP switch SW9 to t
31. on When this jumper is set to the OSC position the P4 0 OSC pin will be fed with a clock signal When it is set to the P4 0 position the P4 0 OSC pin is available as input output pin The same is with jumper J16 and the MP3 2 pin When this jumper is set to the OSC position the MP3 2 pin will be fed with a clock signal When it is set to the P3 2 position the MP3 2 pin is available as an input output pin Quartz crystal X2 is placed P A Pa pz Pa P3 Ed in appropri k n pa ppropriate socket and P3 can be easily replaced with another one P3 M OSC Figure 4 1 Oscillator AMO Need oOVCC IP1 1 ORON P1 2 PO 18 P1 3 P0 21 IP1 4 PO 3 IP1 5 OKI IP1 6 P0 51 IP1 7 MN R7 I RST 1 P3 0 U9E U9C 74HC04 74HC04 5 5 34 osc EXT CLOCK N i R8 40MHz 1K g VCC C9 C10 c11 22pF 22pF pur Figure 4 2 Oscillator schematic MikroElektronika 10 Easy8051 v6 Development System 5 0 Power Supply The Easy8051 v6 development system may use either of the two following 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 power supply voltage to be either AC in the range of 7V to 23V or DC in the range of 9V to 32V Jumper J11 is used as a selector for a power supply source In order to u
32. r for shortening protective resistor Reset button DS1820 temperature sensor 38 LEDs to indicate pins logic state Alphanumeric LCD display contrast adjustment Clock signal generator Alphanumeric LCD display connector RS 232 communication connector Easy8051 v6 Development System 1 0 Connecting the System to your PC Step 1 Follow the instructions provided in the relevant manuals and install the 8051flash 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 some of the Mikroelektronika s compilers installed on your PC there is no need to reinstall drivers as they will automatically be installed along with the compiler Step 2 Use the USB cable to connect the Easy8051 v6 development system to your PC One end of the USB cable 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 J11 is placed in the USB position as shown in Figure 1 1 USB connector IR C CON J11 power supply selector POWER SUPPLY switch e E E c L o Wil Figure 1 2 Connecting USB cable Figure 1 1 Power supply Step 3 Turn on your development system by setting the POWER SUPPLY switch to the ON position Two LEDs referred to by POWER and USB LINK w
33. re 15 2 GLCD connector GLCD display backlight is turned on o 5 P1 P1 0 ae oVCC m TA P0 0 8 Mo pex 1P1 2 PO 1 ER IP1 3 P0 2 GLCD BCK P1 4 a MS mnm IP16 E 1P1 7 o fo IRST NIL Saas IP3 0 P3 1 IP32 P3 3 f P3 4 P3 5 f P3 6 P3 7 XTAL2 XTAL1 KEJNID 998v e DIP40 Figure 15 3 GLCD display connection schematic MikroElektronika Easy8051 v6 Development System 16 0 Seven Segment Display The Easy8051 v6 development system also includes a seven segment display with four digits that uses the PORTO and PORT microcontroller ports for its operation Between the PORTO port and seven segment display there is a ULN2803 circuit used for running the segments of the seven segment display The operation of such display is enabled by multiplexing which means that the operation of all four digits requires only eight lines connected to display segments and four lines for the activation of each digit The PORTO port is used to send a signal to digit segments whereas PORT 1 specifies a digit to be fed with such signal In order to enable the operation of the seven segment display it is necessary to set all switches on the DIP switch SW10 as well as switches 1 4 on the DIP switch SW8 to the ON position Seven segment digit DIP switch SW10 turns the seven segment display digits on 7 la la X165 COG2x CONTRAS DIP j PIS ig Y Bi Figure 16 1 GLCD display L i ig
34. se the USB power supply it is necessary to place jumper J11 in the USB position When using external power supply jumper J11 should be placed in the EXT position The development system is turned on off by setting the POWER SUPPLY switch to the ON or OFF position respectively USB connector Power supply voltage regulator FA cr P ara mn y USB LINK Jumper J11 as a I i b power supply selector A T gE PROGRAM COMMUNICATION OFF POWER SUPPLY switch ofa A EE i a E E Ji ye ofall PORTO Ml 5 T Figure 5 1 Power aaa J11 EXT USB AC DC connector am 311 USB connector EXT m AI pm Side view Side view nn Side view 4x1N4007 Top pr Out Side view Bottom view Tm m A EI K rrr Side view Side view Figure 5 2 Power supply source connection schematic MikroElektronika Easy8051 v6 Development System 6 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 The Easy8051 v6 development system provides one RS 232 port which is enabled by setting swiches 5 and 6 on the DIP switch SW8 to the ON position The microcontroller pins used in such communication are marked as follows RX receive data and TX transmit data Baud rate goes up to 115 kbps
35. the PLAZA KOL Fle C1 PROGRAM PRIMO RO TACNA PROS DOUBLE COR CD ME LALO HEX File C PRLOQUAM FLE OELA OHMIC BO MLE microcontroller using the on board programmer Desc ATED ff End LCD module connections char txti mikroElektronika char txtz EasyG u051 v char txt3 TLiHEl z Figure 3 2 The principle of the programmer s operation NOTE For more information on the 8051prog programmer refer to the relevant manual provided in the Easy8051 v6 development system package MikroElektronika Easy8051 v6 Development System 8051 microcontrollers are programmed using SPI serial communication which employs MISO MOSI and SCK microcontroller pins Multiplexer MISO J MOSI oe CHIP SCK 4 0 Clock Oscillator VCC De DES GND During programming a multiplexer disconnects the microcontroller pins used for programming from the rest of the board and connects them to the 8051prog programmer After completing the programming process these pins are automatically disconnected from the programmer and may be used as input output pins There is a quartz oscillator used as an external clock signal source provided on the board A quartz crystal used for stabilizing clock frequency is plugged into the appropriate socket and can always be replaced with another one The maximum value thereof depends on the microcontroller maximum operating frequency allowed The function of the P4 0 OSC pin depends on the jumper J8 positi

Download Pdf Manuals

image

Related Search

Related Contents

- TK Trainer  T2 DE Oper Manual CE  Operating instructions  Quick Guide  RF EMF Feldstärkenmessgerät  AKG C3000 microphone  Samsung GT-S8000 Bruksanvisning  

Copyright © All rights reserved.
Failed to retrieve file