Download IDB-ST7FLITE2 User's Manual
Transcript
SofTec Microsystems IDB-ST7FLITE2 Evaluation Board For STMicroelectronics ST7FLITE1/LITE2 FLASH Families User’s Manual 1. Introduction Overview The IDB-ST7FLITE2 Evaluation Board demonstrates the capabilities of the ST7FLITE1/LITE2 FLASH microcontrollers. The IDB-ST7FLITE2 Evaluation Board can be used as a standalone application or with an emulator system, such as inDART-STX, through an ISP connection. Board Features The IDB-ST7FLITE2 Evaluation Board has the following hardware features: SofTec Microsystems E-mail (general information): [email protected] E-mail (marketing department): [email protected] E-mail (technical support): [email protected] Copyright © 2003 SofTec Microsystems® DC00689 Web: http://www.softecmicro.com Important SofTec Microsystems reserves the right to make improvements to its products, their documentation and software routines, without notice. Information in this manual is intended to be accurate and reliable. However, SofTec Microsystems assumes no responsibility for its use; nor for any infringements of rights of third parties which may result from its use. SOFTEC MICROSYSTEMS WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA, PROFITS, USE OF PRODUCTS, OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSI BILITY THEREOF. Trademarks inDART is a trademark of SofTec Microsystems. Microsoft and Windows are trademarks or registered trademarks of Microsoft Corpora tion. PC is a registered trademark of International Business Machines Corporation. Other products and company names listed are trademarks or trade names of their respe ctive companies. IDB -ST7FLITE2 User's Manual 1. An ST7FLITE2 microcontroller (in DIP20 package—in addition, you can also use any of the LITE1/LITE2 family devices in DIP20 package); 2. 3. A standard ICP connector; Eight jumpers to connect/disconnect each of the eight LEDs to/from their respective Port A/B pin; 4. 5. Eight high-efficiency (low-current) LEDs connected to Port A/B; A potentiometer, together with a jumper to connect/disconnect it to/from PB5; 6. 7. 8. A push-button switch connected to RESET; A push-button switch connected to PA7; Four jumpers to select the microcontroller’s clock source. 9. A connector for a 9-12 V, 200 mA power supply; 10. A connector area to access the I/O pins of the microcontroller for expansion prototyping; 11. A prototyping area. 9 11 10 2 8 1 6 3 7 4 5 The IDB-ST7FLITE2 Demo Board Supported Devices The IDB-S T7FLITE2 Evaluation Board supports the following DIP20 devices: § § § ST7FLITE10; ST7FLITE15; ST7FLITE19; § § § ST7FLITE20; ST7FLITE25; ST7FLITE29; § And any future LITE1/LITE2 pin-to-pin compatible device. Page 2 IDB -ST7FLITE2 User's Manual Recommended Reading § § ST7 Family 8-Bit MCUs Programming Manual; ST7 Family Data Sheets; § § inDART-STX for ST7 User’s Manual; inDART-STX for ST7 User’s Manual Addendum. 2. Getting Started Overview The IDB-ST7FLITE2 Evaluation Board can be used in conjunction with a ISP-based emulator/programmer, such as SofTec Microsystems’ inDART-STX In-Circuit Debugger/Programmer. If you use the evaluation board with SofTec Microsystems’ inDART-STX, a sample application is provided. The sample application configures the A/D peripheral to convert on the A/D channel connected to the potentiometer and displays the results on the LEDs. You can use inDART-STX together with STMicroelectronics Visual Debug (STVD7) to debug the application by, for example, execute the program step by step and watching how the microcontroller registers vary. Preliminary Operations Before to try out the sample application, you must verify that both the inDART-STX and the evaluation board are correctly set up. 1. Ensure that inDART-STX is connected to the PC (via the USB cable) and to the demo board (via the ISP connector). 2. Make sure that the “OSCILLATOR” jumpers on the demo board select the “OSC_CLK on PB4” position (jumpers J4 and J7 inserted, jumpers J5 and J6 removed). 3. Make sure that all of the “LED ENABLE” jumpers (J9) and the “POTENTIOMETER ENABLE” jumper (J8) are inserted. Make sure that the sample device is in the appropriate socket on the board. Finally, power up the evaluation board. The power connector accepts 9-12 V DC, 200-mA wall plug-in power supply with a 2.1 mm pin and sleeve plug with positive in the center and sleeve as ground. Upon powering up the board, the green “POWER” LED turns on. 4. Running the Sample Application 1. 2. Run the STVD7 user interface. From the STVD7 main menu, choose File > Open Workspace. Select the “adc.wsp” workspace file that is located under the “\Program Files\SofTec Microsystems\inDARTSTX\ST7\STVD7\Samples\Asm\LITE2\Adc” directory. Click “Open”. 3. The application has already been assembled and the executable file generated. From the main menu, choose Debug > Start Debugging. From the main menu, select Debug > Run. The program will be executed in real-time. Please note that the “BUSY” LED on the inDART-STX unit turns on. 4. Page 3 IDB -ST7FLITE2 User's Manual 5. By rotating the potentiometer on the demo board, you affect the results of the A/D conversion, and the binary value of each conversion is displayed on the LEDs. 6. When you want to stop the sample application, select Debug > Stop Program from the STVD7 main menu. Page 4 VSS 4K7 R2 VSS J3 2 4 6 8 10 12 14 16 18 20 19 20 1 2 3 4 5 17 2 4 6 8 10 PB1 PB0 RESET# VDD VSS OSC1 OSC2 PA0 PA1 PA2 ST7FLITE2 VSS RESET# PB0/AIN0/SS# PB1/AIN1/SCK PB2/AIN2/MISO PB3/AIN3/MOSI PB4/AIN4/CLKIN PB5/AIN5 PB6/AIN6 VDD U1 MCU OSC2 CLKIN/OSC1 LTIC/PA0(HS) ATIC/PA1(HS) ATPWM0/PA2(HS) ATPWM1/PA3(HS) ATPWM2/PA4(HS) ATPWM3/ICCDATA/PA5(HS) MCO/ICCCLK/BREAK/PA6 PA7(HS) www.softecmicro.com ICP INTERFACE ICCDATA ICCCLK RESET VSS 16 RESET 18 PB0 PB1 PB2 PB3 PB4 PB5 PB6 ICP CONNECTOR J1 1 3 5 7 OSC_CLK 9 VDD RESET# C5 100nF + C6 10uF VDD 1 3 5 7 9 11 13 15 17 19 SIGNAL PINS PB2 PB3 PB4 PB5 PB6 PA7 PA6 PA5 PA4 PA3 OSC2 OSC1 15 14 PA0 PA1 PA2 PA3 PA4 ICCDATA ICCCLK PA7 13 12 11 10 9 8 7 6 9-12V J2 D1 VSS 4K7 4K7 C1 SW1 RESET PA5 PA6 GF1M ID: SD00296 RESET# R3 R4 VSS 1 2 3 10uF + C2 100nF VIN U2 78M05 VOUT 3 PA7 VSS 2 2 2 2 J4 OFF ON OFF OFF J5 ON OFF OFF OFF J6 OFF OFF ON OFF VSS 1 IDB-ST7FLITE2 PB5 2 ENABLE J8 J7 ON ON ON OFF OSC_CLK 100nF 470R R1 OSCILLATOR INPUTS SW2 PA7 J7 J6 J5 J4 C4 VDD OSCILLATOR TABLE 1 1 1 1 10uF C3 + OSC_CLK on OSC1 OSC_CLK on PB4 Internal RC USER OSC2 OSC1 PB4 POWER SUPPLY 1 GND 2 VSS VDD P1 PB5 1K POWER LD1 PB3 PB2 PB1 PB0 PA3 PA2 PA1 PA0 2 4 6 8 10 12 14 16 LED ENABLE J9 1 3 5 7 9 11 13 15 Q1 BSS138 Q2 BSS138 Q3 BSS138 Q4 BSS138 Q5 BSS138 Q6 BSS138 Q7 BSS138 Date: 13/01/2003 OUTPUTS VSS R5 10K R7 10K R9 10K R11 10K R13 10K R15 10K R17 10K R19 10K Q8 BSS138 470R R6 470R R8 470R R10 470R R12 470R R14 470R R16 470R R18 470R R20 VDD Sheet: 1/1 PA0 LD2 PA1 LD3 PA2 LD4 PA3 LD5 PB0 LD6 PB1 LD7 PB2 LD8 PB3 LD9