
SYS-405/Configuration
v1.0
www.winsystems.com
Page 13
8.3.2 Example Code: Basic
The following code example for the watchdog timer is written in Basic:
8.4 Connectors
8.4.1 SATA Power (J1)
Power is supplied to the SATA device via the connector at J1.
Layout and Pin Reference:
WinSystems cable CBL-PWR-117-12 simplifies this connection to the board.
Additional Information
This connection is a Molex 22-11-2042.
3 PRINT TIME$;" ";DATE$
4 O=VAL(RIGHT$(TIME$,2))
5 C=&H66:D=&H62:W=&H81:R=&H80:TRON
6 P=INP(C): IF (P=0) THEN GOTO 10 ELSE IF (P=1) THEN PRINT INP(D) ELSE
IF (P=8) THEN OUT D,6: GOTO 200
7 GOTO 6
9 REM write reg 08 with 05
10 TROFF
11 IF (INP(C)=0) THEN OUT C,W ELSE GOTO 11
20 IF (INP(C)=8) THEN OUT D,8 ELSE GOTO 20
30 IF (INP(C)=0) THEN OUT D,O ELSE GOTO 30
39 REM enable dog
40 IF (INP(C)=0) THEN OUT C,W ELSE GOTO 40
50 IF (INP(C)=8) THEN OUT D,6 ELSE GOTO 50
60 IF (INP(C)=0) THEN OUT D,1 ELSE GOTO 60
69 REM read counter
70 IF (INP(C)=0) THEN OUT C,R ELSE GOTO 70
80 IF (INP(C)=8) THEN OUT D,8 ELSE GOTO 80
90 IF (INP(C)=1) THEN T=INP(D) ELSE GOTO 90
100 IF (T<>T2) THEN PRINT T;: T2=T
110 FOR X=1 TO 10000: NEXT: GOTO 70
200 IF (INP(C)=1) THEN PRINT INP(D);"*" ELSE GOTO 200
210 GOTO 10
Pin
Name
1
+5 V
2
GND
3
GND
4
+12 V
1
4