SofTec Microsystems IDB-ST7FLITE2 User

Copyright © 2003 SofTec Microsystems®
DC00689
SofTec Microsystems
E-mail (general information): info@softecmicro.com
E-mail (technical support): support@softecmicro.com
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; no
r 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 Corporation.
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.
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 microcontrolle rs. 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:
IDB-ST7FLITE2 User's Manual
Page 2
1. An ST7FLITE2 microcontroller (in DIP20 package—in addition, you can also use any of the LITE1/LITE2 family devices in DIP20 package);
2. A standard ICP connector;
3. Eight jumpers to connect/disconnect each of the eight LEDs to/from their respective Port A/B pin;
4. Eight high -efficiency (low-current) LEDs connected to Port A/B;
5. A potentiometer, together with a jumper to connect/disconnect it to/from PB5;
6. A push-button switch connected to RESET;
7. A push-button switch connected to PA7;
8. 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.
1
2
3 4
5 6 7
8 11
10
9
The IDB-ST7FLITE2 Demo Board
Supported Devices
The IDB -ST7FLITE2 Evaluation Board supports the following DIP20 devices:
§ ST7FLITE10;
§ ST7FLITE15;
§ ST7FLITE19;
§ ST7FLITE20;
§ ST7FLITE25;
§ ST7FLITE29;
§ And any future LITE1/LITE2 pin-to-pin compatible device.
IDB-ST7FLITE2 User's Manual
Page 3
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.
4. 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.
Running the Sample Application
1. Run the STVD7 user interface.
2. From the STVD7 main menu, choose File > Open Workspace. Select the “adc.wsp” workspace file that is located under the
“\Program Files\SofTec Microsystems\inDART­STX\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.
4. 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.
IDB-ST7FLITE2 User's Manual
Page 4
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.
1 2
3 4
5 6
7 8
9 10
J1
ICP CONNECTOR
312
J2
9-12V
VIN
1
GND
2
VOUT
3
U2
78M05
C2
100nF
C4
100nF
+
C1
10uF
+
C3
10uF
D1
GF1M
VDD
VSS
PA5
PA6
PA7
PB6
PB5
PB4
VSS
OSC1
OSC2
PA0
PB1
PB0
RESET#
VDD
PB3
ICCCLK
ICCDATA
VSS
VDD
IDB-ST7FLITE2 Sheet: 1/1Date: 13/01/2003ID: SD00296
ICCCLK
ICCDATA
RESET
LD1
POWER
R1
470R
PB2
VSS
OSC_CLK
VSS
16
VDD
17
RESET#
18
PB0/AIN0/SS#19PB1/AIN1/SCK20PB2/AIN2/MISO
1
PB3/AIN3/MOSI
2
PB4/AIN4/CLKIN
3
PA7(HS)
6
MCO/ICCCLK/BREAK/PA6
7
ATPWM3/ICCDATA/PA5(HS)
8
ATPWM2/PA4(HS)
9
ATPWM1/PA3(HS)
10
ATPWM0/PA2(HS)
11
ATIC/PA1(HS)
12
LTIC/PA0(HS)
13
PB5/AIN54PB6/AIN6
5
CLKIN/OSC1
15
OSC2
14
U1
ST7FLITE2
VSS
OSC_CLK
RESET#
VDD
LD9
PB3R19
10K
R20
470R
PB3
PB2
PB1
PB0
PA3
PA2
PA1
PA0
Q8
BSS138
LD8
PB2R17
10K
R18
470R
Q7
BSS138
LD7
PB1R15
10K
R16
470R
Q6
BSS138
LD6
PB0R13
10K
R14
470R
Q5
BSS138
LD5
PA3R11
10K
R12
470R
Q4
BSS138
LD4
PA2R9
10K
R10
470R
Q3
BSS138
LD3
PA1R7
10K
R8
470R
Q2
BSS138
LD2
PA0R5
10K
R6
470R
Q1
BSS138
VSS
VDD
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
J9
LED ENABLE
PB3
PB2
PB1
PB0
PA3
PA2
PA1
PA0
+ C6
10uF
C5
100nF
VSS
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
17 18
19 20
J3
SW2
PA7
PA7
PA7
VSS
SW1
RESET
RESET#
PA3 PA2
PA4 PA1
PB6
PB5
PB4
PA4
P1
PB5
VSS
VDD
PB5
POWER SUPPLYSIGNAL PINS
ICP INTERFACE
OSCILLATOR
OUTPUTSINPUTS
MCU
1 2
J8
ENABLE
1K
R4 4K7
R3 4K7
PA5
PA6
R2
4K7
RESET
VSS
OSC1
OSC2
PB4
OSC1
OSC2 J4 J5 J6 J7
OSC_CLK on OSC1
OSC_CLK on PB4
Internal RC
USER
OSCILLATOR TABLE
1 2J41 2J51 2J61 2
J7
OFF ON OFF ON
ONONOFF OFF
ONON OFFOFF
OFFOFF OFFOFF
www.softecmicro.com
Loading...