ST7FLCD1 JIG BOX - application notes

87 downloads 275 Views 234KB Size Report
The purpose of this application note is to guide monitor application personnel in using the. ST7FLCD JIG box for code updating and debugging. The ST7 Jig Box  ...
AN1991

AN1991 ST7 JIG BOX FOR LCD MONITOR APPLICATIONS APPLICATION NOTE

INTRODUCTION The purpose of this application note is to guide monitor application personnel in using the ST7FLCD JIG box for code updating and debugging. The ST7 Jig Box is a low cost multi-purpose development and it comprises three connectors, two finger switches, one header, one battery, and up to six EEPROM. The Jig Box can be used with its application tools

For different panels, or resolutions, you can load different firmware on the EEPROM with this setting. The Jig Box enables you to debug, and tune the performance on screen. In stand alone mode ( Flash GUN FUNCTION ), the Jig Box can be used to download firmware in the ST7 embedded Flash without connecting to a PC. JIG box schematic and layout files are also included in this application note.

to connect any LCD monitor via the D-Sub connector directly for building the ST7FLCD micro-controller. TheJig Box can connect to a PC via the LPT port, which also connects to a pattern generator and LCD monitor synchronously by two 15 pins D-Sub

FEATURES • Flash Gun function: ST7 code update without PC or programmer. • Six ST7 code storage: (64Kbyte X 6). • In Application programming. • On Line Debugging. • Debug Port: access to MCU/ADE3800 directly.

connector. Then it is possible to link the pattern generator and LCD monitor synchronously.

June 2004 This is preliminary information on a new product. Details are subject to change without notice.

1/11

AN1991

1. BOARD OVERVIEW Placement:

SW1

CN2

SW2

Battery AAA x 3

JP1

CN1

CN3

U1

U2

U3

U4

U5

U6

Graphics: Top

Bottom

June 2004 This is preliminary information on a new product. Details are subject to change without notice.

2/11

AN1991 Equipment Description: • RS232 cable • 1.5V battery x 3 • Firmware • ST7_ISP_Multi programming • LPT parPort driver (for first time user ) Connectors:

• CN1: DB-25 Male: Connects to PC LPT port. • CN2: DB-15 Female/Right Angle: Connects to destination monitor. • CN3: DB-15 Female/Vertical: Connects to signal source, PC VGA port or pattern generator. • JP1: Header 1x4: Connects to scaler board. Switches: SW1: • Sub-switch1 and 2 are used to open/close the DDC connection between CN2 and CN3. • Sub-switch3 is used to turn on/off all of the E2prom U1~U6 power supply from the battery. SW2:

• Sub-switch1~6 are used to open/close SCL for U1~U6 individually. (i.e. Sub-switch 1 for U1, sub-switch2 for U2,…) • Sub-switch7 is used to open/close SDA for all of U1~U6.

June 2004 This is preliminary information on a new product. Details are subject to change without notice.

3/11

AN1991

2 OPERATION Hardware connection: 1. 2. 3. 4.

Connect the Jig Box to the PC via the LPT port Connect the Jig Box to the Monitor via the VGA connector Connect the Jig Box to the pattern generator via the VGA connector Place three 1.5 voltage battery in the battery case.

Driver installation: For first time users with an OS above Windows 98 (Windows 2000, NT, and XP) please follow this procedure. Windows 98 users, please skip it. This implement takes the LPT port as the output, so Windows 2000, NT, or XP users please execute “setup.exe of the LPT parPort Diver” to release the right to use this port first (due to this port being restricted by the OS). Flash Gun: The Flash Gun function enables users to load the firmware to the monitors EEPROM without connecting to a PC, after it loads the firmware to the Jig Box EEPROM. 1 2 3 4 5

Put three 1.5 voltage battery in the battery case. Turn on SW1 channel 3. Select the EEPROM which you intend to load your firmware by SW2 from channel 1 to 6, and turn it on (the Jig Box is capable of expanding the EEPROM up to six.). Turn on SW2 channel 7 for the IIC data. Start to store code in the Jig Box by following the instructions below:

Store code in the JIG box: 1

Click the “Open” icon to open file, and type the password “ST” in the block of Step 2: ISP/DDCCI Password.

June 2004 This is preliminary information on a new product. Details are subject to change without notice.

4/11

AN1991 2

Select the destination E2prom you want to store. U1Æ A2, U2Æ A4, U3ÆA6,

U4ÆA8, U5ÆAA, U6ÆAC, AE is blanking.

3

Click “Quick View” to see the content of the selected E2prom.

June 2004 This is preliminary information on a new product. Details are subject to change without notice.

5/11

AN1991 4

Click the “Dump to JIG” icon to save the code in the selected E2prom. The running numbers will be shown on the left-bottom of the PC software.

Load the JIG box code to MCU: 1 2 3

4

Un-plug the JIG box from the PC. Connect CN2 on the D-sub VGA cable of the monitor. Select the code you want to load to ST7FLCD1 by sub-switch1~6 of SW2. Un-loaded codes need to be switched off. For example: if you want to load U2 (A4) code to MCU, then turn on sub-switch3 of SW1 and sub-switch2, 7 of SW2. Turn off/on the monitor once. Then, the code will be automatic programmed in the MCU. After code up-load completes, the LED also stops blinking. It might take 45 seconds for code loading to complete.

June 2004 This is preliminary information on a new product. Details are subject to change without notice.

6/11

AN1991 In Application Programming: Purpose: For data transfer by DDC line to the ST7FLCD1 directly. 1 2 3

Leave all of the sub-switches off (open) for SW1 and SW2. Connect CN1 to the LPT port of the PC, CN2 to monitor D-sub VGA cable. Click “Open” icon to open file.

4

Enter password, “ST” is used for all ST demo sets. This may be customized for different brands/models.

June 2004 This is preliminary information on a new product. Details are subject to change without notice.

7/11

AN1991 5

Click “AUTO” icon, then you can see the running number on the bottom-left of the PC software.

On Line Debugging: CN1 connects to the LPT port of the PC, CN2 connects to the D-sub VGA cable of the monitor, CN3 connects to the signal source (PC or pattern generator). Switch off all of the sub-switches of SW1 and SW2. The user can access every block via different sheets. Just fill in the register value you want to put in.

Debug Port: access MCU/ADE3800 directly To avoid long cable connection issues, we reserve a direct access port on the JIG box. This operation is the same as “On Line Debugging” June 2004 This is preliminary information on a new product. Details are subject to change without notice.

8/11

AN1991

3. SCHEMATIC CN2 TO MONITORFemale 11 IAP_SDA 12 HSYNC 13 VSYNC 14 IAP_SCL

2

4 . 3

S. W 1A S. W 1B

.

15

1

CN1 Male CONNECTORDB25 1 6 2 7 3 8 4 9 5 10

RED

BLUE IAP_SDA Q1 3 2N3904 1 2

DDC_5V DSUB_5 DSUB_10

CN3 FROMPCFemale 11 12 13 14 15

13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1

GRN

75 R1

Q2 2 2N3904 1 3

1 6 2 7 3 8 4 9 DDC_5V 5 10

75 R2

IAP_SCL 3 C 2N3904 B E 1 2

E2PROM_5V

100k R10/NP

U6 1 2 A0 3 A1 4 A2 GND

100k 100k 100k 100k 100k R9/NP R8/NP R7/NP R6/NP R5/NP

8 VCC 7 /WC 6 SCL 5 SDA

10K R3

SCL6 11 SCL5

9

SCL4

7

SCL3

5

SCL2

3

SCL1

1

24C512 / NP U5 1 2 A0 3 A1 4 A2 GND

8 VCC 7 /WC 6 SCL 5 SDA

24C512 / NP

E2PROM_5V

U4 1 2 A0 3 A1 4 A2 GND

8 VCC 7 /WC 6 SCL 5 SDA

SDA

13

. SW2F . . SW2E . . SW2D . . SW2C . . SW2B . . SW2A .

. SW2G .

12

10K R4

IAP_SCL

10 8 6 4 2

14

IAP_SDA

24C512 / NP DDC_5V

1

D1 BAT54C-GS08 . SW1C .

2

U3 1 2 A0 3 A1 4 A2 GND

8 VCC 7 /WC 6 SCL 5 SDA

24C512 / NP DSUB_5

2

B1 BATTERY

6

1

5

3

3 C BAT54C A A 1 2

1 3

DSUB_10 2 D2 BAT54C-GS08

U2 1 2 A0 3 A1 4 A2 GND

8 VCC 7 /WC 6 SCL 5 SDA

24C512 / NP U1 1 2 A0 3 A1 4 A2 GND

8 VCC 7 /WC 6 SCL 5 SDA

24C512 E2PROM_5V

JP1 1 2 3 4 4 HEADER

IAP_SCL IAP_SDA R11/NP

0ohm

2.54mmpitch

June 2004 This is preliminary information on a new product. Details are subject to change without notice.

9/11

AN1991

4. LAYOUT Top layer

Bottom layer

June 2004 This is preliminary information on a new product. Details are subject to change without notice.

10/11

AN1991

Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics. The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners © 2004 STMicroelectronics - All rights reserved STMicroelectronics GROUP OF COMPANIES Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States www.st.com

June 2004 This is preliminary information on a new product. Details are subject to change without notice.

11/11