Home
ET-BASE STM8S208/ET-STM8S STAMP
Contents
1. User s Manual of Board ET BASE STM8S208 ET STM8S STAMP Ell www ett co th ST Toolset InstallShield Wizard Setup Status ST Toolset Setup is performing the requested operations ST MicroConnect Parallel Port Driver for Windows MT 2000 XP Installing files for ST Visual Develop 9 ST toolset setup has detected that the ST MicroConnect Parallel Port Driver S is not installed on vour system Da you want to install the driver now required For communicating with the ST MicroConnect through the parallel port Cancel Picture 3 2 10 Picture 3 2 11 7 The window in the picture 3 2 12 appears click OK to confirm to reboot computer Then the window in the picture 3 2 13 appears click Yes to install Driver for STM Development Tool Board STM Parallel Driver for Windows NT4 2000 and XP ST MicroCennect Parallel Port Driver for Windows NT 2000 XP ES Lai I J You will need to reboot your computer before using the ST MicroConnect ST toolset setup has detected that the latest version of STM Parallel Driver t is not installed on your system This driver is required to use properly STM Development Tool Boards EMLI2 DVPz EPB Stick Do you want to proceed now Picture 3 2 12 Picture 3 2 13 8 The window in the picture 3 2 14 appears click OK to confirm to reboot computer again Lastly it displays window in the picture 3 2 15 to confirm to restart computer in this case click No
2. User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th 1 7 Visual Develop project stw main c its File Edit View Project Build Debug Debug instrument Tools Window Help aioe X H E E E t sima Workspace x 42 Hhrief Repor dis project stw fe n nisl di Wnere Cie a TEK sima AU 44 param file 45 param line 46 t liretval Non 47 Figure 4 1 6 displays incoming Set Target Then in the blank Select the target choose Swim ST Link as shown in the picture 4 17 and finally click OK Remember the process of Set Target is done only one time after installed program Debug Instrument Settings Target Debug Instrument Selection Select the Target you want to use for debug session Ewin ST Link Ey iw Restart the application with Swim Off on stop debug Target Port Selection Select the connechon port Far the Target selected above usb usb Add Remove Show the selected target notification at start of debugging session Cancel Apply Picture 4 1 7 displays Window Debug Instrument Setting 7 Go to the Window Workspace on the left hand click all plus signs in front of Folders to display all lists of file name that are hidden inside the Project File of user Then go to Folder External Dependencies click File stm8s_conf h and file will be opened in the window on the right hand as shown in the picture
3. ZEKE l HA 2 KB 239 version txt Picture 3 3 1 2 The window in the picture 3 3 2 displays the preparation for installing program After installed completely the window in the picture 3 3 3 appears click Next gt to go to the next step InstallShield Wizard InstallShield Wizard Welcome to the InstallShield Wizard for Flash a Preparing to Install Loader Demonstrator 2 1 0 i Flash Loader Demonstrator V 2 1 0 Setup is preparing the InstallShield Wizard which will guide you through the The InstallShield Wizard will install Flash Loader program setup process Please wait Demonstrator V 2 1 0 on your computer To continue click Next Configuring Windows Installer Back i Cancel Picture 3 3 2 Picture 3 3 3 3 Next the window in the picture 3 3 4 appears click Yes Then the window in the picture 3 3 5 appears fill User name and Company Name in the blank as required and finally choose Anyone who uses and finally click Next gt to go to the next step ETT CO LTD 20 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP Ell www ett co th InstallShield Wizard InstallShield Wizard Se Customer Information License Agreement Please read the following license agreement carefully a Please enter your information Press the PAGE DOWN key to see the rest of the agreement User Name EE Company Name SOFTWARE LICENSE AGREEMENT By using thi
4. Picture 4 2 3 displays how to set Default value of Option Byte 100 a lt Unknown gt Picture 4 2 4 displays Status while reading Option Byte from MCU ETT CO LTD 34 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP er www ett co th If the value that is read in the part of Name UBC bit0 is 1 and it does not correspond to the Default value 07 user has to click the number 1 and then edit it to be 0 otherwise it 1s unable to download program into memory For other values user can edit according to the real application as preferred in this case it may be different from the Default value 5 After edited Option Byte completely click Button Program current tab or active sectors m to write the Option Byte that has already been edited into MCU After wrote data successfully the Status of writing 1s 100 complete as shown in the picture 4 2 5 and it finishes editing the Option Byte hi sm MEMORYA DATA MEMORY A OPTION BYTE Unknown Picture 4 2 5 displays Status of downloading Option Byte into MCU User can skip over this step 4 and 5 if the Option Byte corresponds to the Default Value or if user does not want to edit any value of Option Byte Normally ETT sets values according to the Default values completely 6 After values in the option Byte have been set correctly user can download program that has been written into MCU instantly Click Tab PROGRAM MEMORY
5. 4 1 8 Enable Module that user requires calling and using Library Function of the Module that is written by ST It has to delete sign in the line of command define of the Module that will be called and used in the future moreover if user calls and uses the function of the Module there is no any error when compiling program as shown in the picture 4 1 8 If user wants to call Library Function that is related to ETT CO LTD 28 WWNW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP er www ett co th Port I O it only enables the command line of define GPIO 1 If user wants to use Function of other Modules in the written program it needs to enable all required Modules and when user has edited the Module completely click Button Save ll 4 ST Visual Develop project stw stmBs conf h ch File Edit view Project Build Debug Debuginstrument Tools Window Help Ea El ed amp Sm dt B ES zit m 4h 4 i 6 Qc ad pies ee Workspace x Hes project stw 68 define K 1 stmas208 pe Library WocWkochokokokohochocho hoch onhokokokokocho ho hockonokokokocho ho hok o kokokokoko 3 IUPT ERE LLLnLX ERE ca EXTI Source Files LA T 71 Hderine ESTE i1 main c x aa 4 stm _interrupt_vector PIT ee ee p ca MATA DIITDOS ttt T Va Pc Cc eae F Lio H D Ti EEP FOM wo r 5 skm amp s ib c a didi Ec i l define FLA ity
6. 46 WWW ETT CO TH ELT User s Manual of Board ET BASE STM8S208 ET STM8S STAMP www ett co th N3380 ALO id 9ld OISSA T Sld esate pid ssA e ld ePPA Cid PPA Lid amp OIppA Old OIPPA NLHO LAIL ZHd NCHO LAI L 9Hd NEHO LIAI L SHd Xl luvnys d SENIW Z4d JOA NZHO HAIL ENIV LGd OLNIV OJd NLHO INIL ONIV OSd 56 dVOATS 8NIV Z3d NIoSO Lvd FF 10S 2cI L L3d ISUYN 099 W1IOASH OSd WLI3 LWIL FHd d338 LHO zIWI L SH rad Hd 413 oaqvlcHO cMWI L SH EQd ZHd SHO ZIL LHO SWILASH Zdd SH LHd 7 7 WIMSASH LGd SH OHd 022 WIDIINING HAIL ZHO EWILASH 0dd 19d OSIW IdS SH 4Od 99d ISOW_IdSKSH 99d GOd MOS ldS SH SOd 77 vOd HHO _IWILISH 9d op S394 end E HO LWI L SH EOd codo ZOd GOLEW8OcS BALS ZHO_LWILASH ZOd lt a XY_NVO LOd LHO HALL SH Lod Fep _ od XL NvO2 OOd 413 oqv ood 7z 03d V INIV 93d 9NIV 98d INIV G4d vas_ozil sNIv Sad I ZLNIV Pdd hos ol pNivirad foe S894 H NIV E Ad 413 ALL eNIv 8d Fpe 82 A NEHO LIAIL ZNIY Zad E SER EE 08d EXED ch eva GNIV 93d X9 LUwUS HONG SSN ldS 93d X1 Lluvnv SH svd FErL 5 vad _ OKU LLUWOSH pd F51 929 0 NING HAIL C3d LHO EWIL EHO ZWILE Wd FE vd 2 vas oz z3d 1noosorcvd cv 7 ANNO K3 N gt z m X gt o t dno
7. 9 ut j 2 Picture 5 2 1 displays TOOL STMSS DISCOVERY ETT CO LTD 41 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP er www ett co th 4 Open Program STVP or STVD to download code into MCU please read how to use each program from Section 4 1 and 4 2 How to use Program STVD and STVP 5 3 How to program by Cable RS232 It loads program directly by using Cable RS232 in this case it interfaces Cable RS232 from Port RS232 of PC to Connector UARTI of Board ET BASE STMSS208 This Cable RS232 1s used to download only it cannot be used to debug or set Option Byte moreover it is compatible with Board ET BASE STMS 8S208 only For Board ET STMSS STAMP it is unable to use with it because there is no any Connector UARTI on board If user requires downloading program it has to use Program Flash Loader Demonstrator of ST File program has to be file surname S19 and it has to set Fuse Option Byte of to be Enable Boot Loader normally it has already set to be Enable Boot Loader UART1 r e Ta N o Picture 5 3 1 displays position UART1 of Connector Download through RS232 How to interface It interfaces Cable Download from RS232 PORT UARTI of Board ET BASE STM8S208 to Com Port of PC as shown in the picture 5 3 2 next user has to open Program Flash Loader Demonstrator to download Read more information about using program from Section 4 3 How to use Program Flash Loader Demo
8. DATA MEMORY OPTION BYTE n n n 0 n 0 n 0 n 0 n 0 n 0 n 0 n 0 n 0 n 0 0 OO os os BA ma A an G man G ma G m E a G a G a Gan G a G aa Ga G aa Gaa Gan G aa Gaa G aa E aa Gaa E a aa A A a Ga Aaa Ga Ea Ea A a Aa ss os ma BA wa S a A ma B ma G m E maa GE n G a G an G a G a Ga G a Ga Gam G a Gaa G aa G ma Gan G ma Gaa An G aa Ga Aaa Ga En G a A aa A a mm A ma B wa S a A ma B wa G ma E ma E man A ma G a G a G a a G a a Gan G a G aa Ga G ma Gan G ma Gaa An G aa Ga Gaa Ga En a A ma A a mm man B wa S a A man G wa GA ma BA ma E ma A ma A m G an Gma BA ma G an A a G a G a G an G a G a Ga G m a an G aa Gma A aa Aa Ga G ma A a G mjmjajajajoejajajajajajajajejajajajajajajajajajajajajajajajajajaju mjmjaujajnjejajajajajajajanjejajajajajanjajajajajajajajajajajajajaju os a G an G a A aa an G aa aa Gaa Gaa Aaa Gaa Aaa Gan G aa Gaa E Gaa Aa Gaa Ea Gn E a Aaa A A am Ea a Aa Ea Eaa A a E mm BA ma B wa A a A ma GA wa G ma E ma E oa G aa G e G a m a G a Ga Ga G a G a G a G aa Gam G ma Gaa Gaa G aa Gaa Gaa Ga En G aa A a G a os se ma B ea G m E aa G a G a G an G a G a Da G a Ga Gan G aa Gaa Ga G aa Gam E ma Aaa Gn G aa Ga Gaa Ga En G a A a Aa Ki mjmajajnjnjajajaju cooonuooocaoado X Hardware configuration set to zST LIHE on USB with STHS852 08HB plugged in and SWIM proto l lBlank check before Programming when available if OF Werifo after programming if OH Clear memory before loading a fi
9. External Dependencies Se mads h PEEP EEE nk ka ia ik a NE asus far tika wa nga i i ir r r i E akng h TA pean rir nir i n n ln n n cr cr lr lr rr nr lr nr n nr n n c n nn nr nn nn OPT Tor B FTES 5 77 define OPT 114 B stm amp s Evpe h ays iiai eA mE 79 Fir cir ir ir KI GPIGO TRA o NU E stmas it h Midi so Hdefine GPIo 1 81 az NE I Led Lodi dir ir lir nli nir lr n n n ln 83 define I2 ij j 84 25 DARA KAKA KAKA AKK E E ERE ETE doo r r r kk kk gh odefine ITC 1 a Picture 4 1 8 displays how to open File stm8s_conf h to edit 8 From the Window Workspace on the left hand right click Folder Library and choose Add File to Folder as shown in the picture 4 1 9 a Next Window Open in the picture b appears in the blank Look in choose Folder to save the Project of user and user will see Folder library and Folder project at the bottom window Then double click Folder library and click Folder sre user finds File library file c of Modules in this case click file library of Module that user requires using and click Open Finally the File Library will be added into the Project of user instantly as shown in the picture c If user requires using Library of other Modules use can add them into the Project of user as required There are many sub programs that are related to the Module inside each file of this File Library user can click that File to see
10. Function of this Tool is the same as ST Link but there is no box and cable It is compatible with Window XP Window7 and 2 versions of ETT Boards Programs that are used with ST LINK are STVP and STVD This Tool is divided into 2 parts firstly it is the part for downloading and secondly it is Board MCU No STMSS105C that gives free If user wants to download data into the Board MCU that is given free with kit user can interface Cable USB with PC and then use Program STVP or STVD to download Source Code into the Board MCU instantly How to interface In case of downloading Source Code into 2 versions of ETT Boards please follow these instructions 1 Break PCB pad in the part of Download or suck lead at the joint of Jumper between SBI and AB2 on the PCB Pad see picture 5 2 1 2 Interface Cable USB between ST LINK and PC 3 Interface all 4 of Cable Download 1 VCC Red 2 SWIM White 3 GND Black and 4 RST White from Connector of Tool Download to the Connector SWIM Download of Board STMS see picture 5 2 1 cables in the picture are example and are not provided in the kit User has to interface 4 Cables as follows 1 VDD 2 SWIM 3 GND and 4 RESET respectively JVC WA Je i LHLETETTTTTET lo LJ y m LM P H X mmm im 4 4 lt 6 e lilii H P r y M 7 gt i B 3 4 i to V CC 5 f n gt ee oe p gt 2975 A a 4 LI i 4 4 Bins A 4 d 2 j 4 d
11. I Oo w Quos 6 x D O 2 SPI 0 vDD Figure 2 11 displays how to arrange pins of Connector SPI 12 Port C It is Connector Block 10PIN of PORT C which can be used to be I O as required It arranges signal pins as shown in the figure 2 12 PCO PC2 PC1 PC3 PC4 PC5 PC6 PC7 VDD M W 10 GND Figure 2 12 displays how to arrange pins of Connector PORT C 13 CON I2C It is Connector I2C 4PIN that is interfaced from Pin PB4 SCL and PB5 SDA of MCU If user want to use it it needs to use Program STVP to program Option Byte for MCU first and then edit ETT CO LTD 6 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th values in the part of AFR6 Port B5 Alternate Function I2C_SDA Port B4 Alternate Function I2C SCL finally it needs to program the Option Byte into MCU Figure 2 13 displays how to arrange pins of Connector I2C 14 LED PHO It is green LED that is interfaced at PORT PHO to test the written program If user wants to switch on the LED it needs to send Logic 1 to Port PHO 15 VREF It is Jumper to choose Reference Voltage between and from external for using in the part of Module ADC inside MCU In this case if user sets the first Jumper VREF to V side it interfaces Pin Vref of MCU with VDD on the other hand if user sets the Jumper to the opposite side it interfaces Pin Vref with PIN3 of Block Connector PORT F instead If user s
12. I mu c Picture 4 1 9 displays how to Add File Library into the Project File Note For details in the part of using Library user can read them from File stm s fwlib um chm in Folder Tool Library stn8sfwlib 1 1 1 in the CD For example program for calling Library Functions that is written and provided by ST Company is Source File c only in this case user can follow this Link Folder Tool Library stm8sfwlib 1 1 1 FWLib examples 9 From the Window Workspace on the left hand click File main c and Tab of File main c appears in the window on the right hand in this case user can start writing program From the picture 4 1 10 it is example program of blinking light Note Under the closed braces of Loop main there is content of program that is attached with Template It begins with the line ifdef USE FULL ASSERT and so on so it is not allowed to delete anything because it will be error when user compiles program ETT CO LTD 30 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP er www ett co th 4 ST Visual Develop project stw main c c5 File Edit View Project Build Debug Debug instrument Tools Window Help a sg d 2c vis Se M D 6 78 a 0 stm8s208 Debug 7 di E pal AE Workspace x es project stw ae T x f r oh n 4 4 4g5 stm8s208 Library stm8s apio c Source Files main c o aaa 5 strm _jnterrupt_
13. It is used to be Editor for writing Program Debug and Download 3 Program STVP It downloads Source Code Data and Set Option Byte 4 Program Flash Loader Demonstrator It downloads Program through RS232 UART only 3 1 How to Install Compiler Cosmic It has to install this program first 1 Copy Folder Tool and paste in the PC first 2 Install Program Compiler Cosmic CxSTMS first click Tool Compiler Cosmic and then choose either Compiler to install If installing exstm8 16k exe When user has already installed and registered this program through web site user can flash and use 16Kbyte Code and Data eternally exstm8 32k exe When user has already installed and registered this program through web site user can flash and use 32Kbyte Code and Data however it only lasts for 1 year In this case we recommend user to install Program cxstm8 32k exe double click this file to start installing program as shown in the picture 3 1 0 Tools Help Search Folders i Settings ETT_113 My DocumentsiSTM8 TOOLlToollCompiler Cosmic cxstm8 16k exe Mo vict Corporation Picture 3 1 0 ETT CO LTD 10 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP err attr n www ett co th 3 From picture 3 1 1 click Next gt and from picture 3 1 2 click I Accept and finally click Next gt COSMIC STMB 32K C Compiler InstallShield Wizard COSMIC STMB 32K C Compiler I
14. Restart later finally click Finish to end the process of installing program ST Toolset InstallShield Wizard B y s n InstallShield Wizard Complete ER The InstallShield Wizard has successfully installed ST Toolset Before you can use the program you must restart your computer STM Parallel Driver for Windows NT4 2000 and XP O Yes want to restart my computer now Remove any disks from their drives and then click Finish to complete setup Picture 3 2 14 Baci saa ETT CO LTD 9 WWW ETT CO TH www ett co th User s Manual of Board ET BASE STM8S208 ET STM8S STAMP err 3 3 How to install Program Flash Loader Demonstrator Download RS232 If user does not require downloading program through Cable Rs232 it is unnecessary to install this program on the other hand if user requires downloading through Cable Rs232 at the Connector UARTI of Board no Tool ST Link it needs to install Program Flash Loader Demonstrator V2 1 0 Setup exe to download program as described below 1 Go to the following Folder ToolLoad By RS232 Flash Loader2 1 double click File Flash Loader Demonstrator V2 1 0 Setup exe as shown in the picture 3 3 1 o Search Key Folders EE Settings ETT_113 My Documents STM _TOOLTooLoad_Ey_RS2321Flash_Loaderz 1 lash Loader _Demonstrator_ POF Loader demonstrator 13915 Setup Launcher PDF Document Jiao Microelectronics 1 675 KB S readme txt TXT File EJ TXT File
15. VDDJAM W10 GND Figure 2 8 displays how to arrange pins of Connector PORT I 8 PORT CLCD It is Connector Block 16PIN of PORT CLCD that ETT has designed to interface with Text LCD directly It arranges signal pins as shown in the figure 2 9 ET CLCD VDD GND PM RS CONTR PI3 E RW P12 D1 DO D3 D2 PI5 D5 D4 P14 PI7 D7 D6 PIG A K PIO Figure 2 9 displays how to arrange pins of Connector PORT CLCD For Pin Back Light A 15 K 16 there is circuit to control on board completely see more circuit at the end of this manual If user wants to interface this Back Light user can write program and control the brightness of this Back Light through Port PIO 1 Back Light ON 0 Back Light OFF instantly ETT CO LTD zm WWNW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th 9 LCD INS It is VR to adjust the contrast of LCD 10 PORT G It is Connector Block 10PIN of PORT G which can be used to be I O as required It arranges signal pins as shown in the figure 2 10 PG PGOJIH E2 PG1 PG2 E E PG3 PG4 gE E PG5 PG6 M E PG7 VDD oM Mio GND Figure 2 10 displays how to arrange pins of Connector PORT G 11 CON SPI It is Connector SPI 6PIN that is serial communication with external device that sends signal as SPI Interface It arranges signal pins as shown in the figure 2 11 For Pin PE4 it replaces Pin SS of Module SPI inside MCU MISO PE4 c O O 6
16. a N f ea p gt p gt Lag if a aS me E N iem 5 m L e Lg em E en Ln A al m a E Mi aa br aa Ba Lan EA S bs d w w Actual size of Board ET STM8S STAMP 82 30 mm FPH HH i FO a VDD E Tet c GND e DA RESET 6 UART1 24MHz 2 O TETVIT22pE ME N EXE NL t O TE MKI n i PHO GND MS EC Green Green HEHHRHHHEHEHEEEE SPI NSS I2c_ PE4 aa y aoe V V LEG GND e MISO LD1085 SE if u SDA e E MOSI 3V3 on X SCL e SCK ee VDD Zi VIN 5V Actual size of Board ET BASE STM8S208 44 WWW ETT CO TH ETT CO LTD ET BASE sTM8s208 amp C817 User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th Structure of Board MCU STM8S208MBT6 kang SEO noo a pr oT ie Lo 11 73 O4D z Q Pp __ S amp P og cg TIITTTOC 3333322222229 5975 PPP ERodcd doGoso coo Uub o 80 Tel hos L F4 mm LHA AA AA I LS HH ELH Bio manak oP TEE PEA AIN11 PF3 VREF VDDA HPDZ TLI TIM1_CH4 LIPD6 UART3_RxX L PDS UARTS3 TX Mosi TPD4 HS TIM2_CH1 BEEP pan D PDS HS TIM2_CH2 ADC_ETR AIN10 PFO LPD2 HS TIM3_CH1 TIM2 CH3 SWIM TIM3 CH2 TIM1_BKIN CLK_CCO PD1 HS TPDO HS AINT PB7 AIN6 PB6 2C SDA AINS PB5 I2C SCL AIN4 PB4 TIM1_ETR AINS PB3 TIM1_CH3N AIN2 PB2 TIM1_CH2N AIN1 PB1 TIM1_CH1N AINO PBO TIM1
17. at the bottom as shown in the picture 4 2 6 In this case if any program is not read by MCU or any file program is not opened to write into MCU all values in TAB PROGRAM MEMOPRY are 0 Option byte Option byte Option byte Option byte Option byte Option byte Option byte Memory checksum Oo Cn KIT Hs CO Po n occoc occccco ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce ce gt PROBRAH HEHORT A DATA MEMORY A OPTION BYTE F gt lt l Picture 4 2 6 displays how to choose TAB PROGRAM MEMORY ETT CO LTD 35 WWNW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP er www ett co th 7 Click Button Open a file and open the written program with file surname s19 Next Data of file that is opened is displayed in TAB PROGRAM MEMORY If the Filesl9 is in Folder ETT Template it always is in Link project STVD Cosmic Debug 8 When opened program that required downloading and it is displayed at TAB PROGRAM MEMORY completely click Button Program current tab or active sectors to download program into MCU While downloading program Tab Status at the bottom becomes 100 completely it means that the process of downloading is success as shown in the picture 4 2 7 gt Programming PROGRAM MEMORY ares Picture 4 2 7 displays status of downloading program into MCU 9 When downloaded completely remove
18. project stw Toolset STM8 Cosmic ur pro Export Makefffi amp HG Es stm8s208 lt ss File Project specific toolset path Insert Project into Workspace rie A h t pat l Add New Project to Workspace authe wi Remove Project from Workspace Toolset sub paths relative to the Root path 8 Waah Bin path 9 i r Include path 10 THE PI P v4 WITH Library path 12 TIME 13 DIREC TE FROM Output directory 15 CODIN 16 i Debug Es 17 hi 18 d lmace pee Nn 19 ts9543 rz p m saa net nanan main ec PAN aeiur Picture 4 1 3 displays incoming Set Project Picture 4 1 4 displays Window Set Project Tab Genenral 5 Choose TAB MCU Selection and then set values as shown in the picture 4 1 5 normally values in this Tab are set automatically After user checked both Tabs of Set Project above completely click OK to finish Set Project Project Settings Settings for Debug General Debug MCU Selection C Compiler Assembler 4 e r Filter Show MCUs containing MCUs STM85207CB STMeS207E6 STMB85207M8 STMeS207MEB STMSSZ HE REH stm8s208 CCcccecceceoeoono Select Selected MCL STMBS208MB Cancel Picture 4 1 5 displays window Set Project Tab MCU Selection 6 Go to Menu Debug instruction choose Target Setting as shown in the picture 4 1 6 and the Window Debug Instrument Setting appears ETT CO LTD 2 WWW ETT CO TH
19. the Local Machine The selection Local Machine requires amp dmin privlidges and will set the path for all users Register in HKEY CURRENT USER 7 zu e Register in HKEY LOCAL MACHINE Picture 3 1 7 lt Back eo JT cence Picture 3 1 8 7 When window in the picture 3 1 8 appears choose Register HKEY CURRENT USERY and then click Next gt 8 When window in the picture 3 1 9 appears click OK ETT CO LTD WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP er www ett co th Cosmic 32K Compiler Registration REGISTER NOW TO GET YOUR FREE LITE VERSION TOOLS PRODUCT LXSTM832K COSMIC STMB 32K C Compiler InstallShield Wizard User jett113 Company ett Address 1112 96 98 A REGISTER WOW TO GET YOUR FREE LITE VERSION TOOLS YOU WILL THEN RECEIVE amp PROPER LICENSE TO USE THE SOFTWARE Picture 3 1 9 Country Thailand Phone Fax Optional 0271 21120 Register by Email Edit Email and Register corel required Picture 3 1 10 9 Window Registration in the picture 3 1 10 appears user has to fill data in all blanks that have sign in this case it maybe the true or false information 10 After filled data in the blanks completely all of 4 buttons below are enabled If user chooses 66 Register by Email All data that user has registered will be sent automatically through e mail that refers to Pro
20. the written program it always saved in the file 2 3 File stm8s conf h This file declares resource name of Modules in MCU in this case all names that are declared 1s disabled If user wants to call any part of Module such as GPIO ETT CO LTD 2 WWW ETT CO TH 2 4 2 5 User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th I2C or Timer it has to enable the Module to operate first In this case it has to erase or remove the sign at the front and the back in the line of define of Module because there 1s no any error when calling sub program that is related to Modules to compile File stmS8s it c It is file that is used to write program to respond to the Interrupt It writes data in the part of the blank Function Routine in this File to support Interrupt from Modules completely If user wants to write program to respond to the Interrupt user has to write in the part of Routine of this File as required File stm8s it h It is file that is used to declare name of Function Interrupt Service Routine of Modules to link to File stm8s it c moreover user does not need to edit any value in this File NOTE For any Folder and File Name inside Folder ETT Template it is not allowed to edit or rename because there is ERROR when compiling program Procedures of writing program by STVD 1 After installed Program Compiler and Editor successfully every time user starts writing program by new Pro
21. y N33u9 BAN CACt 4 0 OSIN IdS os Fh ISON IdS jnyo nol A GONI 22 JO GCLZSZON GCLZSZON 0l A QN9 N E QdA z 22 sok QA lt jdoz dnp o ZHI vc C 4doz l13S3H MS Ol WIAAS 13934 LIYA 8 olvad Z jT GCLZSZON t ple OS ONIN SSA 9 QdA r IND e IvO d2 c clV d CAC SSN laslzzg gt SOYOT NNOG WINS AC t of Board ET BASE STMS8S208 Sheet1 ircui ture displays Ci IC P WWW ETT CO TH 47 ETT CO LTD Ell User s Manual of Board ET BASE STM8S208 ET STM8S STAMP www ett co th JIAN CX9L AV IdSIO G97 agy a31 gt z L CACt INO NI S80101 SIMO CAC ke 9 AG V adA CECEXYIN AGT AQ ANOOOL e E t ea A AG UA SQYOT NMOQ CDCECSOU BDICETSAY Picture displays Circuit of Board ET BASE STM8S208 Sheet2 WWW ETT CO TH 48 ETT CO LTD ELT User s Manual of Board ET BASE STMS8S208 ET STM8S STAMP www ett co th Ger GT ee id 9ld Sid vid ld cid Lid Old NLHO LAI L ZHd NCHO LWI L 9Hd NEHO LIAI L GHd dla LAIL PHd Hd cHd SH Hd SH OHd 29d 99d GOd vOd 2s gdolgWeoce eWls SSRIS XH NvO LOd XL NvO OOd SINIV Z d VINIV 93d CLNIV Sdd CLNIV Vdd LENIV E3d HJA JOA OLNIV O3d 8NIV 3d 6NIV 93d SSN ldS e3d pad _ NING LIAILL E3d va
22. 0 it makes LED ON on the other hand if it sends the signal as 1 it makes LED OFF However it has effective when it runs in SPI Mode only 22 Slot Micro SD It is Slot to insert Micro SD Card user can writes program and store data into this Micro SD in this case it uses SPI Interface For Library that uses STM8S208 to write program and stores data in the Micro SD it writes and stores data in the Address of memory directly as same as E2PROMPT Remember it is unlike File Flash so it is unable to open the written data in PC 23 PORT H It is Connector Block 10PIN of PORT H which can be used to be I O as required It arranges signal pins as shown in the picture 2 19 PH PHO PH1 PH2 PH3 PHA PH5 PH6 PH7 VDD GND Figure 2 19 displays how to arrange pins of Connector PORT H 24 UARTS It is Connector RS232 Channel 3 4PIN it arranges signal pins as shown in the figure 2 20 This connector 1s used to interface with external devices or PC to transmit receive data as Serial type ETT CO LTD 9 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th RS232 CH3 LII AMMO ON X X 2 gt mc TA Figure 2 20 displays how to arrange pins of Connector RS232 CH1 Download 3 How to Install Program ETT provides 4 Programs that are related to 2 versions of Board STM8S208 for user as follows 1 Program Cosmic CxSTMS It is used to be Compiler for using with Program STVD 2 Program STVD
23. Cable Download SWIM from Board MCU and the program that has been downloaded previously starts running instantly NOTE If using Program STVP to download program user has to remove Cable Download SWIM from board after downloaded program completely if user wants to see the operating result of running program on the other hand if user does not remove any cable from board the program is not run 4 3 How to use Program Flash Loader Demonstrator X This program is used to download Source Code file s19 of program only moreover it downloads through Serial Port Uartl of Board ET BASE STMSS208 directly so it is unnecessary to use any Tool How to Download Program 1 Supply 5V Power Supply into Board and interface Cable Download RS232 from Comport of PC at Connector 4PIN UARTI of Board ET BASE STMSS208 see the position of Connector UARTI and learn how to interface cable from picture 5 3 1 and 5 3 2 respectively 2 Run Program Flash Loader Demonstrator Qe and window will display as shown in the picture 4 3 ETT CO LTD 36 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP err www ett co th 7 Flash Loader Demonstrator E Select the communication port and set settings then click next to open connection Common far all families te UART Port Hame Parity Ever TS Echo Disabled Data Bits j Timeout s 5 Baud Aate 115200 Picture 4 3 1 displays Window
24. Flash Loader Demonstrator 3 The blank Port Name in the picture 4 3 1 user has to choose the Comport that user has actually interfaced for other blanks user does not edit any value as shown in the picture 4 3 1 4 Press SW RESET on Board ET BASE STMSS208 and click Next It displays window as shown in the picture 4 3 2 and finally click OK SIMicroelectronics flash loader Could nat Find the E v ROUTINES File Far this version 2 1 id Please make sure vou selected the right device Picture 4 3 2 displays window that reports the operating result when user chose the wrong device 5 Next it displays window to choose device as shown in the picture 4 3 3 for the blank Target it has to choose STM8_ 128K and then click Next ETT CO LTD 3s WWNW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP err www ett co th 7 Flash Loader Demonstrator amp TMIcroelmectronicz Please select pour device in the target list V ersior 23 Flash mapping 0400 TE 0400 pe 080 OF 0400 IE Ox400 1K O 400 15 O 400 1 0400 16 0400 TK 0400 TE 0400 TE 0400 pm ha AN rdg Cancel Picture 4 3 3 displays window to choose Target 6 Next window in the picture 4 3 4 appears and use has to choose the blank Download to device For the blank Download from file user has to click Button Browsel By and link to File surname s19 of program that user requires downloadin
25. Source Files a 8 iare 24 ipe ins a3tmaoas h 23 IU p ur de 3 M MMMM MMMM MMMM E skm inberrupE seckar X stm s iF c External Dependencies mads h stmas h E stm s_type h stmis conf h E i S 33 while T 34 Ce 39 a ifdef USE FULL ASSERT g x 42 brief Reports the name of the source file and the source line number 45 bi where the assert param error has occurred 44 Hparam file pointer to the source file name param line assert param error line source number retval None oid assert failed ua file u32 line d 24 User can add his own implementation to report the file name and line number Seer printti ines paremeters value fide Se on tine Svrvme fale Finej CX Tei deem Xy while 1 1 tn el MH Workspace main c Picture 4 1 2 shows the feature of Template when running RUN File project stw Another one method is to run Program ST Visual Develop that has been installed previously go to Menu File choose OpenWorkSpace open File project stw and finally window in the picture 4 1 2 appears File t is used to load stm8s208 s19 in the Folder Debug STVD Cosmic Debug this File is always created and stored in Folder Debug If the written program has been compiled successfully and user wants to load program into MCU user can load this file stm8s208 s19 by Program STVP instantly 2 2 File main c This file is used to store
26. User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th ET BASE STM8S208 ET STM8S STAMP 1 Specifications of Board ET BASE STM8S208 ET STM8S STAMP Use 3 3V 5V VDC Power Supply for Board ET STMSS STAMP and 5V VDC Power Supply for Board ET BASE STMSS208 Run MCU at 3 3V 5V VDC Run Frequency MCU 24MHz Crystal for External Clock On Board Run Frequency MCU 128KHz 16MHz RC Oscillator for Internal Clock Default Have 128Kbyte Flash Memory 6Kbyte RAM Serial Interface consists of CAN 1 Channel SPI 1 Channel UART 2 Channel I2C 1 Channel MCU LQFP80 DIP Type has 80PIN in total in this case there are 68PIN I O PORT PA PI Can 10 000 times re program Have 16BIT Timer 3 Channel SBIT Timer 1 Channel Have ADC 10BIT Converter Input 16 Channel Have Slot Micro SD Card for ET Base STM8S208 Use C Language to develop program in this case it uses Program ST Visual Develop to be Editor and Program Cosmic CxSTMS to be Compiler It is l6Kbyte free if registered through website user got 32Kbyte free Please follow the instructions in the manual Use Tool ST Link or STM8S DISCOVERY to be the operator through Connector SWIM on board to Download and Debug program including Set Option Byte for MCU Ifuser only downloads it can download program through RS232 at Connector UARTI of board in this case it uses Program Flash Loader Demonstrator be compati
27. You won t be able to read the release notes From this setup lt back Cancel Back M Cancel Picture 3 2 4 o Picture 3 2 5 ETT CO LTD AWI WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP er www ett co th 4 Next the window in the picture 3 2 6 appears click I accept the and then click Next gt The window in the picture 3 2 7 appears user does not edit anything in the blank Type click Next gt instantly ST Toolset InstallShield Wizard Disclaimer This Freeware and all accompanying files data and materials are distributed AS IS ST does not warrant that the operation of the Freeware will meet your requirements or operate free from error ST DISCLAIMS ALL OTHER WARRANTIES AND CONDITIONS EITHER EXPRESS OR IMPLIED INCLUDING THE WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT OF THIRD PARTY RIGHTS This disclaimer of warranty constitutes an essential part of the agreement In no event shall ST or its principals shareholders officers employees affiliates contractors subsidiaries or parent organizations be liable for any incidental consequential or punitive damages whatsoever relating to the use of The Freeware or your relationship with ST This License shall be governed and interpreted in accordance with the laws of France without giving effect to choice of law principles Ehr
28. _ETR PH4 TIM1 CH3N PH5 TIM1 CH2N PH6 TIM1 CH1N PH7 AIN8 PE7 AINS PE6 b ha ol fan jan jan jan LPH LP LO tn in tn tn in tn tn tn o Pc ks KAGET a ooo P co b EI OT ooo TH OHCHOHCHCHOHCHCHOHCOHCHOHEHCHCHTHCOHOHO O 338283387 883838888282 c o2SOROSPOdolcvoRU MU DPTTTPTDODUTUS 0 KA oo Wa ug NU RE zx zZz m ma 43353 Tin D HS High sink capability OFSSSE mM D 4 bp 2d T True Open drain 20993 Gs GA ED Alternate Function remapping option Picture displays MCU STM8S8S208MBT6 Package LQFP 80 PIN ETT CO LTD 45 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP ETT www ett co th Reset block XTAL 1 24 MHz m Clock controller Reset Ca Detector RC int 128 kHz vYvvv Clock to peripherals and core im Window WDG e Independent WDG Single wire d Up to 128 Kbytes debug interi Wa Debug SWIM gt high density program Flash data EEPROM STM8 CORE ce a 10 Mbit s L gt lt gt 5 dam Up to 6 Kbytes I RAM D LIN master o lt gt Boot ROM Master slave lt aha 16 bit advanced control autosynchro UARTS lt gt timer TIM1 Up to 9 CAPCOM lt gt 16 bit general purpose AA 1 Mbit s dmt beCAN lt gt timers TIM2 TIM3 um 8 bit basic timer 16 channels O ADC2 dam TIMA 1 2 4 kHz Ks lt ew K gt Picture displays Blog Diagram of MCU STM8S208MBT6 ETT CO LTD
29. ars respectively user continues to click Next gt ETT CO LTD Ji WWNW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP err www ett co th COSMIC STM8 32K C Compiler InstallShield Wizard E COSMIC STM8 32K C Compiler InstallShield Wizard Select Program Folder Start Copying Files Please select a program folder Review settings before copying files Setup will add program icons to the Program Folder listed below You may type a new folder name s enough information pying the program files ou want to review or change or select one from t ting folders list Click Next to continue any settings click Back If yo ied with the settings ext to begin copying files Current Settings Program Folder C Program Files COSMIC CXSTM8 32K C Program Files COSMIC CXSTM8_32K HSTM8 Kardi ibrari C Program Files COSMIC CXSTM8_32K4LI ACD Systems amples Administrative Tools pos Source Files C Program Files COSMIC CXSTM8_32K SRCSTM8 AVG Free 3 0 Manuals C Program Files COSMIC CXSTM8_32K DOCS Foxit Reader Games GIMP GridinSoft LightScribe Direct Disc Labeling Nero 7 Essentials OpenOffice org 3 0 InstallShield N InstallShield Picture 3 1 5 Picture 3 1 6 6 When window in the picture 3 1 7 appears click OK COSMIC STM8 32K C Compiler InstallShield Wizard Select Path Location COSMIC STMB 32K C Compiler InstallShield Wizard 3 You can select either the Current User or
30. as preferred It arranges signal pins as shown in the figure 2 4 PA NC 1W NH PA PA2 M E PA3 PA4ME E PAS PA6 M I NC VDD 9Mi W10 GND Figure 2 4 displays how to arrange pins of Connector PORT A 3 SW RESET It is Switch RESET MCU to start operation of new program 4 PORT D It is Connector Block 10PIN of PORT D which can be used to be I O as required It arranges signal pins as shown in the figure 2 5 PD PDO PD1 PD2 PD3 PD4 PD5 PD6 PD7 VDD GND Figure 2 5 displays how to arrange pins of Connector PORT D 5 SWIM Download It is Connector SWIM which is used to download the written Source Code program into MCU it 1s interfaced through Tool Download ST Link or STM8S DISCOVERY Remember it is unable to interface with PC directly as Lu OOOQ 12 3 A4 Figure 2 6 displays how to arrange pins of Connector SWIM Download 6 PORT E It is Connector Block 10PIN of PORT E which can be used to be I O as required It arranges signal pins as shown in the figure 2 7 ETT CO LTD 4 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th PE PEO 8M W2 PE1 PE2 M E PE3 PE4 gE E PE5 PE6 M E PE7 VDDISH W10 GND Figure 2 7 displays how to arrange pins of Connector PORT E 7 PORT I It is Connector Block 10PIN of PORT I which can be used to be I O as required It arranges signal pins as shown in the figure 2 8 PI PIO PI1 PI2 PI3 PIA PIS PI6 PI7
31. ble with version ET BASE STM8S208 ETT CO LTD giis WWNW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP 2 Structure of Board ET BASE STMSS208 ET STMS8S STAMP Y a fa a Lu or E GND RST IOLI ES Labs TALI E lt e m tn m o IM lt je AN AN gt e lt 24MHz Q gt a a gt bsp lt x O lt A e ery T jes el E se wz eS i E L me e e e 003 e e e e e TOC XC e e e un e N lt A un un gt a gt e lt Au N lt A A a A ka Qu v ka Qu e ka Qu lt a gt E S e D faa A Ta ea Au en en fA yani ea A 1 VO PIN It is Connector I O Pin of MCU for actual interface 2 SW RESET It is Switch RESET for MCU to restart e un A gt gt es c c c t c N ea c N c D ce El www ett co th 3V3 5V H Hid VDD s VDD 6 a c a mm a A Figure 2 1 displays structure of Board ET STM8S STAMP 3 Download It is Connector SWIM to download the written Source Code Program into MCU it has to connect through Tool Download ST Link or STM8S DISCOVERY Remember it is unable to directly connect with PC 4 LED PHO This green LED is connected with PORT PHO to test program of board Blinking 5 VIN It is Connector 3 3V 5V VDC Power Supp
32. e Software only as necessary for use on a single computer Any such copies v Welcome to the InstallShield Wizard for COSMIC STM8 32K C Compiler The InstallShield Wizard will install COSMIC STM8 32K C Compiler on your computer To continue click Next Qi accept the terms of the license agreement do not accept the terms of the license agreement InstallShield InstallShield Picture 3 1 1 Picture 3 1 2 4 Fill user name and company name in the blank as shown in the picture 3 1 3 user maybe write any message in the blank and then click Next gt From the picture 3 1 4 choose the location to install program Normally it is chosen automatically so user does not change any value finally click Next gt COSMIC STMB 32K Compiler InstallShield Wizard COSMIC STMB 32K C Compiler InstallShield Wizard E3 Customer Information Choose Destination Location Please enter vour information Select folder where setup will install files Setup will install COSMIC STM8 32K C Compiler in the following folder Please enter your name and the name of the company for which you work To install to this folder click Next To install to a different folder click Browse and select another folder User Name iue Company Name Destination Folder C Program Files COSMIC CXSTM8_32K Installs lt Back nop caret laste Picture 3 1 3 Picture 3 1 4 5 When the window in the picture 3 1 5 and 3 1 6 appe
33. en rim fert Eee eem I do not accept the term of the agreement Picture 3 2 6 ST Toolset InstallShield Wizard Edit Data Enter requested data Specify the install s type The default type is standard tools installing ST Visual Develop and ST Visual Programmer If you have a different profile replace the selection Type standard tools Picture 3 2 7 5 Next the window in the picture 3 2 8 appears specify location to install file in this case it is better to use the Default Value and then click Next gt The window in the picture 3 2 9 appears click STVD and STVP shortcuts and finally click Next gt ST Toolset InstallShield Wizard Choose Destination Location Select folder where setup will install files Setup will install ST Toolset in the following folder To install ta this Folder click Mest To install to a different folder click Browse and select another folder Destination Folder C Program Files 5 T Microelectronics sst_toolset Picture 3 2 8 ST Toolset InstallShield Wizard Shortcut creation Do you want to create shortcuts on the desktop CO Don t create any shortcut Picture 3 2 9 6 Next it starts installing program instantly as shown in the picture 3 2 10 When the installation is complete and the window in the picture 3 2 11 appears click Yes to install the part of Driver Parallel Port ETT CO LTD 9 WWW ETT CO TH
34. ets the second Jumper to V side it interfaces Pin Vref of MCU to Ground on the other hand if user sets the Jumper to the opposite side it interfaces Pin Vref to PIN2 of Block Connector PORT F instead The external Reference Voltage is not higher than the VDD on OES v PIN2 V lO VREF Figure 2 14 displays how to set Jumper to interface Reference Voltage with Pin Vref and Vref of MCU 16 PORT B It is Connector Block 10PIN of PORT B which can be used to be I O as required It arranges signal pins as shown in the picture 2 15 PBO PB1 PB2 PB3 PB4 PBS PB6 PB7 VDD I M W 10 GND Figure 2 15 displays how to arrange pins of Connector PORT B ETT CO LTD EIS WWNW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP er www ett co th 17 PORT F It is Connector Block 10PIN of PORT F which can be used to be I O as required It arranges signal pins as shown in the picture 2 16 PF PFO NC NC PF3 PF4 PF5 PF6 PF7 VDD GND Figure 2 16 displays how to arrange pins of Connector PORT F 18 Select Vin It is Jumper to choose VDD level that supply to MCU and supply to Connector of Ports on board When user supplies 5V Power Supply to Connector Vin the voltage will be converted and reduced to 3 3V so there are 2 Voltage Levels Firstly it is 5V that supplies power directly and secondly it 1s 3 3V that has already been converted and reduced In this case it needs to use Jumper to choose
35. g and finally click Next Now the program starts downloading instantly 7 Flash Loader Demonstrator STMicro lectronics Selection Download to device Download from tile cp acuments and SettingssSiktipholDesktap Es T estsprajpectsS L J C Erase necessary pages Wo Erase Global Erase Jump to the user program Optimize Remove same FFs Werify after download Upload from device m ta SSS Cancel Picture 4 3 4 displays window to choose File to download ETT CO LTD 38 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP ETT www ett co th 7 When program has been downloaded completely it displays window as shown in the picture 4 3 5 click Button Close to end Program Flash Loader Flash Loader Demonstrator Target SITMB 128k Mapfhle X STMB T28K 5Tmap Operation DOWMLOAD File name C Documents and Settings Sithphol Desktop Es Testhprqect 5 T V O Cosmic D Filesize DAD KB 411 bytes Status 0 40 KB 411 bytes of 0 40 KB 411 botes Time 00 00 00 Download operation finished successfully Picture 4 3 5 displays window when it downloaded successfully 8 Press SW RESET on Board ET BASE STM 8S208 to see the operating result of running the program 5 Programmer Device for Download and Debug 5 1 Programmer ST LINK It is used to download set Option Byte and debug Program User can interface this device with USB PORT of PC directly without ins
36. gram Outlook Express it needs to connect with Internet Edit Email and Register All data that user has registered will also be sent automatically but user can edit Email for sending mail it also needs to connect with Internet Write to File All data that user has registered will be saved in the format of File txt first and user can send this file to register through Email later 11 In this case we recommend user to choose Write to File and it displays the operating result as shown in the picture 10 1 11 In the blank File name specify file name and then save as desired In this case we specify the file name as register txt as and then click Save The example file data that has been saved can be sent to register later as shown in the picture 3 1 12 ETT CO LTD 213 WWNW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP ETT www ett co th E register txt Notepad Fie Edit Format View Help See Email to send and The information below should be sent to sims 32k ncosmuc fr to obtain a license for this product Save To File Aa Registration Information for User ett113 Company ett dene S wm Address 1112 96 98 3 Country thailand Desktop Phone 027121120 IJ Fax My Documents Product Information m cH PRODUCT LASTMS32E My Computer p3 bmp i HOSTID 001f29407a90 T T My Mebwork File na
37. ion 1 1 and there are 2 folders in the Folder library 1 1 Folder inc It stores file libraries that are file surname h these files are related to defining the Register Names that will be called by file in the Folder sre 1 2 Folder src It stores file libraries that are file surname C these files are related to function sub programs that use resources that are provided by MCU User can see the list of Function Names in these files and call them to use in the main program correctly 2 Folder Project It stores the File Program that user has written including files that are compiled by program and files for downloading This Folder has 4 main files and 1 main Folder as follows 2 Folder STVD There are many complex files and folders inside There are 2 important Files that user should know Project File project stw It is in Folder Cosmic If user wants to start writing program it has to run this file first and it also makes Program STVD run including window Editor for writing program as shown in the picture 4 1 2 ETT CO LTD 24 WWNW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP er www ett co th ST Visual Develop project stw main c nta File Edit View Project Build Debug Debug instrument Tools Window Help aaah amp jc e m oO dh Dh US es Eh m d um stmBs208 Debug cs es ES Jmm Ge Workspace x Hrs project stw gs5 stm8s208 Library
38. ject it has to copy Folder ETT Template that is hidden inside Folder Template Project and then paste it in the location for storing file of user In this case it is similar to creating new Project 2 After copied and pasted it completely user can rename the Folder ETT Template as required 3 Go to Folder Cosmic M project STVD Cosmic to Run File project stw that is File Project next window 1n the picture 4 1 2 appears and it 1s ready to write program Or user maybe run Program ST Visual Develop that has been installed previously go to Menu File choose OpenWorkSpace open File project stw and the window in the picture 4 1 2 appears 4 After opened Project completely go to Menu Project and choose Setting as shown in the picture 4 1 3 The window Project Setting appears user chooses TAB General and then sets values as shown in the picture 4 1 4 normally the values in this Tab are set automatically ETT CO LTD 26 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th s ST Visual Develop project stw stm8s_it c Project Settings c File Edit View Project Build Debug Debug instrument Tools wind i Settings for Debug General Debug MCU Selection C Compiler Assembler 4 8 x A Set Active Project 4 Insert Files into Project x stm8s208 Defaults wa Dependencies Toolset Info orkspace m TE Shift F7 ME
39. lder Removing backup files Destination Folder C4 Software Flash Loader Demonstrator Browse i Cancel Picture 3 3 6 Picture 3 3 7 5 Finally the window in the picture 3 3 8 appears click Finish to end the process of installing program ETT CO LTD 2 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP ETT www ett co th InstallShield Wizard InstallShield Wizard Complete Flash Loader Demonstrator Y 2 1 0 Setup is almost complete Choose the options you want below l would like to launch Flash Loader Demonstrator V 2 1 0 Click Finish to complete Flash Loader Demonstrator Vv 2 1 0 etup Picture 3 3 8 6 When it installs program successfully program does not create any Shortcut and not paste it in the Desk Top user has to copy and paste it by self Go to the following Link C Program Files STMicroelectronics Software Flash Loader Demonstrator as shown in the picture 3 3 9 o Back d po Search Wee Folders Address C Program Files STMicr File and Folder Tasks A loader exe 2 Conf 5 Thich pelectronics Flash Load mij Rename this File 7 m LJ Map ty Move Ehis File IB Copy this File g Publish this file to the Web Picture 3 3 9 3 Initial Application When user has already installed program in the necessary parts as described above next it 1s the part of application For Program Compi
40. le iz OH Frase device memory before programming when an is OFF Display a Popup Window when an error occurs iz Log activity is OFF jgn lt 0 gt x006000 gt ST LINKE iS TMas206ME Picture 4 2 1 displays window of running Program STVP 3 Setup Program STVP go to Menu Configure and then choose Configure ST Visual Programmer as shown in the picture 4 2 2 a Window Configuration appears user has to set values as shown in the picture 4 2 2 b and then click OK Configuration no project STVP Hardware Device ST7MDT2 EIT STHB8S 207EB8 E ST MDT4 EPB GTMBS207RB BEC CT MDT4 EIT GTM8520756 Cancel ST7HDT5 EPB GTHB520758 ST7MDT6 EPB 2 Pen MUL ene STM8S207SB ST MDT EFB JT G STMSS209C6 File Edit Project Configure Read Program verify Erase Bank ST7HDTH1 EPB SUD STH85208C8 ST7MDTS1 EPB SUSHI ST7HDTU2 EPB STMSS200NE ST7HDTU3 EPB ST7MDTUE EPB 00 00 oo ST UDOSAUD13 no project EN CONFIGURATIOHN MEUM Hardware ST LINK UH UD Programming mode SWIM Device name STM852 8HMB Port USE a b Picture 4 2 2 displays window Configuration ETT CO LTD 395 WWNW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th 4 From the window on the right hand in picture 4 2 1 click Tab OPTION BYTE at the bottom and then click Button Read current tab or active sectors e it reads Option Byte of MCU to check whether i
41. ler Cosmic it is used to be Compiler only so we don t mention it In this case we mention about the application of Program Editor STVD and Program Download STVP through ST LINK that is used with Connector SWIM and Program Download Flash Download Demonstrator that is used with Connector UARTI through RS232 only The initial application of each program 1s described below 4 1 How to use Program STVD ST Visual Develop KA It is program to write by C Language Program and the feature of this program 1s shown as in the picture 4 1 1 Moreover it can debug compile and ETT CO LTD 22 gt WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP er www ett co th download program If user requires using this program it needs to install Program Compiler Cosmic as described above first then this program will link to the Compiler automatically when it builds program For more detailed information about Program STVD please read and learn the Manual in the Folder Tool Editor STVD415 STVP320 File MANUAL STVD 7705 pdf by self ST Visual Develop project stw main c E File Edit View Project Build Debug Debug instrument Tools Window Help aaa i amp JA om gw Qc n n Fk stmBs208 Debug ga Workspace iz project stw stm85208 Library Ea skmies gpio c 3 Source Files E main c include satm s h Ea stma interrupt vector Ea stmas ib c Exte
42. lists of sub program name and learn how to pass variables to these sub programs in this case it makes user understand and can call the sub program at main Program to use correctly ETT CO LTD 29 WWNW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP er www ett co th 1 ST Visual Develop project stw C Documents and c File Edit View Project Build Debug Debug instrument Toc z P Look irr E C e EX Es E u C se c a o c E stm8s adci c stm s_extiic E stm amp s rst c E stmBs tim5 c iE stmBs adcz c stm s Flash c stm s_spi c E stmBs tim amp c Workspace us E stm s_awu c 5 stms_timi c E stm s_uarti c gy project stw 74 ng E stmas beep c stm8s i c c stmBs tim2 c stm amp s uart2 c z pi re 75 i f sktmas can c stmas ibc c stmes Lim3 c stmas uarE3 c Gy Source New Folder E Ng 8 stm8s clk c Z stm8s Wwedg c 5 stm s_tind c stm8s wada f ma Add Files to Folder Sis i St Remove from Project 79 on ke st 30 id T By Externa Settings Di e File name stmBs gpin c E wa Properties 32 purr B i Pn 33 Files of type Source Include Files c epp css s asi e Cancel ow Full pa P iE st Add sorted elements bs stn 2 Allow Docking 36 b Hide 3 ag 85 90 Workspace x 91 Ren Es project sw a 4gs sEm8s208 3 Library skmas gpio c Source Files
43. ly for board user can choose to supply power through the normal Connector or through the white Block Connector as preferred 6 LED PWR This red LED 1s used to display the operating status of Power Supply for board ETT CO LTD WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP er www ett co th S VDD KI Swim e E GND e RESET 6 ET BASE STM8S208 A S 24MHzZ ppc 17 i I1MII UT CECCO UART1 KI un PHO 11K Green Green BEE BRB NANGEN S SPI NSS I2C 21 LED NSS V V BEG Gude amp LD1085 v dus WE NS ELS X SCL jum A oe VDD e 4 20 LED PWR VIN 5V LJ Uu LJ mum EE Figure 2 2 displays the structure of Board ET BASE STM8S208 1 UART 1 Download It is Connector RS232 Channel 1 UART1 4PIN and it arranges signal pins as shown m the figure 2 3 This Connector is used to interface signal with external device to transmit receive data moreover it 1s able to download Source Code Program that is file surname S19 through this Connector directly by using Program Flash Loader Demonstrator to be download operator RS232 CH1 anan O r rQ SERS Figure 2 3 displays how to arrange pins of Connector RS232 CH1 Download ETT CO LTD s WWNW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th 2 PORT A It is Connector Block 10PIN of PORT A which can be used to be I O
44. m amp G raldine Amar gai cosmic fr Sent Fri 5 21 10 7 37 AM To sittiphol yooyor yooyod hotmail com 1 attachment license lic 0 2 KB Dear Sir Picture 3 1 17 18 Download File license lic and save it in the PC then copy and paste it in the Folder License in the following Root C Program Files COSMIC CXSTM8_ 32K License After this process user can use 32Kbyte Program Cosmic Compiler free for 1 year 3 2 How to install Program STVD Editor and STVP Download Swim After installed Compiler completely user has to install Editor for writing program that is STVD and STVP for downloading It 1s simple installation because there 1s only one file to install but there are 2 programs In this case it uses file sttoolset exe to install as described below 1 Goto the following Folder Tool Editor STVD415 STVP320 double click file sttoolset exe to start installing ETT CO LTD 16 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP Ell www ett co th pa Search lp Folders EHE Settings SittipholiMy DaceumentslETT TestET sTMaesz eicpAToollEditor STvD415 STvP320 ah Pi MANUAL STYD 7705 pdf j ehe Monete zx CO ie Foxit Reader Document A E Microelectronics TATA KB i Imi crnetecrrorics L Tos STWDi45 Mote 12917 pdf Foxit Reader Document p fer KB Ni Picture 3 2 1 2 The window in the picture 3 2 2 appears click Next
45. me ERES Places Save as ipe All Files Cancel DISPLAY ett 1153 USER ETT_115 HOSTH AME ett 115 Picture 3 1 11 12 When click Save File completely the window Success appears instantly as shown in the picture DISK SERIAL NUM fsbd4325 Picture 3 1 12 3 1 13 in this case 1t means that the process of saving 1s success Finally click OK SUCCESS Cosmic 327K Compiler Registration A Write was successfull HOSTNAME ett 115 DISK_SERISL_NUM febd4325 User Jettt13 Company ett Address es Picture 3 1 13 Country Thailand Phone Ue Fax Optional 027121120 Register by Email Edit Email and Register E Cancel required amp Picture 3 1 14 ETT CO LTD 4 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP err www ett co th 13 After clicked OK window Registration appears again as shown in the picture 3 1 14 then click Cancel 14 Then the window in the picture 3 1 15 appears again click Finish it means that the process of installing program is complete COSMIC STM8 32K C Compiler InstallShield Wizard InstallShield Wizard Complete The COSMIC STM8 32K Compiler has been successfully installed The Compiler Users Manual and the Idea QuickStart s manual are located in C Program Files cos SMIC C STMR 32K DOCS These files require the Adobe Acrobat Reader which can be downloaded from v adobe co
46. n wre ontact Cosmic Support Setup has finished installing the COSMIC STM8 32K Compiler on your computer InstallShield Picture 3 1 15 15 After installed program completely ICON B will be displayed on the Desktop user does not run or set any value because we use the part of Compiler of Cosmic only 16 Register the Compiler that has already been installed and user can compile 32Kbyte Data If user has not registered yet the Error will be occurred when writing and compiling program When user registers it needs to send and attaches file register txt that has been saved to Email stm8 32k cosmic fr see more detail of Email in the picture 3 1 12 if user sends 16K it maybe use another Email Example of sending Email to register is shown in the picture 3 1 16 in this case user types address added file and then press Button Send instantly ETT CO LTD eT WWNW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th To stm 32ki amp cosmic fr 2 Subject register stm amp 32k lll Total size 0 4 KB of 10 0 MB register txt 0 4 KE 5 sal Verdana 7 10 B d 1 LI LJ HI ni I i Ii t ili gt 4 E Picture 3 1 16 17 After sent Email to register completely user needs to wait for a day and will receive the Email that has attached file license lic The feature of Email that is responded to user is shown as in the picture 3 1 17 RE Register stm8_32 Fro
47. nstallShield Wizard License Agreement Please read the following license agreement carefully COSMIC Software Inc Licensing Agreement THIS AGREEMENT REPRESENTS hoe ENDRE AGREEMENT SMIC AND IT SUPERSEDES ANY THIS PACKAGE CONTAINING THE PRODUCT YOU ARE PTING AND AGREEING TO THE TERMS OF THIS AGREEMENT IF YOU ARE NOT WILLING TO BE BOUND BY THE TERMS OF THIS AGREEMENT PROMPTLY RETURN THE UNOPENED PACKAGE AND YOU WILL RECEIVE A REFUND OF YOUR MONEY LICENSE This Agreement grants you a non exclusive non transferable fight to use the media and computer software contained therein collectively referred to as the Software the hardware contained therein if any referred to as the Hardware and the accompanying User Documentation for your own internal business purposes only as authorized in this Agreement The software may be used only on ONE COMPUTER owned leased or controlled by you Neither concurrent use on two or more computers nor use in a local area network or other network is authorized without the advance written consent of COSMIC and the payment of additional license fees Y ou agree that you will not assign sublicense inte lease loan distribute or share your rights to the Product You may not modify adapt alter translate decompile disassemble reverse engineer or create derivative works based on the Product BACKUP Except as authorized under this paragraph no copies of the Product may be made you may copy th
48. nstrator ETT CO LTD ads WWNW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th DB9 Female To PC Picture 5 2 3 displays how to interface Cable Download Comport PC with Connector UART1 of board 0 0 0 0 0 oT HHHHHHHHHHHBHHHHHHHHHHHHHHHHHHHHE THE EN DfEE PEPE ANANN ETT CO LTD 43 WWW ETT CO TH El www ett co th User s Manual of Board ET BASE STM8S208 ET STM8S STAMP Actual size of Board ET BASE STMSS ET STM8S STAMP 52 00mm A r pi C N E W b d E W e x Ta p C en C C b d N e e d e x Un A gt b d W Ls N Y amp e i amp r 6 e r m ido B if Q m gt en Q y Q E d Q e p gt f e m en e m y Q fa me 20 0i TO l0 RESET z BA KA 6 6 MI s 0 S N e E E pnl So 6 e VDD e SWIM P e GND MOL PBT LSI RST BI M S b IFRBI Green PHO T wi Lm RED VDD 3V3 5V VDD MN GND WLUQ9 SE VDD e 24MHz en ium E c 5 bs d 5 uia a e ea p gt aa b d za e za 5 if m 5 MZ yani t 5 e ea p gt 9 zC p gt bs d 4 s E a 2 y TC A E eo e e OC OC OC OC OC 7e 9 E ea
49. ode Data into the memory of MCU and set Option Byte for MCU only It 1s unlike Program STVD so it is unable to write program If user wants to download program into MCU user can choose program that requires downloading as preferred summarize Processes of Using Program STVP 1 Interface 5V Power Supply with board interface Programmer Device with Port USB of PC and interface all 4 Cables from Connector Swim of Programmer Device with Connector Swim of Board ET STMSS Read more information about how to interface Cable between Board ET STMSS and Programmer Device from Section 5 Programmer Device for Download and Debug 2 Run Program STVP and it will display window as shown in the picture 4 2 1 ETT CO LTD 32 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th no project STVP File Edit Project Configure Read Program YWerFy Erase Blank Check View Help we tS m EE Wh d dh a PROJECT no project E 5 COHFIGURATION Hardware ST LIHE Programming mode SWIM Device name STH85208HB Port USB PROGERAH HEHOERTY Status 0008000 zx 027FFEFE Ho File Hot programmed Memory checksum O20 DATA HEHORY Status O 2O004000 nxunmna7FF Ho File Hot programmed Memory checksum 0x0 OPTION BYTE status Ho File Hot programmed j byte byte 1 byte byte byte byte byte byte Y byte amp checksum PROGRAM HEMORT
50. onsole CxIEpu IE Picture 4 1 11 displays results of compiling program without any error 11 When the process of compiling is successfully next it downloads program into Board ET STMSS It has to interface 5V Power Supply with board interface Programmer Device with Port USB of PC and ETT CO LTD 3 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP er www ett co th interface 4 Cables from Connector Swim of Programmer Device to Connector Swim of Board ET STMSS Read more information about how to interface Cable between Board ET STMSS and Programmer Device in the Section 5 Programmer Device for Download and Debug 12 After interfaced Cable Download completely click Button Start Debug to download program Window Loading appears as shown in the picture 4 1 12 and it will close automatically when the process of downloading program into board is completely Please wait Restoring contest E Picture 4 1 12 displays Window Loading to show the process of downloading program 13 Click Button Stop Debug then program that has been loaded into board will be run automatically We only describe how to use Program STVD briefly user can read more information of this program from File MANUAL STVD 7705 pdf inside Folder according to Link Tool Editor STVD415 STVP320 5 T 4 2 How to use Program STVP ST Visual Programmer E il This program is used to download Source C
51. rnal Dependencies Xe E ee RO Counts E i el alih at engo for i O i lt count i for j 0 jecount j atm sz085 el lf O error s O warning is Build Tools Find in Files 1 Find in Files 2 Debug 4 Console For Help press F1 ILn 10 Col 59 MODIFIED READ CAF NUM SERE OYRA Picture 4 1 1 displays the feature of Program STVP Before start writing program user needs to understand how to create Project well Normally if it is MCU from other companies it usually has wizard that helps user to create project but this program has Template Project instead It means that there 1s a blank Project that has already linked each file together so user only copies and uses it instantly There are 2 Template Projects that are provided in CD from ETT and from ST For the Template Project from ETT it removes the unrelated MCU Numbers so there is only MCU No STMSS208 For the Template Project from ST it 1s Full Option Template that includes many MCU numbers so user can choose the preferable MCU Numbers In this case we only refer to Template Project from ETT to write program ETT CO LTD 2235 WWNW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th Elements in Folder ETT Template When user double clicks this folder there are 2 parts as follows 1 Folder library It stores File Library Function of MCU so user can call functions inside this folder easily The Library that is provided is vers
52. s Licensed Software You are agreeing to be bound by the terms and ett conditions of this License Agreement Do not use the Licensed Software until You have read and agreed to the following terms and conditions The use of the Licensed Software implies automatically the acceptance of the following terms and conditions Please Install this application for indicate your acceptance or NON acceptance by selecting ACCEPT or DO NOT PP ACCEPT as indicated below in the media Anyone who uses this computer al users C Only for me ett113 Do you accept all the terms of the preceding License Agreement If you choose No the setup will close To install Flash Loader Demonstrator V 2 1 0 you must accept this agreement lt Back Cancel Picture 3 3 4 Picture 3 3 5 4 The window in the picture 3 3 6 appears choose the location to install program in this case click Next gt instantly because it 1s better to use Default value and does not edit any value Then the window in the picture 3 3 7 appears and it starts Setup Program InstallShield Wizard InstallShield Wizard Setup Status Choose Destination Location Select folder where Setup will install files Setup will install Flash Loader Demonstrator V 2 1 0 in the following folder Flash Loader Demonstrator V2 1 0 Setup is performing the requested operations Ta install to this folder click Next To install to a different folder click Browse and select another fo
53. s ozl Lzad 108 2zW La3d 009 19 SH 03d 022 y2 NIAE HAIL ZHO SAWIJI XL eluvrysad d338 LHO ZWI L SH rad 413 oavlzHO zMWI L SH SHO ZWIL HHO SWILASH WIAASH SH SH OSIIN IdSASH ISOW_IdSASH MOS IdS SH VYHO LNILL SH LHO LALLASH LOd INSHO_LWIL zNIV Z8d Fe NZHO HAIL LNIV Ldd gah CC vt dVOATS NLHO L3WWI L ONIV OSd 32 LLuvrv SH evd er 3 92 XL LLuvrv SH evd HE S ede OKU LLSVO GHrvd FOL 2s e LHO ENL SHO ZWI L evd 6 S exse INODSO C d NIDSO LVd FZ ISHN Ho HAIL 20d Feg _ 4392 xu e1uvryedd Fe7 _ 208 4nL0 08d Yd Vd 7 dnp 0 02C I mR CM Lagay Q31 dnp o WWW ETT CO TH S jan0 anyo 3 015 e lt GdA mah V OGA t of Board ET STMS8S STAMP ON d z 3 Q un 2 S P gt e pnm E A U Q pa Q e pum jah dno C H3S3H MS eO V OOA ETT CO LTD
54. t is set correctly In this case it compares the data that 1s read with the Default value as shown in the picture 4 2 3 a STH8S208MB Ame dh a W alue rm DO DO 00 00 Ba 00 00 55 Description ROF Read Out Protection OFF UBC bit D UBC bit D UBC bitb D UBC bit D UBC bits D UBC bik D UBC bit D zi r AFH Port 04 Alternate Function Tih CC AFHB Port B5 Alternate Function AINS Part B4 Alternate Function IN 4A AFARS Port B3 Alternate Function AIM3 Port B2 Alternate Function amp IM Port B1 Alternate Function AINT Port B A AFR4 Port OF Alternate Function TLI AFH3 Port DU Alternate Function Tika CC AFHZ Port DU Alternate Function Tika CE2 AFR1 Part amp 3 Alternate Function The CCS Port D2 Alternate Function TlM3 CO AFRO Port D3 Alternate Function TIM CC LS _EN LSI Clock not available as CPU clock source WD Hw Independant Watchdog activated by Software Wi DG Hw Window Watchdog activated by Software WowDG HALT No Reset generated on HALT i DI active EXTCLK External Crystal connected to Q 5 CIN ADS COLIT LRAWwLSEL LS clock source selected for AWL PRSC 2 4hMHz to 128KHz Prescaler HSECNT bit D HSECNT bit6 D HSECNT bit D HSECNT bit4 D HSECNT bita D HSECNT bit D HSECNT bit D HSECNT bit D Reserved Reserved WAITESTATE No wait state BOOTLOADER ENABLE BootLoader Enabled PROGRAM MEMORY amp DATA MEMORY OPTION BYTE 4
55. talling any Driver because ST LINK finds Driver automatically It is compatible with Window XP Window7 moreover it 15 compatible with 2 versions of ETT Board Programs that are compatible with ST LINK are STVP and STVD they are used to download and debug including set Option Byte ETT CO LTD 39 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP er www ett co th Picture 5 1 1 displays Tool ST LINK How to interface 1 Interface Cable USB between ST LINK and PC 2 Interface Cable Connector that is provided with ST LINK with the outer row of Connector of ST LINK as shown in the picture 5 1 1 3 Interface all 4 Cables 1 VCC 2 SWIM 3 GND and 4 RST that are interfaced with Connector of ST LINK with Connector SWIM Download of Board STMS User requires interfacing connectors as following 1 VDD 2 SWIM 3 GND and 4 RESET respectively 9dd Fddycdd 0dd 9Id I A V L8 fae 7E WAN 18S208 lt n BC amp T N d SSA dVOA AAA rVd 9 Connector SWIM ET BASE STM8S208 Connector SWIM ET STM8S STAMP Picture 5 1 2 displays Connector SWIM of Board ET BASE STM8S208 ET STM8S STAMP 4 Open Program STVP or STVD to download code into MCU user can read more information of using program from Section 4 1 and 4 2 How to use Program STVD and STVP ETT CO LTD 40 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP err www ett co th 5 2 Programmer STM8S DISCOVERY
56. the Voltage Level to supply to MCU and Connector PORT instead because this MCU can be used with both 3 3V and 5V so user can choose the Voltage Level as preferred If user removes the Jumper from board and does not jump any side together there is no any voltage to supply to MCU although it interfaces with Power Supply at Connector Vin See the figure 2 17 below that shows how to set Jumper to choose Voltage Level 3V3 3V3 5V 5V A Choose 5 V Power Supply B Choose 3 3V Power Supply Figure 2 17 displays how to set Jumper to choose the Power Supply either 5V or 3 3V 19 Vin It is Connector 5V Power Supply 2PIN for board as shown in the figure 2 18 When it interfaces 5V Power Supply with board user has to set Jumper No 18 to any side as preferred to choose the Voltage Level to supply to MCU and devices on board However user has to be careful of cathode and anode please see the position of Connector Power Supply in the figure 2 18 ETT CO LTD 8 WWW ETT CO TH User s Manual of Board ET BASE STM8S208 ET STM8S STAMP erm www ett co th oVDC HEN Figure 2 18 displays the position of Connector Power Supply for board 20 LED PWR It is red LED to display the operating status of Power Supply for board If it interfaces Power Supply with Connector Vin No 19 it always makes LED PWR ON 21 LED NSS It is green LED to display the operating status of Pin SPI NSS Shift Select When it sends signal SPI NSS as
57. then the window in the picture 3 2 3 appears and shows the process of Extracting data ai ST Toolset InstallShield Wizard bs lt 4 ST Toolset InstallShield Wizard Welcome to the InstallShield Wizard SEC un Por T THN et The contents of this package are being extracted or o0I5e The InstallShield wizard TI will help install ST Toolset an Please wait while the InstallShield Wizard extracts the Files needed to install 5T wour computer To continue click Next Toolset on your computer This may bake a Few moments 1 Extracting datai cab InstallShield Cancel 0 Back Picture 3 2 2 o Picture 3 2 3 Cancel 3 When the process of extracting data is complete the window in the picture 3 2 4 appears if it has not installed Program Acrobat Reader in PC yet don t mention it user can click OK instantly Then the window in the picture 3 2 5 appears click Next gt ST Toolset InstallShield Wizard ST Toolset InstallShield Wizard Preparing Setup Please wait while the InstallShield Wizard prepares the setup Welcome to the InstallShield Wizard for 5T Toolset ST Toolset Setup is preparing the InstallShield Wizard which will guide you through the rest of the setup process Please wait The InstallShield Wizard will install ST Toolset on your computer To continue click Next The setup can not find Acrobat Reader This program is required to read the release notes
58. wvwector C A stm8s it c 24 Bvoss delay int count Sy External Dependencies a Et E 26 166 ea Kena x2 E mods h i 27 for i O0 i lt count i stm s h E 1 ru 3 stm8s gpio h zn or j 0 jcecount j stm8s_type h stm8s conf h 19 PREREREREEOOSRERSNRREEREREEERRAREARAAERERERRERERREERESZRRALZALE SRE ER REEL SE EE LI 21 include stmS8s h 31 void main void 32 t 33 whileii 34 E i 36 GPIO DeInit GPIOA Reset Output Data Data 37 GPIO Init GPIOA GPIO PIN ALL GPIO MODE OUT PP LOW FAST 38 while i 40 GPIO WriteLow GPIOA GPIO PIN ALL 2 write data Oki 41 delay 200 2 Delay 42 GPIO WriteHigh GPIOA GPIO PIN ALL write data OxFF t 43 delay 200 a I y SL Ha 58 void assert failed u6 file u32 line inj t Workspace main c stm8s conf h Picture 4 1 10 displays Tab File main c for writing program 10 After wrote program successfully click Button Rebuild AII ES to compile the written program and check whether there is any error When the process of compiling is successful it displays message in the Window Build as shown in the picture 4 1 11 clnk m Debug stmBsz G map l C amp Program Files COSMIC CESTMG evdwart Debug stmas206 sm8 Running Post Build step chex o Debug stm s208 3819 Debugstmasz s sma stmeoszald8 elf erroar s UO warning 3s 4 JU Build Tools Find in Files 1 Find in Files 2 Debug 5 C
Download Pdf Manuals
Related Search
Related Contents
Event Processing Applied to Streams of TV Channel Zaps and Tradutor Global 15 Línguas - Franklin Electronic Publishers, Inc. BS 60-4s - Wacker Neuson Samsung GT-E1150I Instrukcja obsługi SV9000 AF DRIVES - ElectricalManuals.net MーTSUBーSHー Product Manual - Northland Construction Supplies Sch./ Ref./ Réf./ Karte/ Ref. 1092/104 Mod. 1092 Communiqué Brésil.pub Copyright © All rights reserved.
Failed to retrieve file