Page 23
WDBASE% = &H300 'Set watchdog base address to 'hex300. OUT WDBASE% + 3, &H90 'Set counter 2 to mode 0, 'Read/Load Least Sig. Byte, 'Mode 0, binary. OUT WDBASE +2, 100 'Load Counter 2 Low Byte '100*4.44mSec. COMBASE% = &H3F8 'Set serial commun’n base 'address as com1 (3F8).
Page 24
OUT WDBASE + 2, 100 'Reload counter 2 low byte '100*4.44 mSec. OUT &H3FC, &H10 'Put into loopback. OUT &H3FB, &H80 'Select divisor latch. OUT &H3F8, 12 'Lower half of 9600 baud divisor. OUT &H3F9, 0 'Upper half of 9600 baud 'divisor. OUT &H3F8, 3 'Deselect divisor latch, set 8 'bits/1 stop/no parity.