AMD TPC-660G manual Example Programs, Enable watchdog timer and set 10 sec. as timeout interval

Page 51

B.3 Example Programs

1.Enable watchdog timer and set 10 sec. as timeout interval ;-----------------------------------------------------------

Mov dx,2eh ; Unlock W83627HF Mov al,87h

Out dx,al Out dx,al

;-----------------------------------------------------------

Mov al,07h ; Select registers of watchdog timer Out dx,al

Inc dx Mov al,08h Out dx,al

;-----------------------------------------------------------

Dec dx ; Enable the function of watchdog timer Mov al,30h

Out dx,al Inc dx Mov al,01h Out dx,al

;-----------------------------------------------------------

Dec dx ; Set second as counting unit Mov al,0f5h

Out dx,al Inc dx In al,dx

And al,not 08h Out dx,al

;-----------------------------------------------------------

Dec dx ; Set timeout interval as 10 seconds and start counting Mov al,0f6h

41

ChapterB

Image 51
Contents TPC-660G This Manual Covers the Following Models Copyright AcknowledgementsProduct Warranty 1 year FCC Class a Technical Support and Assistance Packing List Safety InstructionsPage Contents Chapter Features in Windows XP Embedded Appendix F Fuse Specifications Page General Information Bright Display Powerful Communication CapabilityIntroduction FanlessSpecifications SafetyEnvironment Operating Temperature 0 ~ 50 C 32 ~ 122 F Backlight 1 Ccfl Backlight Life Time 20,000 hours LCD SpecificationsTouchscreen Specifications PowerPanel Mounting I/O Ports ArrangementPanel Mounting Exploded DiagramDimensions & Cutout Dimensions and CutoutPage System Setup Unpack the Package Power Connector and Power Lines Plugging in the Power Line Bootup Screen Page System Engine Mainboard Connectors & Jumper Settings Main Board Connectors Page Software Configuration Device Manager VGA Driver InstallationUpdate Driver Update Wizard-2 Update Wizard-4 Update Wizard-6 10 Device Manager Entertainment Encryption/Decryption Driver12 Install Wizard 14 Driver Installation Complete Page Features Windows XP Embedded EWF Features in Windows XP EmbeddedAdvantech Utilities HormVersion Information Serial Port Settings Jumper Setting Appendix a Serial Port SettingsData Format Control Setting SW2 Baud Rate Setting SW3 Watchdog Timer Programming Overview Appendix B Watchdog Timer ProgrammingFigure B.1 Watchdog Timer Programming Watchdog Timer ProgrammingTable B.1 Watchdog Timer Registers Example Programs Enable watchdog timer and set 10 sec. as timeout intervalEnable watchdog timer and set 5 minutes as timeout interval Enable watchdog timer to be reset by mouse Enable watchdog timer to be reset by keyboard Generate a time-out signal without timer counting Page Watchdog Timer Programming on WinCE Appendix C Watchdog Timer Program- ming on WinCE DeviceIOControlLpvoid lpOutBuffer Parameters Ioctl Wdtenable How to Use the Control CodeIoctlwdtgettimeout Examples CTLCODEFILEDEVICEUNKNOWN,ID, METHODBUFFERED, FileanyaccessAppendixC Page Accessory Kit Assembly Procedure CompactFlash to IDE Transfer Kit Appendix D Accessory Kit Assembly ProcedureFigure D.3 CompactFlash Slot Figure D.6 Connect the CD-ROM via the IDE Cable Touchscreen Installation Configuration Driver Installation Appendix E Touchscreen Installation & ConfigurationFigure E.3 Install Wizard Figure E.5 Uninstall Uninstall the DriverCalibrate Touchscreen CalibrationFigure E.8 Standard Calibration Figure E.10 Advanced Calibration Figure E.11 Advanced Calibration Figure E.13 Draw DrawOption Figure E.14 Clear ScreenFuse Specifications Appendix F Fuse Specifications Fuse SpecificationsFuse Replacement