Sample Code - AOpen DEX4500 series Assembly Manual

Table of Contents

Advertisement

SAMPLE CODE:

This code and information is provided "as is" without warranty of any kind, either expressed or
implied, including but not limited to the implied warranties of merchantability and/or fitness for a
particular purpose. This program just for MB with Winbond W83267DHG LPC I/O
1. InitWatchdogPin:
outportb(0x2E,0x87);
outportb(0x2E,0x87);
outportb(0x2E,0x07);
outportb(0x2F,0x01);
outportb(0x2E,0x2D);
outportb(0x2F,byBit);
outportb(0x2E,0xAA);
outportb(0x2E,0x87);
outportb(0x2E,0x87);
outportb(0x2E,0x07);
outportb(0x2F,0x09);
outportb(0x2E,0x30);
outportb(0x2F,byBit);
outportb(0x2E,0xAA);
outportb(0x2E,0x87);
outportb(0x2E,0x87);
outportb(0x2E,0x07);
outportb(0x2F,0x09);
outportb(0x2E,0xE0);
outportb(0x2F,byBit);
outportb(0x2E,0xAA);
outportb(0x2E,0x87);
outportb(0x2E,0x87);
outportb(0x2E,0x07);
outportb(0x2F,0x09);
outportb(0x2E,0xE1);
outportb(0x2F,byBit);
outportb(0x2E,0xAA);
46
outportb(0x2E,0x87);
outportb(0x2E,0x87);
outportb(0x2E,0x07);
outportb(0x2F,0x09);
outportb(0x2E,0xE2);
outportb(0x2F,byBit);
outportb(0x2E,0xAA);

Advertisement

Table of Contents
loading

Table of Contents