Home

ET-EASY168 STAMP

image

Contents

1. Configuration Files Fuses Options Givel About Location af ayvrdude ea I C Location of alternate configuration file canner NN ES p Device Programmer P Port b Baudrate B Set bit clock to ems Delay in microseconds ETT CO LTD 34 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP Setup Configuration values into Program AVRDudeGUI as follows e Location of avrdude Choose name and location of file avrdude exe that is installed in the step 1 in this Case it Is CA AVRDude avrdude exe e C Location of alternate configuration file Choose name and location of file avrdude conf that is installed in step 1 in this case it is CA AVRDude avrdude conf e p Device Choose it to be m168 e cC Programmer Choose it to be stk500 e p Port Choose Com Port Number corresponding with the Drive installation of USB FTDI e b Baudrate Set it to be 19200 3 Go to Tab File in the part of Flash choose Write and Verify and then specify the desired HEX File name for programming In this case it uses HEX File from the example that is written by C Language of WinAVR and it is in C test easy default led blink hex as shown below gt A AVRDude GUI v1 3 avrdude 5 2 AE Configuration Files Fuses Options Givel About Flash Read Ve SH EMtesteacyl6B defaulled_binkhex TI EEPROM _ write Verify Format ID
2. KKK KKK KK KK KK KKK RR RR Af void delay_ms unsigned int time while time gt 0 Seeley ms Ler shige oe ia ie del DI aD ES ED Pn Dice BEP Chote while 1 PORT LED amp 1 lt lt LED AE ie EE x0 delay ms 200 N PORT LED m LED if Pata We delay_ms 200 ETT CO LTD 32 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP l AVR Studio C test_easy168 led_blink c File Project Build Edit View Tools Debug Window Help ISB AP OLAS IO BW VETTE Trace Disabled pl d Tomo AVR GET finclude lt avrr10 h gt E led blink default define F CPU 160000000L ef 16 MHz CN Source Files CH Header Files define PORT LED FORTE 2 Port Drive LED CH External Dependencies fdefine DIR LED DDREB Port Direction 3 Other Files fdefine LED 5 cs Pin Drive LED EES finclude lt utilrdelay h gt AS e Delay 1 65535 mS 7 IEEE IEEE II II EE EE EE void delay _ ms unsigned int time whileftime 0 3 delay nell Di int main void DIR LED 1 LEDY ff Pin Drive LED Dut whilef1 d PORT_LED l lt lt LEDi 72 Pin LED delay_me 200 PORT LED 1 lt lt LED ve Pin LED delay wert 2007 5 After typed Code program completely compile program click Menu build gt rebuild all The compiling result will be HEX File that has the name as same as the created project name as shown below Bui
3. ETT CO LTD 35 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP 4 When setup values into program completely choose Execute in Tab Files Program avrdude starts programming HEX File into board instantly in this case user needs to wait for until the operation is complete as shown below D AVRDude GUI v1 3 avrdude 5 2 Ja lx Configuration Files Fuses Options Givel About Flash Wie H Read ik Format C Mest easy 168defaultled_blink hex D EEPROM Write Read Verify pa Ig exe input file C 1TEST E li default LED EL 1 HEX contains 46 bytes Bye reading on chip flash data EE EE EE EE EE EE EE EE EE 100 0 16s exel verifying eye 46 bytes of flash verified Exe done Thank you UL LAY ADudeavidude exe p mibo c stkS00 P coms b 13200 C OAV ADude AY ADUDN CON U ash we LA 5 After programming completely please wait for 5 seconds and board will start running instantly In this case LED continues blinking and it alternates between ON and OFF endlessly If user wants to test the new operation try pressing RESET Switch on board and it makes LED blinking quickly 3 times and then ON It means that it is in progress of MCU operation in Program of Boot Loader if the program is not commanded to run in Program Code Mode of Boot Loader within 5 seconds MCU will end the operation in the part of Boot Loader and then skip over to run in the par
4. Arduino Project to write program for program development It is the project to develop AVR Microcontroller as Open Source that is popular nowadays because it reveals all Source Code of program development Moreover there are examples of Development Project for userd to learn study and test free without any charge User can see more information about this Arduino Project from http www arduino cc O AK AK OK OK KOK OK ROK OK KOK OR OK OK OK OK OK OK OK AK OK OK PAK AK OK OR OK OK ROK OK OK KOK OK AK AK AK OK PAK AK AK KOK A ETT CO LTD 6 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI Driver I nstallation of USB Bridge for Board ET EASY168 STAMP Board ET EASY168 STAMP uses Chip USB Bridge of FIDI to be the intermediary for connecting and communicating between Computer PC and MCU ATmegal68 of Board ET EASY168 STAMP in the format of Serial Port Visual Com Port Program Applications that run on computer PC including Program Arduino will see Port USB that is connected with Board ET EASY168 STAMP as a channel of Serial Port Communication Com Port only If computer PC of user has already been installed Driver for USB Bridge of FTDI completely Windows will automatically install Driver when connecting USB Cable of Board ET EASY168 STAMP with USB HUB of Computer PC On other hand if Computer PC has never been installed any Driver of FTDI before user has to install Driver into Board first as followi
5. Board ET EASY168 STAMP has already been installed Program Boot Loader completely so user can write program up to 14KByte from 16KByte totally The position address of Code program must be written in the range of 0x0000 to 0x37FF 0x1C00 Ox1FFF K Word For SRAM EEPROM and other resources internal MCU user can use them as usual ETT CO LTD 29 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP E T Example of Program Development with WinAVR by using with Boot Loader This example is the method to develop program of ATmegal68 with C Language in this case it uses Program AVR Studio4 of ATMEL with C Language Compiler of WinAVR 1 Run Program AVR Studio4 AVR Studio Hoven Name Address Value Bits Loaded plugin STKS00 Si ES E Build O message E Find in Files CBreakpoints and Tracepoints Iv Ki CAP NUM Ove 2 Create new project click Menu Project gt New project and then setup options into program as follows e Set Project Type to be AVR GCC e Location for storing Project please specify the desired location of Folder to store file and Code of Project In the example it is C test_ easy168 e Specify the desired Project Name in this example it is led blink and then also choose Create initial file When specified the Project name completely program will create file name as same as the specified project name automatically ETT
6. Loader completely so user can use it Instantly However if user wants to change the new Boot Loader or there is mistake and makes Boot Loader damaged user can program new Boot Loader into board Board ET EASY168 STAMP Is designed to have AVRISP Connector to program Code into MCU directly so it can be connected with all programmer versions that have connector corresponding with AVRISP standard of ATMEL instantly In this case we will represent how to program Boot Loader with programmer of ETT Version ET AVR ISP USB V1 0 and use Program AVR Studio 4 of ATMEL as described below 1 Interface USB Cable with Board ET EASY168 STAMP if user wants to use Power Supply from Port USB or supply 5V Power Supply into board at Pin 28 5V 2 Interface USB Cable with Programmer ET AVR ISB USB V1 and interface 10Pin Pair Cable between AVRISP Connector of both boards together 3 Run Program AVR Studio 4 and it will display result as shown below wa 5 Loaded plugin STKS00 m E Build O Message E Find in Files CBreakpoints and Tracepoints Ki CAP NUM Ove ETT CO LTD 21 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI 4 Click Menu Tools gt Program AVR gt Connect gt STK500 or AVRISP choose Com Port Number of Programmer ET AVR ISP USB V1 corresponding with the Driver that has already been installed previously and then choose Connect in the examp
7. Modify or edit the Configuration values set USB Power Options to be Bus Powered and set Max Bus Power from 90 milli Amps to 500 milli Amps For other Configuration values it should not be changed and then save the new Configuration values click Menu File Save As as shown below MProg Multi Device EEPROM Pro Device Tools Help Ctrl M Ciro Cr Chr ETT CO LTD 27 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EIT 5 Program and return Configuration values to FTDI click Menu Device gt Program and then wait for until the operation is complete Next remove USB Cable and then interface it again it makes USB run with the new Configuration MProg Multi Device EEPROM D Tools Help F P Scan Ctro A el ls a USB Power Options FT2232C Options FT232R Max Bus Power f Bus Powered 600 milli Amps Invert R232 Signals C Self Powered USB ID PID FTDI Defaut Invert TXD USB Serial Number Contral Invert RxD Invert RTS Serial Mumber Prefix 2 digits Di Invert CTS Use Fixed Serial Number Invert DTR BMC Device Specific Options Invert DSR USB Version Number USB 2 0 Invert DCD Invert Ri Pull Down IO Pins in USB Suspend USB Remote Wake Up KO Controls MW Enable USB Remote Wake Up TXLED CO Plug amp Play FT232 Series Only RXLED i cl Enable Plug And Play TXDEN Ca Product and Manufacturer Descriptor Strings A A an
8. Upload to I O Board wait for a while until the operation is complete and it should display result as shown below i Arduino 0012 Alpha AA Edt Sketch Toole Help Mews tried sketchbook Dave Ctri s Save AS Ctri Shift S Upload to WO Board Ctri Ll Page Setup Ctr shift P Print Ctrl F e Turnas on an LED on for one second and so on We use pin 13 because BU board it has either a built in LED fo that you need only an LED Preferences Ctrl GIE Ctrl tT HELD rmm arduino Een Tutorial blink K ine ledPin Los LED connected to digital pin 13 void setup run once when the sketch starts d pinMode ledPin OUTPUT sets the digital pin ads output void loop ii Fun over and over again d digitallWriteiledPin HIGH sets the LED on delay 1000 waits for a second digitalWrite ledPin LOW sets the LED off delay 1000 waits for a second Lone Uploading Binary sketch size ot a 14356 byte maximum 8 After Upload Code into board completely board starts running follow the written commands in program instantly User can see blinking of LED that alternates between ON and OFF at the speed of 1 second all the time ETT CO LTD 20 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI How to Program Boot Loader into Board ET EASY168 STAMP Normally Board ET EASY168 STAMP has already been programmed Boot
9. Board Micro Controller er easvase stame El 6 In this step Program Windows will find and install Driver into the device please wait for a while until the operation is complete and then click Finish as shown below Found New Hardware Wizard Please wait while the wizard searches Sa 2 USB Serial Port Next gt Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for F USB Serial Part Click Finish to cloze the wizard Cancel ETT CO LTD 11 WWW ETT CO TH User s Manual of Board Micro Controller ET EAsv168 stamp Ell 7 After installing Driver completely user can use the device instantly However user should check and adjust the values of the device first to make sure its accuracy In this step go to My Computer Control Panel System Hardware Device Manager check Port COM amp LPT and then see the name of USB Serial Port User has to remember this Com Port number of the device because user needs to use it as reference when calling this function as shown below Es Device Manager File Action View Help He GG M Computer Se Disk drives E Display adapters 4 DYDICD ROM drives Floppy disk controllers 4 Floppy disk drives y IDE ATAJATAPI controllers Sa IEEE 1394 Bus host controllers sa Keyboards LN Mice and other pointing devices Ls Modems Monitors Aa Network adapters 7 Po
10. C3 Manufacturer Product Description Wm FT232R USB UART SLEEP DIS Programming Options e Programmed Serial Number Disabled High Current it s Load G2 driver ETT CO LTD 28 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP Development of d ET EASY168 STAMP in format of AVR Microcontroller If user wants to commonly develop program for Board ET EASY168 STAMP in the format of AVR Microcontroller user can do it by choosing any language that supports AVR MCU No ATmegal68 to write program by self User can manage all resource systems internal ATmegal68 suitably by self in this case there are 2 methods as described below e Program Development with External Programmer t is good method because it does not lose any resource moreover user can use and set the desired specification of resources internal MCU by self However it must have external Programmer to program Code into MCU In this case it can be used with any Programmer version that supports application of MCU No ATmegal68 and has standard AVRISP Connector of ATMEL e Program Development with Boot Loader It is good method because user can program Code into MCU through Program Boot Loader instantly after writing program completely without using any external Programmer However there are some restrictions because it loses 2KByte Flash Memory 0x3800 0x3FFF that is used to store Code program to install Program Boot Loader Normally
11. Ga PD4 TO XCK 5 SECH 14 14 GND NC e PDS TVOCOB 0 115 za GND j PB7 TOSC2 XTAL2 PD6 AIN0 OC0A 115 GND CBUSO PD7 AIN1 TEST CBUS 7 EP a a AGND CBUS3 y y R5 1k ES al U2 ATMEGA168 TQFP32 Title Size Number Revision A4 Date 10 Nov 2008 Sheet of File CAET Easy168ST ET Easy168ST Ddb Drawn By 1 2 4
12. Pin Digital 13 PB5 to display status while Program Boot Loader is running Program in Boot Loader always runs automatically after reset and MCU always starts running in this Boot Loader first If there is no any communication from Program Arduino within 5 seconds MCU will leave Boot Loader to start running in user s commands automatically While Boot Loader is running LED that is connected with Pin Digital 13 PB5 will blink 3 times first and then ON to wait for the command from program to Upload Code into MCU If there is no any communication from Program of Arduino within 5 seconds program will skip over to run in the beginning position in the part of the program that is written by user instantly Moreover user can use the other standard Program Boot Loader according to program of Arduino In this case it uses Program Boot Loader called ATmegaBOOT 168 diecimila hex that is contained in the same Drive and Folder that user has already installed program of Arduino that is C arduino 00121 hardware bootloaders atmegal168 ATmegaBOOT 168 diecimila he x However it is necessary to have device that can program Code into MCU if user wants to install Program Boot Loader Code into MCU In this case user can use Programmer that has the Connector IDE 10 PIN standard AVRISP of ATMEL instantly Please see more information from How to Program Boot Loader into Board ET EASY168 STAMP at the end of this User s Manual
13. from Port USB and 5VDC from external There is LED Power to display status of Power Supply Has External Reset Circuit that is RC Reset and Switch Reset internal board Place Connector on Pin Header with 2 54mm 100mil width 28Pin 14Pin per each side with 600mil 1 5cm width so it is easy to apply and expand I O circuit Moreover it can be used with Project Board and all purpose PCB easily Has USB Connector to interface with computer PC through USB Bridge of FTDI in the format of RS232 Serial Communication in this case it Is used to communicate and download Code into MCU on board Has IDE 10PIN AVRISP Connector to download program into MCU internal board if not developing program through Boot Loader Has LED to display status that connects with PB5 of AVR Digital 13 of Arduino Project to be the simple testing device ETT CO LTD 2 WWW ETT CO TH dj User s Manual of Board Micro Controller ET EASY168 STAMP E na a a pe a a a ed O emm SH as D af N wy Fe so Zo O OES Picture displays features of Board ET EASY168 STAMP ETT CO LTD 3 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EIT el aio pn PROS So el a AR Digital 0 5V Vin 5V Vin Digital 1 VCC 5V VCC 5V Digital 2 RESET RESET PC6 Digital 3 Analog 0 PCO ADCO Digital 4 Analog 1 PC1 ADC1 Digital 5 Analog 2 PC2 ADC2 Digital 6 Analog 3 PC3 ADC3 Digit
14. to setup Hardware System that is used with program of Arduino first because nowadays there are many hardware versions that are designed and created to use with Program Development of Arduino In the case of Board ET EASY168 STAMP please set name of board as Diecimila and click Menu Tools gt Board gt Arduino Diecimila and then it will display result as shown below E Arduino 0012 Alpha Sele File Edt Sketch Mimes Help ec Auto Format Ctrl T E Copy for Forum Archive Sketch serial Port d Arduino Pro or Pro Mini o MHz Burn Bootloader RO Arduino BT edi NG or older we ATmegad Arduino NG or older wel amp Trmegal bs Arduino Miri Arduino Diecimila LilvPad Arduino ETT CO LTD 16 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI 4 Set Com Port Number to communicate with board that must be corresponding with Com Port Number that has already been installed Driver of USB previously For example if installing Driver of USB and its Com Port Number is COMS click Menu Tools gt Serial Port gt COM5 as shown below i Arduino 0012 Alpha File Edt Sketch Mimes Help gt n Auto Format Bes Copy for Forum Archive Sketch a serial Port Burn Bootloader zk 4 int ledPin La void setup i d pinMode ledPin OUTPUT void loop 1 d digitallWrite ledPin HIGH delay 1000 digitalWr
15. 94 ORDE Signature matches selected device Programming Mode and Target Settings ISP mode M Settings ISP Frequency 20 4 kHz 6 Choose Tab Program and then choose options as follows e Device Choose Erase device before flash programming and Verify device after programming e Flash Choose Input HEX File to be BOOT EASY168 AUTO HEX and then choose Program to program Boot Loader into MCU and it will display result as shown below AVRISP in ISP mode with AImega1 68 Main Program Fuses LockBits Advanced Hi Settings Hi Info Auto Device Erase Device W Erase device before flash programming e Verify device after programming Flash e e Input HEX File Mader eau autchdelaDOOT EASTIES AUTO be sl EEPROM E ETT CO LTD 23 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI 7 After programmed Code into MCU completely choose Tab Fuses to program Fuse Bit into MCU and then set options as follows e Set BOOTSZ to be Boot Flash size 1024 word start address 1C00 e Set BOOTRST to be Enable e Set SPI EN to be Enable e Set SUT CKSEL to be Ext Crystal Osc 8 0MHz Start up time PWRDW RESET 16K CK 14 that is the option at the end When user has already chosen all options completely it will display result as shown below all AVRISP in ISP mode with ATmepa1 68 ARE Main Program Fuses LockBits Advanced HwW Settings Hw Info Auto BOOTS Boot
16. CO LTD 30 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP 3 When setup options into program completely click Next Set Debug platform to be AVR Simulator and then set Device to be ATmegal68 as shown below Lreate new project Project type Project name led blink i Create initial fle Create folder Initial File led Blink P Location Etes easte N Ver 4 14 5693 Show dialog at startup se Back Finish Cancel Help Select debug platform and device Debug platform Device AT megalb4F AT megalb5 D megalt 4 megalbe AT mega iba AT megalb AT megalboP JTAGICE mkl AT megalbH WA A T mega2560 AT mega2561 A mega ver 414 503 Cancel Help ETT CO LTD 31 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP 4 Type command of program in window Text Editor of program to test operation In this case it tests with Code Program for blinking LED at PB5 that is installed on Board ET EASY168 STAMP as shown in the example below KKK KKK KK KK KK KK RR RR RR RR RR RR RR poo Bee la MORE E E besiel EI ES AS ME HIE S MCU ATmegal68 a A 16 OOMIE a KKK KKK KK KK KK A miao hele de Ia define F CPU 16000000UL Ji lt TA 16 M lz mine ludo med de N la define PORT LED PORTE Port Drive LED PB ale ede NEER DORE Power Dizveecriona Celine LED gt Pia Deive Lab EES KKK KKK KKK KK RA RR RR Af Delay 1 65535 mS
17. CO dri ETDI USE Drivers 5 examples hardware 5 java y lib C reference sketchbook 9 AYRDude awr libc 1 6 2 TH GZ ad wel To view any subfolders click a plus sign above Found New Hardware Wizard Please choose your search and installation options Sa 2 Search for the best driver in these locations Use the check bores below to limit or expand the default search which includes local paths and removable media The best driwer found will be installed Search removable media floppy CO ROM Include this location in the search ao sais a O Don t search wil choose the driver to install Choose this option to select the device driver from a list Windows does not guarantee that the driver you choose will be the best match for your hardware ETT CO LTD 8 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI 4 In this step Program Windows will find and install Driver into device please wait for a while until the operation is complete and than click Finish as shown below Found New Hardware Wizard Please wait while the wizard searches 2 FT232R USB UART Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for USB Serial Converter Click Finish to close the wizard N canca ETT CO LTD 9 WWW ETT CO TH User s Manual of Board Micro Controller ET EAS
18. ETT CO LTD 14 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI How to install Program Arduino After installing USB Driver into board completely it ends the procedure of preparation Next it is the procedure of applying writing and learning program as desired First of all user has to install Program of Arduino to be learning program as procedures below 1 Unzip File name arduino 0012 win zip in Hard disk in this case we recommend user to unzip that file in outermost Root of Drive C After unzipping completely the program is in c arduino 0012 2 Run Program arduino exe and it will display result as shown below i Arduino 0012 Alpha File Edit Sketch Toole Help OIE dE Blink The basic Arduino example Turns on an LED on for one second then GEE EGE one second and sa OY 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 a a ak a ak at ak http fr WWW arduino cc fen Tutorial Blink vo int ledPin 15 e LED cornected to digital pin l3 void setup f run once when the sketch starts d pinMode ledPin OUTIPUII 7 aeta the digital pin as output void loop i Z Tun over and over again ETT CO LTD 15 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI 3 If using this program in the first time user needs
19. Flash size 1 024 words start address 7000 k BOOTRST EES AWE BODLEVEL Browr out detection disabled ry LEONA LEOUT D SUT LESEL Est Cristal Osc GU MHz Start up time PY AD WAYRESET TBE CEL 8 After programmed Fuse Bit completely choose Tab LockBits In this case set Protect for particular Boot Loader only choose BLB1 to be LPM and SPM prohibited in Boot Section and then Program It ends the procedure of program Boot Loader AVRISP in ISP mode with Almegal68 Ho memory lock features enabled Mo lack on SPM and LPM in Application Section ETT CO LTD 24 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP E How to Program USB Bridge of FTDI into Port USB for supplying 500mA Normally the Configuration value of USB Bridge No FT232R from FTDI will be set to use with Power Supply from Port USB The standard value of USB Driver of FTDI requests only 90mA current from USB Host but the standard value of Port USB can supply power to the connective devices up to 500mA If using Board ET EASY168 STAMP to test and it connects with less external device use current not higher than 500mA user can modify Configuration value of USB HUB to supply 500mA current because it makes the experiment more convenient However if using Notebook Computer that uses current from battery to test or connect Test Board with device that uses very high current it is better if user provides external P
20. Play FT232 Series Only E Product and Manufacturer Descriptor Strings A EE Programming Options gt Number Of Blank Devices 0 Number Of Programmed Devices 1 3 Read the old Configuration values of FTDI click Menu Tools Read and parse and it should display result as shown below MProg Multi Device EEPROM Programmer ETT CO LTD 26 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI MProg Multi Device EEPROM Programmer Edit Mode Fie Device Tools Help e H Basic Details USB Power Options FT2232C Options FT232R Ee r e Max Bus Power evice Type e Bus Powered ER milli Amps Invert RS232 Signals f Self Powered USB WIO PID FTDI Defaut Invert TXD USB Serial Number Contral Invert RAD ode EE Nena Di Invert RTS erial Mumber Prefix 2 digits M invert CTS Use Fixed Serial Number Invert DTR Invert D USB version Number USE 20 Ke isabled J Invert DCD BMC Device Specific Options Disable USB Serial Number Invert Rit Pull Dawn IO Pins in USB Suspend USB Remote Wake Up MO Controls iw Enable USB Remote Wake Up TXLED id Co Plug E Play FT232 Series Only ELE al Enable Plug And Play TXDEN C2 Product and Manutacturer Descriptor Strings Gredt C3 Manufacturer Product Description Wm FT232R USB UART SLEEP DIS Programming Options e High Current Wis Load DEXX driver 4
21. Supply of Board e VCC 5V This pin is Power Supply in the same point of supplying to VCC of MCU This point receives voltage from 2 sources Pin 5V Vin from Pin 28 of Board and Pin VUSB 5V from USB Connector of board In this case there is Diode to protect voltage from reverse e AREF This pin receives Signal Reference Voltage Analog Reference for Analog Input Circuit if using external Reference Voltage e RESET It is RESET Pin of CPU that runs at Logic 0 e PB O 5 It is Digital I O Pin that can be connected with signal Logic TTL 5V e PD O 7 It is Digital I O Pin that can be connected with signal Logic TTL 5V e PC O 5 It is I O Pin that can be set both Digital and Analog Input e ADC6 ADC7 It is Analog Input Pin that can receive Analog Input in the range of 0 5V ETT CO LTD 5 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP di Program Development of Board ET EASY168 STAMP There are 2 types to develop program of Board ET EASY168 STAMP as follows e AVR Micro Controller t develops program in the format of normal AVR Micro Controller In this case we can use any language program that supports AVR No ATmegal68 so it depends on the skill of user to choose the desired language for developing program such as BASIC Language BASCOM AVR or C Language such as Code Vision and WinAVR e Arduino Project lt uses program and instruction set of C Language C of
22. User s Manual of Board Micro Controller ET EASY168 STAMP ETT ET EASY168 STAMP Picture displays structure of Board ET EASY168 STAMP ETT CO LTD 1 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI ET EASY168 STAMP is mini AVR8 Board Microcontroller that only is 2cm x 5cm or it is equivalent to IC 28 DIP 300 It uses AVR8 Microcontroller No ATmegal68 of ATMEL to be MCU on board This MCU is 32 TQFP and it includes the necessary peripheral devices such as Oscillator and Reset internal board Moreover internal board includes IC USB Bridge No FT232R of FTDI to be RS232 Serial Communication between board and computer PC through Port USB directly So this Board ET EASY168 STAMP is the mini training board that is full of the necessary peripheral devices for operations of AVR8 Microcontroller It only interfaces USB Cable from Port USB of computer PC with USB Connector of Board ET EASY168 STAMP it makes user can write program and download Code into MCU to experiment instantly Specifications of Board Use AVR8 MCU No ATmegal68 of ATMEL and run with frequency 16 MHz o Has 16KByte Flash Memory to write program if developing program through AVRISP System or 14KByte Flash Memory if developing program through Boot Loader RS232 o Has 1KByte SRAM and 512Byte EEPROM o Has 22Bit GPIO 14Bit Digital GPIO 10Bit 8 Channel Analog Input ADC Use 5VDC Power Supply both 5VDC 500mA
23. Y168 STAMP El 5 After installing Driver of hardware completely Windows found that the new device that is USB Serial Port is connected and then it will notify user to install Driver into the new device that is specified as USB Serial Port In this case user specifies the location of folder that stores Driver as same as procedure in step 3 above as shown below Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps pon install software for USB Serial Port fe If your hardware came with an installation CD Za or floppy disk insert it now What do vou want the wizard to do 2 Install the software automatically Recommended 65 Install from a list or specific location Advanced Click Next to continue Found New Hardware Wizard Please choose your search and installation options 2 Search for the best driver in these locations Use the check boses below to limit or expand the default search which includes local paths and removable media The best driver found wil be installed Search removable media floppy CD ROM I Include this location in the search Catch dee D 2 drivers ETDI USB Drivers Don t search will choose the driver to install Choose this option to select the device driver from a list Windows does not guarantee that the driver pou choose will be the best match for pour hardware see ETT CO LTD 10 WWW ETT CO TH en Manual of
24. al 7 Analog 4 PC4 ADC4 2 3 A 5 6 T 8 9 Digital 8 Analog 5 PC5 ADC5 O Digital 9 Analog 6 ADC6 Digital 10 Analog ADC VCC 5V VCC 5V a N Digital 11 AREF AREF x OO Digital 12 GND mk A Digital 13 PBS Table shows Pin Arrangement of Board ET EASY168 STAMP ORR aire ee ARIS Tn wars AR Cres as wos Cf fe PB4 Digital 12 GND GND ETT CO LTD 4 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI Function of Signal Pins When Using As Arduino Project e 5V Vin This pin receives external 5VDC Power Supply to be Power Supply of board e VCC 5V This pin is Power Supply in the same point of supplying power to VCC of MCU This point receives voltage from 2 sources Pin 5V Vin from Pin 28 of Board and Pin VUSB 5V from USB Connector of board In this case there is Diode to protect voltage from reverse e AREF This pin receives Signal Reference Voltage Analog Reference for Analog Input Circuit if using external Reference Voltage e RESET It is RESET Pin of CPU that runs at Logic 0 e Digital 0 13 It is Digital I O Pin that can be connected with Signal Logic TTL 5V e Analog 0 7 it is Analog Input Pin that can receive Analog Input in the range of 0 5V Function of Signal Pins When Using As AVR Micro Controller e 5V Vin This pin receives external 5VDC Power Supply to be Power
25. ite ledFin LOW delay 1000 ETT CO LTD The basic Eat IE Ctrl T D on for one second then off for one second and so BA We use pin 13 because depending on your Arduino board it has either a built in LED or a built in resistor 30 that you need only an LED http smm arduing cc en Tutorial Blink LED connected to digital pin La Fun once When the aketch starts sets the digital pin as output run over and over again Setz the LED on waits for a second sets the LED off waits for a second 17 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI 5 Test on writing program click Menu File New and type program to test or maybe open the created example file instead In this case we recommend user to test program of blinking light click Menu File sketchbook Examples Digital Blink and it will display result as shown below E Arduino 0012 Alpha Sele File Edit Sketch Tools Help l Blink The basic Arduino example Turns on an LED on for one second then OLE EGE one second and 20 OY 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 a a a ak at ak 4 http w arduino ccrens TutorialsBlink me tic LedPin 1 Ty LED Connected to digital pin la void setup f run once when the sketch starts d w F int ledPin 13 v
26. ld Build started 53 11 2006 at 13 02 00 avyrE Qec exe mmcu atmegal o Nell gdwarf 2 0s atd gnug9 funsigned chay avr gcc exe Mmcu atmegal6d Wl Map led blink map led hlink n 0 lede avr ob3copy 0 ihex E eeprom led blink elf led blink hex ave ob7Jcopy J eeprom set section flags eeprom alloc load change avr ob3dump h 4 led hlink elf gt led blink lss AVE Memory Usage Device atmegal s Program 246 bytes 1 55 Full text data bootloader Data 0 bytes 0 05 Full data bss noinit Build succeeded with O Warnings lt ETT CO LTD 33 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP How to Program HEX Code into Board ET EASY168 STAMP on Boot Loader After wrote program compiled commands and got HEX File completely if user wants to program the compiled HEX Code of this program through Program Boot Loader of board for Program Development of Board ET EASY168 STAMP in the format of AVR Microcontroller we recommend user to use Program AVRDude through AVRDudeGUI as described in procedures below 1 Create Folder name AVRDUDE in Drive C C AVRDUDE copy program of avrdude and avrdudeGUI and then 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 setup options as follows gt AVRDude GUI v1 3 avrdude 5 2
27. le is Com9 as shown below AVR Studio File Project Build View Tools Debug Help LISS EE MTE EE AVE Prog Trace Disabled ite s ICEGO Selftest ITAGICE mkII Upgrade AMRISP mkII Upgrade AYR Dragon Upgrade STK600 Upgrade Customize Options Show Key Assignments Plug in Manager Onnec one 3 Auto Connect WW AVR Wireless Services Write Flash Write EEPROM Read EEPROM Start Auto Select AVR Programmer Platform STRSO0 or AVRISP i A JTAGICE mkl AYVAISP mkl AYA Dragon 0 Baud rate STEEDAO E 115200 Tip To auto connect to the programmer used last time press the Frogrammer button on the toolbar Baud rate changes dre active immediately Cancel 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 ETT CO LTD 22 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI 5 After connected completely user should test on the connection Click Tab Main choose the MCU number to be ATmegal68 choose Programming Mode and target Settings to be ISP Mode and then choose Read Signature If everything is OK it will display results as shown below AVRISP in ISP mode with Almega1668 Main Program Fuses LockBits Advanced Hai Settings Hiv Info Auto Device and Signature Bytes AT megal bo MM Erase Device Ox1E 0
28. ng procedures below 1 Prepare CD ROM that contains Driver of FTDI or if user has already installed Program of Arduino completely there is Driver of FTDI internal folder of Program Arduino in Ch arduino 00121 drivers FTDI USB Drivers 2 Interface USB Cable of Board ET EASY168 STAMP with Port USB HUB of Computer PC Windows will find the new device that is FT232R USB UART and then notify user to install Driver into the device as shown below Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for FT232A USE UART If your hardware came with an installation CD 22 or Hoppy disk insert it now What do pon want the wizard to do Install the software automatically Recommended Install from a list or specific location Advanced Click Next to continue ETT CO LTD 7 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP di 3 Choose Install from list or specific location Advance and then click Next Windows will notify user to specify the location of folder that contains Driver of FTDI Choose Browse choose Drive and Folder that stores File Driver If user has already installed program of Arduino completely choose C arduino 0012 drivers FTDI USB Drivers and then click Next as shown below Browse For Folder Select the Folder that contains drivers For your hardware 5 arduino 0012 S
29. oid setup pinMode ledPin OUTPUT void loop digitalWrite ledPin HIGH delay 1000 digitalWrite ledPin LOW delay 1000 ETT CO LTD 18 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI 6 Compile program click Menu Sketch gt Verify Compile as shown in the example below i Arduino 0012 Alpha sketch I fools Help Verity Compile Ctrl k stop Import Library show Sketch Folder Ctri k Add File The basic Arduino example Turns on an LED on for one second then GEE EGE one second and 50 OY We use pin 1 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 a ak ak http fr WW arduing cc en Tutorial Blink 4 Ke int ledPin 13 LED connected to digital pin La void setup i run once when the sketch starts d pinMode ledPin OUTIPUII sets the digital pin as output void loop Kun over and over again d digitallWrite ledPin HIGH sets the LED on delay 1000 waits for a second digitallrite ledPin LOW sets the LED off delay 1000 waits for a second Done compiling Sinary Ch size 1124 bytes of a 143356 byte maximum T AA ETT CO LTD 19 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI 7 Download Code into board click Menu File gt
30. ower Supply to support board by self This recommendation Is suitable for user who wants to test operation or to test on writing program with board and the board connects with less external device for example it tests on blinking by using LED or transmit receive data with Serial Port Communication The method to modify or edit Configuration value of USB Bridge from FTDI is to use Program MProg exe as described below 1 Interface USB Cable of Board ET EASY168 STAMP with Port USB and then run Program MProg It will display results as follows MProg Multi Device EEPROM Programmer Y 3 0a File Device Tools Help EEN g 2lsl cl Basic Detail USB Power Options FT22520 Options FT232R a oo e USB Serial Number Control E BM SC Device Specific Options s820 EEN Em g USA Remote Wake Up E Plug amp Play FT232 Series Only J Product and Manutacturer Descriptor Strings D EEE CI Programming Options wem ETT CO LTD 25 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI 2 Command Program mProg to find out USB Bridge that has already been installed click Menu Device Scan and it should display result as shown below MProg Multi Device EEPROM Programmer V 3 0a File ilies Tools Help Scan Sg He FT 22920 Options FT232R USB Serial Number Control m e DM E Device Specific Options ez dl USB Remote Wake Up Plug
31. ower settings ta correct performance problems at low baud rates Defaults Select higher settings For Faster performance Receive Bytes 256 Transmit Bytes 128 BM Options Miscellaneous Options Select lower settings to correct response problems Serial Enumerator Serial Printer Latency Timer msec wi Cancel IF Power OFF Timeouts Event On Surprise Removal Minimum Read Timeout msec Set RTS On Close Minimum Write Timeout msech Disable Modem Ctrl At Startup ETT CO LTD 13 WWW ETT CO TH User s Manual of Board Micro Controller ET EAsY168 stame El Development of ET EASY168 STAMP in the format of Arduino Project Normally Board ET EASY168 STAMP has already been installed Program Boot Loader completely It uses Program Boot Loader named BOOT EASY168 AUTO HEX that is the original of Arduino and it is edited by ETT especially the part of condition of application to be corresponding with the Hardware System of Board ET EASY168 STAMP better This Program Boot Loader is used to communicate and command to Upload Code from Computer PC into MCU on board without using external programmer The specifications of Program Boot Loader that are additionally edited by ETT are described below Communicate with external programmer through Protocol STK500 STK500V1 Use Baud Rate 19200 with Frequency XTAL 16MHz Size of Program Boot Loader is 2KByte and runs at position 0x3800 0x3FFF Use LED that is connected with
32. rts COM amp LPT 4 Printer Port LPT1 F Prolific USB to Serial Comm Port COM4 USE Serial Port COM EI sound video and game controllers System devices Universal Serial Bus controllers 8 In this step click sign in front of Ports COM amp LPT and then find the device USB Serial Port that has already been installed Driver If user does not ensure that it is the device of Board ET EASY168 STAMP or not user has to remove USB Cable first and it makes all lists of device disappear on the other hand if user interfaces the USB Cable again all lists of device must be appeared again If everything is OK click Tab that is list of device names it will display window USB Serial Port Properties click Port Setting and then choose Advance to setup values into the device as follows a USB Transfer Size Receive Bytes Set it as 256 b USB Transfer Size Transmit Bytes Set it as 128 c BM Option Latency Timer mSec Set it as 1 ETT CO LTD 12 WWW ETT CO TH User s Manual of Board Micro Controller ET EASY168 STAMP EI USB Serial Port COM5 Properties General Port Settings Driver Details Bits per second Data bits Parity Stop bits Flow control Advanced Restore Defaults Cancel Advanced Settings for COMO COM Pork Number USB Transfer Sizes Cancel Select l
33. t of Code of user instantly Remember after resetting it will always run like this Program in the part of user starts running instantly after out of resetting status about 5 seconds ETT CO LTD 36 WWW ETT CO TH 1 2 4 VCC E see i 3 4 5 6 VCC e 9 10 CN2 ia AVR ISP VCC C4 VCC C5 C6 LED2 VCC AA 100n R3 N i y E ei O 100n Y 100n A D2 S RESET D13 WC SM 4004 S S RI RESET 29 PC6 RESET PBO ICP1 e EE Ds GE 4k7 _ PB1 OC1A DI wae PB2 OC1B SS e G er 7 3 PMEG4005ET PB3 MOSI OC2A lt Cl 18 16 TT DI 10uF SS gt AVCC PB4 MISO e EE Q E Ul j C8 EBOOK Ji n2 EE 100n eel 100n C2 VCC FT232R E S SCHADCH a ab Ee i i z VCC TXD AREF PCI ADCI 3 J VCC CNI1 5 25 A2 D2 RESET NIDS VCCIO RXD 3 PC2 ADC2 5 Ce es 3 3 0 3V30UT RTS C9 PC3 ADC3 4 4 6 11 100n 27 Ad D4 Al 7 SHI VBUS CTS Ji PC4 ADC4 SDA 55 AB Ds 5 5 gt 3 SH2 D USBDM DTR 7 AGND PCS ADCS SCL T ae De 6 6 ie 5 SH3 D USBDP DSR y gt ADC6 x x e 7 7 Ce SH4 ID DCD f ADC7 Ds 8 8 E GND RESET RE 2 C10 S Se Do 9 9 Ges e PB6 TOSCI XTAL1 PDO RXD 51 DT DIO 10 10 gt osc CBUS2 PD1 TXD 11 11 a 12 22pF 32 1T DIT CBUS4 PD2 INTO 12 12 VCC Y1 1 TT Di D12 AREF osco C PD3 INT1 OC2B 13 13 8 16MHz 2 D4 D13 NC r

Download Pdf Manuals

image

Related Search

Related Contents

Manual  Vigo VG15039 Installation Guide  Manual de Usuario - Mega Stradis Evolución  Caution  Avaya Configuring ATM Services User's Manual  Page des évolutions  Kensington Comercio™ Hard Folio Case & Adjustable Stand for iPad Air™ & iPad Air™ 2 - Eggplant  JM.3 ESA JM.4 ESA  Sangean Electronics Sangean RCR-10 User's Manual  Exaustor DW-M9 / DW-M12 / DI-M10 / DI  

Copyright © All rights reserved.
Failed to retrieve file