MSI Keeper 945GME manual Sample Code Method 2 LPC Mode Hardware Setup

Page 35

Sample Code (Method 2: LPC Mode)

Hardware Setup

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Control LPC LAN

 

 

 

 

 

 

mov

al,0fh

 

 

;Select LPC Mode (bit 4 =1)

 

 

 

 

mov

dx,005eh

 

 

 

 

 

 

 

out

dx,al

 

 

 

 

 

 

Note: bit 0 = 1, change LAN 1, 2 to bypass,

 

 

 

 

 

bit 0 = 0, change LAN 1, 2 to normal (power on status)

 

 

 

 

 

bit 1 = 1, change LAN 3, 4 to bypass,

 

 

 

 

 

bit 1 = 0, change LAN 3, 4 to normal (power on status)

 

 

 

 

 

bit 2 = 1, change LAN 1, 2 to bypass,

 

 

 

 

 

bit 2 = 0, change LAN 1, 2 to normal (power off status)

 

 

 

 

bit 3 = 1, change LAN 3, 4 to bypass,

 

 

 

 

 

bit 3 = 0, change LAN 3, 4 to normal (power off status)

 

 

Watch Dog function setup sample code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov

dx, 4Eh

;Send "87" twice to IO port 4Eh

 

 

 

 

 

 

mov

al, 87h

;to unlock SIO.

 

 

 

 

 

 

out

dx, al

 

 

 

 

 

 

 

 

out

dx, al

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov

dx, 4Eh

 

 

 

 

 

 

 

 

mov

al, 2Dh

 

 

 

 

 

 

 

 

out

dx, al

 

 

 

 

 

 

 

 

mov

dx, 4Fh

 

 

 

 

 

 

 

 

in

al, dx

 

 

 

 

 

 

 

 

and

al, 11111110b

;Set PIN77 to WDTO#

 

 

 

 

 

 

out

dx, al

 

 

 

 

 

 

 

 

mov

dx, 4Eh

;Choose LDN8

 

 

 

 

 

 

mov

al, 07h

 

 

 

 

 

 

 

 

out

dx, al

 

 

 

 

 

 

 

 

mov

dx, 4Fh

 

 

 

 

 

 

 

 

mov

al, 08h

 

 

 

 

 

 

 

 

out

dx, al

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov

dx, 4Eh

;Set to enable

 

 

 

 

 

 

mov

al, 30h

 

 

 

 

 

 

 

 

out

dx, al

 

 

 

 

 

 

 

 

mov

dx, 4Fh

 

 

 

 

 

 

 

 

mov

al, 01h

 

 

 

 

 

 

 

 

out

dx, al

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov

dx, 4Eh

;Enable WDTO# and set to KBRST#

 

 

 

 

 

 

mov

al, 0F7h

 

 

 

 

 

 

 

 

out

dx, al

 

 

 

 

 

 

 

 

mov

dx, 4Fh

 

 

 

 

 

 

 

 

in

al, dx

 

 

 

 

 

 

 

 

and

al, 0F7h

;CR 0F7h bit4 --> 0 (clear event)

 

 

 

 

 

 

out

dx, al

 

 

 

 

 

 

 

 

..

 

;CR 0F6h bit0--7 : Set counter time

 

 

 

 

 

 

..

 

;CR 0F5h bit1 --> 1 (Enable WDTO# and KBRST#)

 

 

 

 

 

..

 

 

bit3 ---> 0 (Second mode), 1 (Minute mode)

 

 

 

 

 

mov

dx, 4Eh

;Exit SIO access and lock it up.

 

2-23

 

 

 

mov

al, 0AAh

 

 

 

 

 

 

 

 

 

 

 

 

 

 

out

dx, al

 

 

 

 

 

Image 35
Contents G52-96411x1 MS-9641 V2.X MainboardTechnical Support Copyright NoticeTrademarks Revision HistorySafety Instructions FCC-B Radio Frequency Interference Statement Micro-Star International MS-9641Weee Waste Electrical and Electronic Equipment Statement Page Vii Contents Getting Started Getting StartedIDE Mainboard SpecificationsFSB LANMounting Getting Started Watch Dog TimerAccessory Form FactorMS-9641 v2.X Micro-ATX Mainboard Mainboard LayoutHardware Setup Hardware SetupQuick Components Guide CPU Central Processing Unit CPU & Cooler Set Installation Hardware Setup DDR2 MemoryMemory Population Rules Installing Memory Modules ATX1 Power SupplyATX 24-Pin Power Connector ATX1 ATX 12V Power Connector JPW0Front Panel Serial Port ConnectorUSB Connectors LED MS-9641 Mainboard LAN RJ-45 JackIDEB0 ConnectorsHard Disk Connector IDEB0 Compact Flash Card Slot CF0SATA4 SATA3 SATA2 SATA1 Serial Ataii Connectors SATA1~SATA4Front Panel Connectors JFP1 Fan Power Connectors CPUFAN0, SYSFAN1, AUXFAN0USB 2.0 Bracket Front USB Connector FUSB2FUSB2 Serial Port Connector COM SMBus Connector SmbusTV-Out Connector JTV0 JLCD1 LCD Module Connector JLCD1Keyboard/Mouse Connector J0 FWH/LPC Debugging connector JLPC1JP1 LAN ByPass LED Pinheader J3Cpld Data Reflash PinheaderJP1 LanledMS-9641 Mainboard LAN Bypass Definition Bypass setting in BiosBit Definition Programming GuideSegment Signal Name Description Type Bypass MS-9641 Mainboard Signal ActionHardware Setup Sample code Method 1 Gpio Mode MS-9641 Mainboard Method 1 Gpio control Bypass Gpio ModeMethod 2 LPC Control Bypass LPC Mode Watch Dog function setup sample code Sample Code Method 2 LPC Mode Hardware SetupClear Cmos Jumper CLRCMOS0 JumpersJcfvsel AT/ATX Power Select Jumper J5Gmch Voltage Jumper J2 TOP View B94 Bottom View A94 SlotGolden Finger PCI Peripheral Component Interconnect SlotBios Setup Bios SetupPress F1 to enter Setup Entering SetupMain Menu Control KeysGetting Help General Help F1Menu Bar IDE Channel 0 Master/Slave, IDE Channel 1 Master/Slave MainDate mmddyy Time hhmmssHead Access M odeCapacity CylinderCPU L3 Cache Advanced Bios Features Virus WarningAdvanced MPS Version Control For OS Quick Power On Self TestApic Mode Agent after bootCAS Latency Time Bios Setup Advanced Chipset Features Dram Timing SelectableDram RAS# to CAS# Delay Precharge Delay tRASOn-Chip Frame Buffer Size MS-9641 Mainboard VGA SettingBoot Display PEG/Onchip VGA ControlOn-Chip Primary/Secondary PCI IDE IDE DMA Transfer AccessIDE Primary/Secondary Master/Slave PIO On-Chip Serial ATA Setting Sata ModeSata Port Speed Settings Pata IDE Mode / Sata PortUSB Keyboard/Mouse Support PXE BootPlanar Ethernet #01/ #02/ #03/ #04/ #05/ #06 USB Controller, USB 2.0 ControllerUse IR Pins Uart Mode SelectIR Transmission Delay UR2 Duplex ModeCOM Port Select Bios Setup Watch Dog ActionWatch Dog Timer Minutes Power Management Setup Power TypeBoot Up NumLock Status Resume by AlarmDate of Month Alarm Time hhmmss AlarmSpread Spectrum Boot Boot Other Device Bios Setup Hard Disk Boot PriorityCD-ROM This setting Refer to Boot Priority First / Second / Third Boot DeviceSecurity Option Set Supervisor PasswordSet User Password SecurityHalt On SystemSystem Summary PC Health Smart Fan SettingSmart SYSFan1 / CPUFan1 / SYSFan2 Temperature Bios Setup SYSFan1 / CPUFan1 / SYSFan2 Tolerance Value Exit Load Fail-Safe DefaultsLoad Optimized Defaults Save & Exit Setup