Home

ET-EASY AVR LCD

image

Contents

1. i 1 l I A I I k EITE acres ETT CO LTD 20 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD 4 In this case choose Create a desktop icon it makes program build Icon to call program on the Desktop and then click Next as shown in the picture below ie Setup Arduino For Windows Select Additional Tasks Lit iothaeeas LC be performed Select the additional tasks you would like Setup to perform while installing Arduino For Windows then click Mert Sor Hake a i Create a desktop icon 5 In this step program is ready to install Program displays values that are set in the previous step if everything is OK click Install and it makes program start installing instantly i Setup Arduino For Windows Ready to Install ad to begin installing Arduino For Windows on your computer Click Install to continue with the installation or click Back if you want bo review or change any settings Destination location CV4rnduino 001 2 Start Menu folder Arduino 001 2 I l i I I I j Additional tasks Additional icons Create a desktop icon So a lt Install Cancel B uau ETT CO LTD 21 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD 6 Wait for a while until the process of installation is complete click Finish as shown in the picture bel
2. Remove Switch RESET but still pressing and holding Switch BL PD2 Finally remove Switch BL PD2 We can see the LED that is connected at Pin PBS blinking 3 times and then ON it means that MCU has already run in BootLoader successfully ETT CO LTD 18 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD E How to Install Program Arduino Program Arduino is developed to use with many Platform Operating Systems nowadays December 2008 Program of Arduino is updated to be version Arduino O0012 There are 4 Platforms Windows Mac OSx and Linux User can check and download new program versions of Arduino free without any charge from website http arduino cc or http arduino cc en Main Software This website always updates and contains more information and news regarding Arduino If using with ETT Boards programs are provided in CD ROM in this case it is program that is edited and improved by ETT so it is compatible with new ETT Board version Moreover ETT Co Ltd adds more Libraries that is edited and improved by ETT and includes them in the program including Install Shield So user can install program easily as same as the general program User can follow the procedures of Wizard to install program instantly as described below 1 Run File ET ARDUINO 0012 WIN EXE and it displays result as shown in the picture below ie Setup Arduino For Windows
3. Welcome to the Arduino For Windows Setup Wizard This will install Arduino 001 2 Win on your computer kis recommended that you close all other applications before continuing Click Nest to continue or Cancel to exit Setup Cancel ETT CO LTD 19 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD 2 In this step user needs to set position of folder to install program according to the Default value of installing program that is C Arduino 0012 and then click Next as shown in the picture below iis Setup Arduino For Windows Select Destination Location mateo epochs dows be installed LJ Setup will install Arduino For Windows into the following folder To continue click Hest IF you would like to select a different folder click Browse CNAarduino 001 2 Atleast 0 8 MB of free disk space is required Cancel 3 In this step user needs to specify Folder name to call program through Menu of Windows In this case we recommend user to set value according to the Default values of program that is C Arduino 0012 and then click Next as shown in the picture below iis Setup Arduino For Windows Select Start Menu Folder ee _ a e program s shortcuts Setup will create the program s shortcuts in the following Start Menu folder To continue click Next IF you would like to select a different folder click Browse a me et ee a i E h
4. User s Manual of Board Microcontroller ET EASY AVR LCD 2 If it is the first time to call program user needs to set Hardware System to use with Program of Arduino first Nowadays there are many versions of circuit and Hardware that are designed and built to use with the Program Development of Arduino If it is Board ET EASY AVR LCD set the name of Board as EASY88 BASE by click Tools Board ET EASY88 BASE as shown in the picture below H Arduino 0012 Alpha File Edit i Sketch ie Help eee ae Auto Format Ctrl T mat m Copy for Forum Archive Sketch Blink Serial Port b Arduino Mano Ta Burn Bootloader b Arduino Pro or Pro Mini 5 MHz The basic AFAUITC EXSHipie TAE Arduino BT then of for one second and s0 ET EAS YES BASE depending on your Arduino board Arduino NG or older wi ATmega8 ET EA5Y168 5TAMF http ymm arduino ccren Tutori Arduino MG or older w ATmegal 6 af Arduino Mlini or a built in resistor so that St 4 Arduino Diecimila IAC IEGEIN Kitoy Lily Fad Arduino void setup i run once when the sketch starts pinMode ledPin OUTPUT sets the digital pin as output void Loop run over and over again i digitallrite ledPin HIGH sets the LED on delay 1000 waits for a second digitalWrite ledPin LOW sete the LED o E delay lOO0 waits for a second ETT CO LTD 24 WWW ETT CO TH User s Manual of Board Microcontroll
5. If everything is ok it makes LED blinking 3 times and then ON it means that MCU has already been entered and run in BootLoader successfully However if pressing Switch RESET as normal without pressing Switch PD2 it makes MCU will run according to the written Code as usual qa Push Botton SW m synns PD2 Au GND Picture shows the method to interface Switch for using with BootLoader Program BootLoader is able to develop program of board by Arduino and is able to program HEX File from external into board through R9232 ETT CO LTD WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD How to Develop Program of Board by AVRISP The method to develop program of Board ET EASY AVR LCD by AVRISP is restricted because Board has not provided Connector inside board for programming by AVRISP directly however user is able to modify and connect signal pin of AVR to program by AVRISP In this case it is able to use 1OPIN ISP to convert signal of AVRISP according to Connector I O of AVR PB O 5 so Connector I 0 PB O 5 or D 8 13 of board is able to connect with Programmer that arranges connector according to the standard of AVRISP instantly as shown in the example below Digital amp 13 MOSIK PB3 VCC PBO PB1 nc hL L ono ps2 k Pes resapcs A eno paa _ Pes scKipes P C eno nc P O L Rese gt viso
6. PB4 C eno avcc L ono AVRISP AVR PB 0 5 gahudy aAMAIALaANn D 8 13 AVRISP gt ETT CO LTD 8 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD e AME 614 ATMEGAB8 20PU gs a a f v 1G CPB DD 2 Oe ee mm amp AME 0614 Zs ATMEGA88 20PU ETT CO LTD 9 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD 4 ET AVRProg Mini AVRISP i lt g S mmm fy f LOPIN Isp ii WH GAWUL AVRISP Picture displays the method to program by AVRISP Programmer version ET AVRProg Mini ETT CO LTD 10 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD E How to program BootLoader into Board ET EASY AVR LCD Normally Board ET EASY AVR LCD has already been programmed BootLoader so user can use it instantly However if user wants to change BootLoader to the new one or the mistake occurs and it makes BootLoader damaged user can re program BootLoader into Board This Board ET EASY AVR LCD is designed to have Connector AVRISP to program Code into MCU directly so it is compatible with every Programmer version that has the Connector according to the standard AVRISP of ATMEL In this case we will describe the method to program BootLoader by ETT Programmer version ET AVR ISP USB V1 0 and Program AVR Studio 4 of A
7. Board easily ETT CO LTD WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD Specifications of Board e Use AVR MCU No ATMEGA88 from ATMEL to be MCU on board and use 19 6608MHz Crystal Oscillator to be Clock Generator so it is able to use with RS232 Serial Port Communication perfectly e Can change and install other numbers of 28PIN AVR MCU in the same serial such as ATMEGA8 ATMEGA48 ATMEGAI168 and ATMEGA328 Pin positions of these MCUs are compatible and are able to install with board instantly without any Circuit s modification e Has 8 KByte Flash 512 Byte EEPROM 1024 Byte SRAM e Has 3 of 20BIT I O Port PB 6BIT PC 6BIT PD 8BIT 1 UART Serial Port Communication SPI Porc Communication a 1 12C Port Communication 1 of 16BIT Timer Counter and 2 of 8BIT Timer Counter o6 Channel 10BIT ADC e Has Connector I O TTL with 3 of Header 2x5 PB PC and PD e Has Switch RESET with circuit External Reset that is RC Reset internal board e Board has already installed Program BootLoader into MCU so user can develop program of board by Arduino or Program HEX File into board through Program BootLoader instantly by only adding 1 more Switch BootLoader Push Button Switch e Has Connector RS232 that is CPA 4PIN according to the standard of ETT for receiving transmitting general data or programming data into Board through BootLoader e Has circuit to connect with LCD through IC 74HC5
8. TH User s Manual of Board Microcontroller ET EASY AVR LCD How to Program HEX File into Board ET EASY AVR LCD through BootLoader Now we will describe the method to develop program of Board ET EASY AVR LCD in the format of AVR Microcontroller after wrote program compiled program and then got HEX File successfully user can program the HEX Code of this program through Program BootLoader of Board In this case we recommend user to use Program AVRDude through AVRDudeGUI as described below 1 Build Folder name AVRDUDE in Drive C C AVRDUDE copy Program of avrdude and avrdudeGUI and paste them in C AVRDUDE In this case there are 3 files avrdude exe avrdude conf and avrdudegui exe 2 Run Program AVRDude EXE choose Tab Configuration and then set values as follows Configuration Files Fuses Options GivelO About Location of avrdude TEMAYA Dudes ADudeGUl exe _ B Set bit clock to Delay in microseconds o fl el NOTE If the Comport number is greater than COM8 user needs to type the Comport number in the blank of P Port by self For example if the Comport number has 2 digits user needs to add sign in front of the Comport number if it is Com13 it must be written as com13 ETT CO LTD 15 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD Set Configuration value into Program AVRDudeGUI a
9. test program by blinking light click File sketchbook Examples gt Digital Blink as shown in the picture below Bi Arduino 0012 Alpha a File Edit Sketch Toole Help The basic Arduino example Turns on an LED on for one second then OLE for one second and 20 Ot We uge pin l3 because depending on your Arduino board it has either a built in LED or a built in resistor so that you need only an LED 4 4 H4 4 httpi rwm arduino ccr enrTatorial Blink ae int ledPin 13 dF LED connected to digital pin 13 void setup i f run once when the sketch starta l a int ledPin 13 void setup erne legie ia UITAU vord oop Garage aaeee ee Pak HICH delay 1000 digitalWrite ledPin LOW delay 1000 ETT CO LTD 26 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD EJ 5 Compile the program click Sketch Verify Compile as shown in the example below Arduino 0012 Alpha Fie Edit ES roos Help Verity ompile Cirl k Cos ieee ts Stop Import Library show Sketch Folder Ctri k Flint Add File The basic Arduino example Turns on an LED on for one second then off for one second and s0 on We use pin l3 because depending on your Arduino board it has either a built in LED or a built in resistor so that you need only an LED SS FS 4 http rmm ard
10. 95 and use Signal Pin PD4 PD47 and PBO to control and command LCD Moreover there is circuit to adjust the brightness of display and circuit to control the Back Light So it saves amount of I O to connect with LCD and there is more remainder of I O to use for other application e Use 5VDC Power Supply through Connector 2PIN CPA Mini PCB Size scm xX 3 70m ETT CO LTD 2 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD Structure of Board ET EASY AVR LCD a Q Lave F Lo AVR LCD ETT CO TH A 9V 0V 7 a 1 lak 5 LIT Ti Tt em tt ti tt arp N 74HC595 OO BBOY f OC ot A A Picture displays the structure of Board ET EASY AVR LCD e No 1 It is Resistor to adjust the brightness of LCD Display e No 2 Power Supply It is Connector Power Supply of board that uses 5VDC e No 3 It is Switch RESET to reset operation of MCU e No 4 It is Connector of signal from PC 0 5 1f developing program by Arduino it 1S signal pin of Analog 0 5 PCO PC1 PC2 PCS PC4 PCS NC NC VCC GND AVR PC 0 5 ETT CO LTD 3 AO A1 A2 A3 A4 AS NC NC VCC GND Arduino Analog 0 5 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD e No 5 It is Connector of signal from PB O 5 1f
11. EEXHEHEHEEHEREHEERES void delay me unsigned int time whileftime gt 0 _delay_mefl 0i int main iwvoidi DIR_LED 1 lt lt LED Pin Drive 5 After typed Code Program successfully user can compile program instantly go to Menu build gt rebuild all In this case the code that is compiled will be HEX File that has the name as same as the project that is built as shown in the picture below IMs ee z _ Te r E a E D a a F C test_easyg led_blink c Build Build started 29 12 2008 at 14 41 38 avr gqeo mmcu atmega Wall gqdwarft 2 Os std gmu99 fCunsiqned char funsiqned hitfields pf avr gcc MmMcu atmegas Wl Map led blink map led blink o 0 led blink elf avr objcopy 0 ihex R eeprom fuse R lock aignature led blink elf led blink hex avr objcopy j eepromn set section Clags eeprom alloc load change section lma eeprom 0 avr objdump h 5 led blink elf gt led blink lss AVE Memory Usage Device atmeqads Program 186 bytes 2 35 Full text data Hootloader Data O bytes 0 04 Full i data hss noinit Build succeeded with 0 Warnings ETT CO LTD 33 WWW ETT CO TH
12. TMEL to be operator as described below 1 Interface RS232 Cable from computer into Board ET EASY AVR LCD and then supply power into board 2 Interface USB Cable with Programmer ET AVR ISP USB V1 and connect 1OPIN Pair Cable between Connector AVRISP of both Boards 3 Run Program AVR Studio 4 as shown in the picture below AVR Studio Name Address Value Bits Loaded plugin STK500 ii i a Find in Files Breakpaints and Tracepoints E Build message E CAP NUM OVR 4 Go to Menu Tools Program AVR Connect STK500 or AVRISP then choose Comport number according to the value of Programmer ET AVR ISP USB that has already been installed in Driver and finally click Connect in this example it is Com9 as shown in the picture below ETT CO LTD 11 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD E AVR Studio File Project Buld view Tools Debug Help i at ab 1 i E AME Prog Trace Disabled Pee Uber ICESO Selftest JTAGICE mkII Upgrade AYRISP mkII Upgrade AYR Dragon Upgrade STE6O0 Upgrade Customize Options Show Key Assignments Plug in Manager a AYR Wireless Services Write Flash Write EEPROM Read EEPROM I Start Auto Select AVR Programmer Platform STK500 or AV BISP Connect j JTAGICE mkl ETT AW RISP mk Hi AYA Oragon cTKEDD Baud rate fis200 button on the t
13. User s manual of Board Microcontroller er zasy avr ico ET EASY AVR LCD Eee ec rere N A a o e g F 5 i Y i 4 2 d eS ok fad iad fad fad fad fad fad fad fad fad dad ET EASY AVR LCD is AVR Microcontroller Board that includes 16 Character 2 Line Character LCD and Controller Circuit on board The board size is equal to LCD Display and there are 3 Connectors 10PIN I O This Board uses AVR Microcontroller No ATMEGA88 from ATMEL that is contained in 28PIN DIP TYPE to be MCU on board Its Characteristic feature is to be mini size Microcontroller but it is full of the basic resources perfectly that is suitable to apply to many projects easily MCU internal board runs by the frequency 19 6608MHz moreover there are full of basic devices that are necessary to use such as 512Byte E PROM to store data and 1K Byte SRAM Furthermore their Peripherals are suitable to apply for controlling and processing data well because there is Hardware System of SPI UART I2C Watchdog Timer Counter PWM and ADC It designs the structure of board aS mini size because it is easier to apply and develop program The board is suitable to apply for work that needs to use LCD Display moreover it is able to transmit receive data with the external device through RS232 Serial Port Communication instantly For the I O it is connected through Connector 10PIN IDE it is able to connect signal through Pair Cable or it can connect with external I O
14. developing program by Arduino it 2S Signal pin of Digital so i13 PBO PB1 D8 O LJ J 0 PB2 PB3 D10 D11 PB4 PBS D12 D13 nc P Rese nc P L res acc L eno avcc L ono AVR PB 0 5 Arduino Digital 8 13 e No 6 It is Connector of signal from PD 0 7 if developing program by Arduino 1t 2S Signal pin Of Di igitalf 0 7 PDO PD1 D0 D1 PD2 PD3 oob 0s pos Pos oo g 0s poo P poz wf o avcc L eno acc C eno AVR PD 0 7 Arduino Digital 0 7 e No 7 It is LED to display status of signal Pin PB 5 or Digital 13 of Arduino this LED is driven through Transistor BC337 as show in the circuit below VCO Ki 560 LEd ETT CO LTD 4 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD e No 8 It is Connector RS232 for general application and Upload Code into MCU through BootLoader System Its Pin arrangement is displayed as below CD 1 a 5 zo Oo O Y ae soe feos 2 la k 3 o 2D 5 15 4 0 GND m RI 9 a GND 5 DHB Female Figure displays the circuit of Cable RS232 for using with Board ETT CO LTD 5 gt WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD e No 9 It is Connector of LCD 16 Character 2 Line that is arranged in the single row from 14PIN to 16PIN There is Sig
15. er ET EASY AVR LCD C 3 Set Comport number to communicate with board according to the Comport number that is exactly connected with computer PC For example if the Comport number of computer PC is COM5 click Tools Serial Port COM5 as shown in the picture below Ei Arduino 0012 Alpha Slee File Edt Sketch Wims Help T Senet i i HILD Auto Format Ctrl T Seema Copy for Forum Archive Sketch P a 4 serial Port Burn Bootloader nid Exampre ASS GE om Cor one second then off for one second and soon use pin l3 because depending on your Arduino board it has either a built in LED aor a built in resistor so that you need only an LED 4 4 4 4 H http rmm arduino ceren Tatorialr Blink 4 ma int ledin 13 LED connected to digital pin 13 void setup i run once when the sketch starts pinMode ledPin UUTPUT sets the digital pin as output Fold loop i run over and over again i digitalWrite tiledFin HIGH sets the LED or delay 1000 waits for a second digitalWrite iledFin LOW sets the LED off delay 1000 waits for a second ETT CO LTD 25 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD E 4 Try to write program click File New and then type program to test operation or open the example file that has already been built instead In this case we recommend user to
16. lete as shown in the picture below To AVRDude GUI v1 3 avrdude 5 2 Configuration Files Fuses Options GivelD About Flash wite C Read Verify racy CMAVADude base88_led hex o la Autodetect hl EEPROM _ write Verify IENE zal Autodetect Misy i Execute FEFFEFFFFEFEEF HPEEESEEEREEERREERRER REESE VEEE EEEE EE EEEE EEE EE EEE EEEE EEEE EEEE EEEE EE PEEESPEESREERREEEREERREESREERREEEREER REE RREEEREEEE 100 0 16s exel verifying exel 239 bytes af flash verified exe done Thank you hs CAV RDude avidude exe p m88 c atk500v1 P comd b 19200 C CAVA DudeA VADUD I CON e E reset 5 After programmed successfully Press Switch RESET and it makes board start running instantly In this case we can see LED blinking alternate between ON and OFF continuously ETT CO LTD 17 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD How to Develop Program of ET EASY AVR LCD by Arduino Normally Board ET EASY AVR LCD has already installed Program BootLoader in this case rE 1s BootLoader called BOOT EASY88 MANUAL 19 6608MHZ HEX It is the BootLoader that is the original of Arduino and is edited and improved by ETT especially in the part of conditional operations according to the Hardware System of Board ET EASY AVR LCD This Program BootLoader is used to Upload C
17. libs aaa akc ln POMELINS E CEPU L660 SOWUL X TAL 19 6608 MHz nolud uein Getter la Cli LAS EO Rn hk PORTE I Port Drive LED PB KOSEL DIR CED DDRB I Port Direction FOS Lae LED 5 Pin Drive LED PBS KKK KK KKK KK KKK KKK KK KK io Dele Ie esas a iS 3 7 KK KKK KK KK KKK KK KKK KK WRC C Ean mis Wine Lieporerel aie Eines while time gt 0 coley mis 1 0 5 Ine main Void DIR LED 1 lt lt LED Pin Drive while 1 PORT ele DGa i TED Pin LED Clean als O PORT LED 1 lt lt LED ff tao TEL de Rex me a00 ETT CO LTD 32 gt WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD AVR Studio C test_easyB6 led_blink c File Project Build Edit View Tools Debug Window Help Beer eee Cree et eee ee ole aR ji i iTi a i ANR GCE ah x RRR EREREXEXREREEREEREEXEREREEREEEES 23 led_blink default Program Test LED Blinking 7 Board ET BASE AVE EASYS8 7 ae earn s MCU ATmegags a Header Files ye H TAL 19 6608MHz zr say External Dependencies AREER EREEREEE ERK ER EEE EREERERERERS E Other Files include avr 1o0 h gt define F_CPU 19660800U0L lt E TAL 19 6608 MHz include lt util delay h gt define PORT_LED PORTH A Port Drive LED define DIR_LED DDEB f Port Direction define LED 5 Pin Drive LED EEREREEREEHEEREREEREHREERES sF Delar 1 65535 us 7 EBEXEEEXEH
18. ly However it needs to loss 2 KByte Flash Memory that is used to store Code Program 0x1800 OXI1FFF to install Program BootLoader normally Board ET EASY AVR LCD has already been installed Program BootLoader In this case there are totally 6 KByte from 8KByte that user is able to write program user needs to write Code Program in the specific address between 0x0000 to 0x17FF Qx0COOQ OXxOFFF K Word For SRAM EEPROM and other resources internal MCU user can use them completely ETT CO LTD 29 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD EJ Example of Developing Program by WinAVR and using with BootLoader This example shows how to develop program into ATmega88 with C Language by using Program AVR Studio4 of ATMEL and C Language Compiler of WinAVR 1 Run Program AVR Studio4 AYR Studio Name Address Value Bits Loaded plugin STK500 c a i uo Ejsuild Message Find in Files U Breakpoints and Tracepoints CAP NUM OVR 2 Build the new project click project New project and then set values into program as follows e Project type Set it as AVR GCC e Location It stores the project user needs to specify the required location of Folder to store File and Code of project in this example it is C test_easy88 e Project name Specify the project name as required in this example it is led blink and
19. nal pin is above the display as shown in the example below pa 2 3 41 5 67 8 9 40 41 12 13 14 15 16 5V GND VO RS RW EN DO D1 D2 D3 D4 D4 D6 D7 A K_ ee F Te a aa Mh dy ie Go ia mo one AME 0614 ATMEGA88 20PU E o koheron les S C Picture shows the feature of LCD that is installed with Board ET EASY AVR LCD e No 10 It is MCU on board that is compatible with many numbers of 28PIN AVR such as ATMEGA8 ATMEGA48 ATMEGA88 ATMEGAI168 and ATMEGA328 e No 11 It is 19 6608MHzZ Crystal Oscillator ETT CO LTD 6 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD How to Develop Program of Board by BootLoader If user wants to develop Program of Board ET EASY AVR LCD by BootLoader it needs to interface Push Button Switch between PD2 and GND to reset MCU to run in BootLoader Normally ETT has already provided Program BootLoader with MCU that is installed with board so user can test operation of BootLoader instantly However if using AVRISP Programmer to program other data instead of Program BootLoader user needs to program new BootLoader first The method to test operation of Program BootLoader is described below First of all press and hold Switch PD2 for a while Press Switch RESET while pressing and holding Switch PD2 Remove Switch RESET but still pressing and holding Switch PD2 Finally remove Switch PD2
20. ode from computer PC to MCU on board without using any external Programmer The additional specifications of BootLoader that 1s edited and improved by ETT are described below Communicate with external Program by PEOCOCOL STROOD STKS500V1 Use 19200 Baudrate at 19 6608MHzZ XTAL 2KByte Program BootLoader runs at position 0x1800 Ox1lFFF Use LED that is connected at Pin Digital 13 PB5 to display the status while BootLoader is running Program in BootLoader always runs automatically after resetting MCU always starts running in this BootLoader first Then it checks Logic status of Pin PD2 it status of Pin PD2 1s HIGH it exits from BootLoader and starts following the user s command automatically on the other hand if status of Pin PD2 is LOW it starts running in BootLoader Programming Mode While BootLoader Programming Mode is running user will see LED that is connected at Pin Digital 13 PB5 blinking 3 times and then ON because it waits for the communication from the program to Upload Code into MCU until it is reset Board ET EASY AVR LCD uses Switch BL PD2 and Switch RESET to choose the operation of BootLoader If user sets MCU to run by the written Code it needs to press Switch RESET only on the other hand if user sets MCU to run in BootLoader Programming Mode user needs to follows these instructions Press and hold Switch BL PD2 for a while Press Switch RESET while pressing and holding Switch BL PD2
21. oolbar Baud rate changes are i a5 achive immediately Note that a tool cannot be used for programming as long as itis connected in a debugging session In that case select Stop Debugging first Disconnected Mode 5 After connected successfully user needs LO test the connection go to Tab Main choose the MCU number to be ATmega88 choose Programming Mode and target Settings to be ISP Mode and then choose Read Signature If everything is OK its result should be displayed as below ETT CO LTD 12 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD AVRISP in ISP mode with mega88 Main Program Fuses LockBits Advanced Hiv Settings Hiv Info Auto Erase Device OID Qe iesu Signature matches selected device Programming Mode ISP mode Y Settings ISP Frequency 57 60 kHz 6 Choose Tab Program and then set values as follows e Device Choose Erase device before flash programming and Verify device after programming e Flash Choose Input HEX File to be BOOT EASY88 MANUAL 19 6608MHZ HEX and then choose Program to program BootLoader into MCU It displays results as follows E AVRISP in ISP mode with A Tmega88 Man Program Fuses LockBits Advanced Hi Settings Hi Info Auto ANE Erase Device iW Erase device before flash programming lw Verify device after programmingy Flash B Input HE File fr easylS manuahdefault
22. ow ie Setup Arduino For Windows Completing the Arduino For Windows Setup Wizard Setup has finished installing Arduino For Windows on your computer The application may be launched by selecting the Installed icons Click Finish to exit Setup Launch Arduino For Windows Fish Y ETT CO LTD 22 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD How to test writing Program by Arduino After installed Program Arduino successfully it finishes the process of preparation the next process is application writing program and learning the operation as required First of all user needs to install Program Arduino to learn as described below 1 Run Program arduino exe and it displays result as shown in the picture below E Arduino 0012 Alpha TE File Edit Sketch Toole Help e o Blink The basic Arduino example Turns on an LED on for one second then off for one second and 20 Ot We use pin l3 because depending on your Arduino board it has either a built in LED or a built in resistor so that you need only an LED 4 4 H 4 4 H4 4 http rmm arduino cc en Tutorial Blink 4 en int ledFin 13 LED connected to digital pin 13 void setup i run once when the sketch starts pinMode ledPin UUTPUT sets the digital pin as output vold Loop run over and over again ETT CO LTD 23 WWW ETT CO TH
23. s follows e Location of avrdude Choose name and location of file avrdude exe that has already been installed in the step 1 that is C AVRDude avrdude exe e C Location of alternate configuration file Choose name and location of file avrdude con f that has already been installed in the step 1 that is C AVRDude avrdude conf e p Device Set it as m88 e c Programmer Set it as stk500 e p Port Choose Comport number according to the value that 1s exactly connected with computer PC e b Baudrate Set it as 19200 3 Go to Tab File choose Write and Verify in the part of Flash and then specify the HEX File name to program as required In this case the HEX File in this example is written by C Language of WinAVR that is in C AVRDude base88 led hex in as shown in the picture below gt AVRDude GUI v1 3 avrdude 5 7 Configuration Files Fuses Options Givel About Flash Very Format CMY ADude based led hex Fe Autodetect 1 __ EEPROM write C Verify Format Eel Aubodetect ETT CO LTD 16 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD E 4 When set values into program successfully choose Execute in Tab Files and it makes Program avrdude start programming HEX File into board instantly User needs to wait for a while until it is comp
24. sBOOT_EASYSE MANUAL hed b3 EEPROM 7 After programmed Code into MCU successfully choose Tab Fuses to program Fuse Bite into MCU and then set values as follows e Set BOOTSZ to be Boot Flash size 1024 word start address 0C00 e Set BOOTRST to be Enable e Set SPIEN to be Enable e Set SUT _CKSEL to be Ext Crystal Osc 8 0MHz Start up time PWRDN RESET 16K CK 14 that is the choice at the lowest position ETT CO LTD 13 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD When chose values successfully user is able to program values instantly and its result should be displayed as follows AVRISP in ISP mode with A Imega88 Man Program Fuses LockBits Advanced Hiv Settings Hiv Info Auto Fuse Value EE SAVE BODLEVEL CEOMS SUT_CKSEL ES EXTENDED 8 After programmed Fuse Bit successfully choose Tab LockBits and choose to protect only BootLoader In this case choose BLB1 to be LPM and SPM prohibited in Boot Section and then program value instantly it finishes the process of Program BootLoader AVRISP in ISP mode with A Imega88 Main Program Fuses LockBits Advanced Hi Settings Hiv Info Auto m l No memory lock features enabled a ale Dhd ip 4 eli PM and SPM prohibited in Boot Section pg Bias ala ETT CO LTD 14 WWW ETT CO
25. then choose Create initial file When we have already specified the project name successfully the program will build the file name that has the same as the user s project name automatically ETT CO LTD 30 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD 3 When set values into program successfully click Next value in Debug platform to be AVR Simulator and then Device to be ATmega88 as shown in the picture below set set m Create new project Project type W Create initial fle Create folder Ver 415 623 Show dialog at startup f Hest gt gt y Finish Cancel Help m Select debug platform and device Debug plattorm AYRA Dragon CVAVR Simulator Y Device ICE 200 ICE 40 ICES0 JTAG ICE JTAGICE mkll Ver 4 175 623 Y Back Next gt gt P Finish Cancel ETT CO LTD 31 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD E 4 Type command of program to test its operation in Text Editor of program in this case it tests the operation by Code program of blinking light We can see the blinking light at PB5 it 1s LED that is installed on Board ET EASY AVR LCD as shown in the example below KKK KKK KKK KKK KK KK KK KK KKK KKK KK KK jo Program WeSsie TED BIINKING 27 Board ET EFASY AVR LCD MCU ATmega88 Alo oo Wle Mrz a KKK KKK KK KK KK KK KK KK KK KKK KKK KK KK wie
26. ts Cor a second digitalWrite ledPin LOW sete the LED ok delay lOO0 waits for a second Lone Uploading Binary sketch size ll2d bytes fot a l4336 byte maximun 7 After Upload Code into board successfully board starts running follow the written program instantly In this case user can see LED blinking and alternate between ON and OFF at 1 second speed ETT CO LTD 28 WWW ETT CO TH How to develop program of ET EASY AVR LCD as AVR Microcontroller If user wants to develop program into Board ET EASY AVR LCD as usual in the format of AVR Microcontroller user can choose the required language to write program by self In this case user can choose any language that supports the application of AVR MCU No ATmega88 moreover user can manage all resources internal ATmega88 by self There are 2 methods as described below e Using External Programmer to develop program It is good because user dose not loss any resource so user can use and set specification of resources in MCU as required However user has to use the external Programmer to program code into MCU In this case user can use any programmer version that Supports the application of MCU No ATmega88 and it has Connector according to the standard of AVRISP of ATMEL e Using BootLoader to develop program It is good because user can program code into MCU through Program BootLoader instantly without using any external programmer after wrote program successful
27. uino ceren TatorialrBlink 4 ma int ledFin 13 LED connected to digital pin 13 void setup i run once when the sketch starts pinMode ledPin UUTPUT sets the digital pin as output void Loop Kun over and over again i digitalWrite tiledFin HIGH sets the LED on delay lOO0 waits for a second digitalWrite ledPin LOW sets the LED off delay lOO waits for a second BE Done compiling Binary sketch size ll 4d bytes fot a 14336 byte Maximum o gt ETT CO LTD 2 WWW ETT CO TH User s Manual of Board Microcontroller ET EASY AVR LCD 6 Download Code into board click File Upload to I O Board wait for a while until the program is complete and it displays result as shown in the picture below H Arduino 0012 Alpha Edit sketch Tools Help New Ctra sketchbook Dave Ctrl 5 Save AS Ctrl Shift s Upload to Wo Board Ctri U Page Setup Ctrl Shitt F Print Ctrl F e Turna on an LED on for one second and S0 on We ase pin Aa because 40 board it has either a built in LED Preferences Ctrl uit Ctra fo that you need only an LED http f m arduino cc fen Tutorial Blink Wey int ledin 13 LED connected to digital pin 13 void setup i run once when the sketch starts pinMode ledPin UUTPUT sets the digital pin as output void loop i run over and over again i digitallfrite ledPin HIGH sets the LED on delay 1lO00 wai

Download Pdf Manuals

image

Related Search

Related Contents

USER MANUAL MT-446ET  Manual Loops in Chain  Blodgett SB-16E User's Manual  UHF Wireless Portable Sound System  uBmag N°08 - Service Communication  GST Professional  Bedienungsanleitung    Delta 75591 Installation Guide  Eltako wireless  

Copyright © All rights reserved.
Failed to retrieve file