Advantech TPC-1260 manual Watchdog timer programming example, Clear the watchdog timer

Page 62

B.1 Watchdog timer programming example

The watchdog timer built in the TPC-1260 is a useful aid to reduce system down time-especially for those operating systems not reliable enough. There is a counter inside the watchdog timer. If the system does not constantly clear the counter within the timeout period, the watchdog timer would initialize a system reset.

The following example program in assembly language gives hint to utilize the watchdog timer under operating systems such as DOS, Windows 9x/NT, etc.

Step 1: activate the watchdog timer

mov dx, 404Ch

in

al, dx

 

and

al, NOT 80h

; GPO7 to low

out

dx, al

 

Step 2: clear the watchdog timer

 

mov

dx, 404Ch

 

in

al, dx

 

or

al, 80h

; GPO7 to high

out dx, al

Step 3: re-trigger the watchdog timer

If the timer will not count the GP07 is kept high. To re-trigger the watch- dog timer:

mov

dx, 404Ch

 

in

al, dx

 

and

al,

NOT 80h

; GPO7 to low

out

dx,

al

 

Notice:

the utility to enable/disable the watchdog timer under

 

Windows CE is built in the Advantech Windows CE

 

for TPC-1260.

5 4 TPC-1260 User's Manual

Image 62
Contents TPC-1260 Copyright notice Acknowledgments Packing List FCC Class a Safety Instructions Wichtige Sicherheishinweise Contents Figures Tables Page General Information Introduction Specifications 2 I/O portsSafety and environment StorageLCD specifications LCD MtbfI/O ports arrangement Touchscreen specificationsPower Mounting Panel mountingWall mounting/desktop stand Exploded diagram 1Exploded diagramDimensions and cutout 1 Dimensions and cutoutSystem Quick Starting Unpack the package Install HDD Install CompactFlash memory card Plug the power lines to the system power receptor Turn on the system power switch Engine of the TPC-1260 CPC-2365 main board Label FunctionConnector pin assingments TPC-1260 I/O board 1 TPC-1260 I/O board I/O port side2 TPC-1260 I/O board LCD side 1 TPC-1260 I/O board connector/jumper list Windows CE in the TPC-1260 1 Windows CE on TPC-1260 Screen saver TPC-1260 utilitiesSoft-keyboard Watchdog timer 2 Screen saver settingNetworking Networking via Ethernet2 Neworking by Windows Explorer Networking via serial port 3 Remote networking4 Make new connection 6 Default settings System requirements Application program developmentWeb browser 1 Flow-chart of building Windows CE runtime Building Windows CE runtimePage System Tuning LCD contrast tuning LCD brightness tuningWindows CE Touchscreen calibration1 DOS/Windows Family Double-click Windows Explorer 4 Calibration When calibration is done the utility will save the settings System Tune Up Page Maintenance CPU board replacement 1 CPU board cover3 Remove the CPU board Fuse replacement 1 Replace the fuseSerial Port Settings Serial Port Settings Baud Rate Settings SW1Data Format/RS-422 Control Settings Page Watchdog Timer Programming Example Watchdog timer programming example Clear the watchdog timerWindows Touch Screen Installation Touchscreen driver in Windows Figure C-1 HardwareClick the Device Manager… button Figure C-3 Uninstall the driver Figure C-4 Mouse properties Go to the Driver page, and click the Update Driver button Figure C-6 Select driver from known list Manufacturers list, find out and select Touch- Screen Figure C-8 Re-install the driver Figure C-9 Finish installation of touchscreen driver Fuse Specifications Fuse Specifications Fuse used on the TPC-1260 is