MSI Keeper 945GM MS-9641 Mainboard Set Low sample code Assembly, Set Low sample code C Language

Page 30

MS-9641 Mainboard

 

Set “Low” sample code (Assembly):

 

mov

dx,GPIO_Port + 38h

;GPIO_Port is 480h

in

al,dx

 

newiodelay

 

and

al,not 11000000b

;GPIO 38, 39 pull low to disable

out

dx,al

 

Set “Low” sample code (C Language):

//Set Low

dataIn = inportb(0x480+0x38); dataIn &= 0x3f; outportb(dataIn, 0x480+0x38);

Watch Dog Function:

Support 1~255 second or minute selectable timeout interval.

Watch Code:

1)Enter configuration mode: MOVDX,4EH

MOV AL,87H

OUT DX,AL OUT DX,AL

2)Logical Device 8

MOV DX,4EH

 

MOV

AL,07H

 

OUT

DX,AL

;point to Logical Device Number Reg.

MOV DX,2FH

 

MOV

AL,08H

;select Logical Device 8

OUT

DX,AL

 

3) Enable WDTO# and set to KBRST#

MOV

DX,2EH

;CR 30h: bit0 fill in 1

MOV

AL,30H

 

OUT

DX,AL

 

MOV DX,2FH

 

MOV AL,01H

 

OUT DX,AL

 

MOV

DX,2EH

; CR F7h: bit4 fill in 0(clear event)

MOV

AL,F7H

 

OUT

DX,AL

 

MOV DX,2FH

2-18

Image 30
Contents MS-9641 V1.X Mainboard G52-96411x1Revision History Copyright NoticeTrademarks Technical SupportSafety Instructions Micro-Star International MS-9641 FCC-B Radio Frequency Interference StatementWeee Waste Electrical and Electronic Equipment Statement Page Vii Contents Getting Started Getting StartedLAN Mainboard SpecificationsFSB IDEForm Factor Getting Started Watch Dog TimerAccessory MountingMainboard Layout MS-9641 v1.X Micro-ATX MainboardHardware Setup Hardware SetupQuick Components Guide CPU Central Processing Unit CPU & Cooler Set Installation Hardware Setup Memory Memory Population RulesDDR2 Installing Memory Modules ATX 12V Power Connector JPW0 Power SupplyATX 24-Pin Power Connector ATX1 ATX1Serial Port Connector USB ConnectorsFront Panel MS-9641 Mainboard LAN RJ-45 Jack LEDCompact Flash Card Slot CF0 ConnectorsHard Disk Connector IDEB0 IDEB0Serial Ataii Connectors SATA1~SATA4 SATA4 SATA3 SATA2 SATA1CPUFAN0 SYSFAN1 AUXFAN0 Fan Power Connectors CPUFAN0, SYSFAN1, AUXFAN0Front Panel Connectors JFP1 JFP1Front USB Connector FUSB2 FUSB2USB 2.0 Bracket Smbus SMBus Connector SmbusSerial Port Connector COM0 COM0Lanled LanledSet High sample code Assembly By Pass FunctionSet High sample code C Language MS-9641 Mainboard Set Low sample code Assembly Set Low sample code C LanguageWatch Dog Function DX,AL and AL,0F7H OUT DX,AL Jumpers Clear Cmos Jumper CLRCMOS0AT/ATX Power Select Jumper J5 JcfselPCI Peripheral Component Interconnect Slots SlotsGolden Finger TOP View B94 Bottom View A94Bios Setup Bios SetupEntering Setup Press F2 to enter SetupGeneral Help F1 Control KeysGetting Help Main MenuMenu Bar Time hhmmss MainDate mmddyy IDE Channel 0 Master/Slave, IDE Channel 1 Master/SlaveCylinder Access M odeCapacity HeadAdvanced Bios Features Virus Warning AdvancedCPU L3 Cache Hyper-Threading Technology Quick Power On Self TestApic Mode MPS Version Control For OSFlow Control Bios Setup Console RedirectionAgent after boot Baud RateCAS Latency Time Dram RAS# to CAS# DelayPrecharge Delay tRAS Dram RAS# PrechargePEG/Onchip VGA Control Bios Setup VGA SettingBoot Display PEG ForceIDE DMA Transfer Access On-Chip Primary/Secondary PCI IDESata Port Speed Settings Bios Setup IDE Primary/Secondary Master/Slave PIOOn-Chip Serial ATA Setting Sata Mode Pata IDE Mode / Sata PortMS-9641 Mainboard Onboard Device LAN ByPass USB Controller, USB 2.0 ControllerUSB Keyboard/ Mouse Support IR Transmission Delay Bios Setup Super IO Device Onboard Serial Port 1Uart Mode Select UR2 Duplex ModeMS-9641 Mainboard Watch Dog Action Watch Dog Timer MinutesPower Management Setup Power Type PCI Express PMETime hhmmss Alarm Resume by AlarmDate of Month Alarm Boot Up NumLock StatusMS-9641 Mainboard Spread Spectrum Boot Removable Device PriorityFirst / Second / Third Boot Device MS-9641 Mainboard Hard Disk Boot PriorityCD-ROM This setting Refer to Boot Priority Boot Other DeviceSecurity Set Supervisor PasswordSet User Password Security OptionSystem System SummaryHalt On Smart Fan Setting Smart SYSFan1 / CPUFan1 / SYSFan2 TemperaturePC Health Page Save & Exit Setup Load Fail-Safe DefaultsLoad Optimized Defaults Exit