Intel PCA-6175 manual Gosub 2000 REM Your application task #2

Page 55

After data entry, your program must refresh the watchdog timer by rewriting I/O port 443 (hex) while simultaneously setting it. When you want to disable the watchdog timer, your program should read I/O port 443 (hex).

The following example shows how you might program the watchdog timer in BASIC:

10REM Watchdog timer example program

20OUT &H443, data REM Start and restart the watchdog

30GOSUB 1000 REM Your application task #1,

40OUT &H443, data REM Reset the timer

50GOSUB 2000 REM Your application task #2,

60OUT &H043, data REM Reset the timer

70X=INP (&H043) REM, Disable the watchdog timer

80END

1000

REM Subroutine #1, your application task

1070

RETURN

2000

REM Subroutine #2, your application task

2090

RETURN

Appendix A Programming the Watchdog Timer

45

Image 55
Contents PCA-6175 Copyright Notice Acknowledgements Message to the Customer Advantech Customer ServicesTechnical Support Product Warranty Initial inspection Contents Connecting Peripherals Award Bios Setup Keyboard and Mouse Connnector CN12 Appendix B Pin AssignmentsPage Hardware Configuration Introduction Features Input/Output SpecificationsSystem MemoryMechanical and environmental specifications Industrial featuresBoard Layout Main Features Label Function Jumpers and ConnectorsNumber Function Board layout jumper locations Board Layout Jumper LocationsBoard layout connecter locations Board Layout Connector LocationsSafety Precautions How to set jumpers Jumper SettingsCPU core frequency J5 Cmos clear J6 Watchdog timer output J8CPU bus clock select J11 DiskOnChip 2000 Flash disk address select J12 Sample calculation Dimm memory capacity System MemorySupplementary information about DIMMs Dimm installation Memory Installation ProceduresCache Memory Mounting CPU and cooling modules Step Mounting the CPU and Cooling ModulesStep On-board support bracket On-board Support BracketConnecting Peripherals Floppy Drive Connector CN13 Primary CN6 and Secondary CN7 IDE ConnectorsKeyboard & PS/2 Mouse Connector CN12 Parallel Port Connector CN8Serial Ports CN9 COM1 CN10 COM2 Front Panel Connectors CN2, CN3, CN4, J1 and J2 ATX feature connector J7 and soft power switch connector J1 ATX Power Control Connectors J7 and J1Controlling the soft power switch USB Connector CN11IR Connector CN1 External Keyboard Connector J10External Suspend Switch Lead SMI J3 Award Bios Setup Standard Cmos Setup Entering SetupVirus Warning Bios Features SetupBoot Sequence Quick Power On Self TestBoot Up Floppy Seek Gate A20 Option Boot Up System SpeedIDE HDD Block Mode Typematic Rate SettingOS Select for Dram 64 MB Typematic Delay msecVideo Bios Shadow Security OptionChipset features setup screen Chipset Features SetupPower Management Power Management SetupHDD Power Management IRQ Activity PCI Configuration SetupLoad Bios Defaults Load Setup DefaultsIntegrated peripherals Integrated PeripheralsIDE HDD Auto Detection Password SettingExit Without Saving Save & Exit SetupProgramming the Watchdog Timer Data Time Interval Programming the Watchdog TimerGosub 2000 REM Your application task #2 Page Pin Assignments Keyboard and Mouse Connnector CN12 COM1/COM2 RS-232 Serial Port CN9,CN10IDE Hard Drive Connector CN6, CN7 ATX Feature Connector J7CPU Fan Power Connector CN5 Table B-8 Floppy drive connector CN13 \STROBE Power LED and Keylock Connector CN2 HDD LED Connector CN4External Speaker CN3 Addr. range Hex Device System I/O PortsInterrupt Assignments DMA Channel Assignments17 1st MB Memory Map VGA BiosPage DOC 2000 Installation Guide DiskOnChip 2000 installation instructions DiskOnChip 2000 Quick Installation GuideAdditional information and assistance