background image

A-2

GPIO WDT Programming

MS-98M9

Abstract

Abstract 

In this document, code examples based on C programming  language  provided for 
customer interest. 

Inportb

Outportb

Inportl

 and 

Outportl

 are basic functions used for 

access IO ports and defined as following. 
 

Inportb:

 Read a single 8-bit I/O port. 

Outportb:

 Write a single byte to an 8-bit port.

   

Inportl:

 Reads a single 32-bit I/O port. 

Outportl:

 Write a single long to a 32-bit port. 

 

 

Содержание MS-98M9

Страница 1: ...i MS 98M9 v1 x Industrial Computer Board ...

Страница 2: ...ve owners No warranty as to accuracy or completeness is expressed or implied MSI reserves the right to make changes to this document without prior notice Revision History Revision Date V1 0 2020 01 Technical Support If a problem arises with your product and no solution can be obtained from the user s manual please contact your place of purchase or local distributor Alternatively please visit https...

Страница 3: ...t place anything over the power cord Always Unplug the Power Cord before inserting any add on card or module All cautions and warnings on the equipment should be noted Never pour any liquid into the opening that could damage or cause electrical shock If any of the following situations arises get the equipment checked by service personnel The power cord or plug is damaged Liquid has penetrated into...

Страница 4: ...ed household waste Please use the public collection system to return recycle or treat them in compliance with the local regulations 廢電池請回收 Taiwan For better environmental protection waste batteries should be collected separately for recycling or special disposal California USA The button cell battery may contain perchlorate material and requires special handling when recycled or disposed of in Cal...

Страница 5: ... or more of the measures listed below Reorient or relocate the receiving antenna Increase the separation between the equipment and receiver Connect the equipment into an outlet on a circuit different from that to which the receiver is connected Consult the dealer or an experienced radio television technician for help Notice 1 The changes or modifications not expressly approved by the party respons...

Страница 6: ...view 1 1 Specifications 1 2 Layout 1 5 2 Hardware Setup 2 1 CPU Installation 2 3 Memory 2 6 Power Supply 2 8 Rear Panel I O 2 9 Connector 2 11 Jumper 2 17 Slot 2 18 3 BIOS Setup 3 1 Entering Setup 3 2 The Menu Bar 3 4 Main 3 5 Advanced 3 6 Boot 3 14 Security 3 15 Power 3 21 Save Exit 3 23 ME Configuration 3 24 Appendix GPIO WDT Programming A 1 Abstract A 2 General Purposed IO A 3 Watchdog Timer A ...

Страница 7: ...he MS 98M9 an excellent industrial computer board Based on the innovative Intel Skylake SP Cascade Lake SP Processor the MS 98M9 is engineered to provide reliable performance for a wide variety of industrial applications 1 Overview ...

Страница 8: ...up to 2666MHz Max 192GB Network Full SKU LAN1 LAN2 Intel I210 AT GbE LAN LAN3 LAN4 Intel X557 AT2 10GbE LAN 10GBASE T transmissions requests thecable grade of Cat 6 Cat 6a or above Basic SKU LAN1 LAN2 Intel I210 AT GbE LAN Storage 8 SATA 6Gb s ports RAID 0 1 5 10 supported AHCI Mode supported 1 mSATA Slot Full size Half size Shared with Mini PCIe Audio Realtek ALC887 High Definition Audio codec Co...

Страница 9: ...5V 0 9A 1 Mouse Keyboard combo port Internal I O 1 System power connector 1 CPU power connector 8 SATA 6Gb s ports 1 Vertical USB 2 0 port 3 USB 2 0 box headers 6 ports 1 VROC box header 1 TPM pin header 4 RS232 serial port box headers COM3 COM6 6 Serial port power jumpers 1 SMBus box header 1 PMBus box header 1 ME jumper 2 PCIe configure jumper 1 S PDIF box header 1 x 2 6 pin 2 54 pitch Pin heade...

Страница 10: ...50 W Accessories 2 SATA3 0 cables 1 Dual USB 2 0 cable with bracket 1 Driver user manual CD 1 I O shield Certification CE FCC Class B BSMI RCM VCCI OS Support Skylake SP Windows Server 2012 R2 64 bit Windows Server 2016 64 bit Linux Kernel 4 14 Ubuntu 18 04 LTS Fedora 29 Windows 10 IoT Enterprise LTSC SAC 1809 64 bit RS5 Pre test only Cascade Lake SP Windows Server 2016 64 bit Windows Server 2019 ...

Страница 11: ... SATA Ports SMBus Box Header System Power Connector PCIe Slots USB 2 0 Port Front Panel Box Header TPM Header System Fan Header USB 2 0 Box Headers GPIO Box Headers COM Port Box Headers Power Jumpers Front Audio Box Header Chassis Intrusion Header PCIe Configure Jumper LED LAN Header System Fan Header System Fan Header CPU Fan Header COM Port Power Jumper CPU Power Connector PMBus Box Header Mini ...

Страница 12: ...1 6 Overview 2 Slot thickness PCIe Graphics Card Supported thickness Max 40 mm PCIE1 PCIE2 PCIE3 PCIE4 PCIE5 PCIE6 PCIE7 ...

Страница 13: ...allation be careful in holding the components and follow the installation procedures For some components if you install in the wrong orientation the components will not work properly Use a grounded wrist strap before handling computer components Static electricity may damage the components 2 Hardware Setup ...

Страница 14: ...r JGPIO2 2 12 Dual Stacked SATA Connector SATA1_2 SATA3_4 SATA5_6 SATA7_8 2 12 USB 2 0 Box Header JUSB1 JUSB2 JUSB3 2 13 USB 2 0 Port USB1 2 13 Front Panel Box Header JFP1 2 13 Chassis Intrusion Header JCASE1 2 14 TPM Pin Header JTPM1 2 14 Audio Box Header JAUD1 2 14 Front Audio Box Header JAUD2 2 15 S PDIF Box Header JSPDIF1 2 15 VROC Box Header JVROC 2 15 RS232 COM Port Box Header JCOM3 JCOM4 JC...

Страница 15: ...Overheating will seriously damage the CPU and system Always make sure the cooling fan can work properly to protect the CPU from overheating Make sure that you apply an even layer of thermal paste or thermal tape between the CPU and the heatsink to enhance heat dissipation Replacing the CPU While replacing the CPU always turn off the power supply or unplug the power supply s power cord from the gro...

Страница 16: ...ocated on the inside ends of the processor carrier 3 Check the heatsink for 1 clip Flip the heatsink over and align the CPU s Pin 1 Alignment Mark with the heatsink s 1 clip Gently en gage the CPU and carrier package down Make sure the attach clips on the carrier grab onto the heatsink and firmly secure the carrier CPU and heatsink as one Processor Heatsink Module ...

Страница 17: ...equences 1 2 3 4 Important Confirm if your CPU cooler is firmly installed before turning on your system Do not touch the CPU socket pins to avoid damage Whenever CPU is not installed always protect your CPU socket pins with the plastic cap covered Please refer to the documentation in the CPU cooler package for more details about the CPU cooler installation Read the CPU status in BIOS ...

Страница 18: ...sity in different channel DIMM slots DIMM6 Channel F DIMM5 Channel E DIMM4 Channel D DIMM1 Channel A DIMM2 Channel B DIMM3 Channel C Important Paired memory installation for Max performance Populate the same DIMM type in each channel specifically 1 Use the same DIMM size 2 Use the same number of ranks per DIMM ...

Страница 19: ...is deeply inserted in the DIMM slot The plastic clip at each side of the DIMM slot will automatically close when the memory module is properly seated 3 Manually check if the memory module has been locked in place by the DIMM slot clips at the sides Notch Volt Important You can barely see the golden finger if the memory module is properly inserted in the DIMM slot To enable successful system bootup...

Страница 20: ... D 7 G N D 2 2 5 V 1 0 1 2 V 2 0 N A 8 P W R O K 2 3 5 V 1 1 1 2 V 2 1 5 V 9 5 V S B 2 4 G N D 1 2 3 3 V CPU Power Connector JPWR2 This connector is used to provide power to the CPU 7 1 2 V 3 G N D 5 1 2 V 1 G N D 8 1 2 V 4 G N D 6 1 2 V 2 G N D Important Make sure that all power connectors are connected to the power supply to ensure stable operation of the motherboard To avoid some issues like sy...

Страница 21: ...7 8 9 NDCD NSIN NSOUT NDTR GND NDSR NRTS NCTS 0V 5V 12V Data Carrier Detect Signal In Signal Out Data Terminal Ready Signal Ground Data Set Ready Request To Send Clear To Send Power Pin RS422 PIN SIGNAL DESCRIPTION 1 2 3 4 5 6 7 8 9 422 TXD 422 TXD 422 RXD 422 RXD GND NC NC NC NC Transmit Data Negative Transmit Data Positive Receive Data Positive Receive Data Negative Signal Ground No Connection N...

Страница 22: ...etwork LAN You can connect a network cable to it Active LED Speed LED LED LED Status Description Active LED Off No link Yellow Linked Blinking Data activity Speed LED Green 1 Gbps connection Orange 10 Gbps connection Active LED Speed LED LED LED Status Description Active LED Off No link Yellow Linked Blinking Data activity Speed LED Green 1 Gbps connection Orange 10 Gbps connection h h USB 3 2 Gen...

Страница 23: ...t onboard you must use a specially designed fan with speed sensor to take advantage of the CPU fan control Important Please refer to the recommended CPU fans at processor s official website or consult the vendors for proper CPU cooling fan Fan cooler sets with 4 pin PWM FAN available SMBus Box Header JSMB1 This connector is provided for users to connect System Management Bus SMBus interface PMBus ...

Страница 24: ...nector is provided for the General Purpose Output peripheral module Dual Stacked SATA Connector SATA1_2 SATA3_4 SATA5_6 SATA7_8 This connector is a high speed Serial ATA interface port Each connector can connect to two SATA devices Important Please do not fold the SATA cable into a 90 degree angle Otherwise data loss may occur during transmission ...

Страница 25: ... of VCC and GND must be connected correctly to avoid possible damage Front Panel Box Header JFP1 This front panel connector is provided for electrical connection to the front panel switches LEDs and is compliant with Intel Front Panel I O Connectivity Design Guide PW LED PW LED PW SW PW SW Key 2 4 6 8 10 1 3 5 7 9 HDD LED HDD LED Reser SW Reset SW NC LED Voltage V Current mA Power 5 18 51 HDD 5 18...

Страница 26: ... JTPM1 This connector works as LPC debug port and supports TPM modules 1 0 N C 1 2 G N D 1 4 G N D 8 5 V 6 S E R I A L _ I R Q 4 3 3 V 2 3 3 V _ S B 1 L P C _ C L O C K 3 L P C _ R E S E T 5 L P C _ A D 0 7 L P C _ A D 1 9 L P C _ A D 2 1 1 L P C _ A D 3 1 3 L P C _ F R A M E Audio Box Header JAUD1 This connector allows you to connect the audio cable for Line in Line out Mic in jack 1 L I N E _ I ...

Страница 27: ...eader JSPDIF1 This pinheader is used to connect S PDIF Sony Philips Digital Interconnect Format interface for digital audio transmission VROC Box Header JVROC Intel VROC license key of VMD allows NVMe SSDs to connect via PCIe and directly manage on the CPU for better RAID performance 4 F M _ P C H _ S A T A _ R A I D _ K E Y _ R 3 G N D 2 P U _ K E Y _ C O N N _ P I N 2 _ R 1 G N D ...

Страница 28: ...DCD RXD TXD DTR GND DSR RTS CTS VCC Data Carrier Detect Receive Data Transmit Data Data Terminal Ready Signal Ground Data Set Ready Request To Send Clear To Send Voltage selected by COM jumper LAN LED Header LAN_LED This connector is provided for electrical connection to the LAN LEDs 7 L A N 3 _ L E D 9 L A N 4 _ L E D 1 N C 3 L A N 1 _ L E D 5 L A N 2 _ L E D 1 0 L A N 4 _ L E D 8 L A N 3 _ L E D...

Страница 29: ...2 ATX 2 3 AT JME_DIS1 1 1 2 Normal 2 3 ME Disable JCOMP1 1 2 5 6 1 2 5V 3 4 12V 5 6 RI JCOMP2 1 1 2 5V 2 3 12V JCOMP3 JCOMP4 JCOMP5 JCOMP6 1 1 2 5V 2 3 12V J_PCIECFG1 5 1 6 2 1 3 PCIE2 x 8 PCIE3 x 8 2 4 PCIE4 x 8 PCIE5 x 8 5 1 6 2 3 5 PCIE2 x 16 PCIE3 x 0 2 4 PCIE4 x 8 PCIE5 x 8 5 1 6 2 1 3 PCIE2 x 8 PCIE3 x 8 4 6 PCIE4 x 16 PCIE5 x 0 5 1 6 2 3 5 PCIE2 x 16 PCIE3 x 0 4 6 PCIE4 x 16 PCIE5 x 0 ...

Страница 30: ...e x4 slot Important Intel RST only supports PCIe SSD with UEFI ROM and does not support Legacy ROM When adding or removing expansion cards make sure that you unplug the power supply first Meanwhile read the documentation for the expansion card to configure any necessary hardware or software settings for the expansion card such as jumpers switches or BIOS configuration ...

Страница 31: ...erconnect Express Slot The Mini PCIe slot is provided for wireless LAN cards TV tuner cards Robson NAND Flash cards and other Mini PCIe cards The MINIPCIE1 is also shared to be mSATA slot The mSATA slot is for mSATA interface solid state drives SSD ...

Страница 32: ... message appears on the screen at system startup and requests users to run SETUP Users want to change the default settings for customized features Important Please note that BIOS update assumes technician level experience As the system BIOS is under continuous update for better system performance the illustrations in this chapter should be held for reference only 3 BIOS Setup ...

Страница 33: ...before you respond and you still wish to enter Setup restart the system by turning it OFF and On or pressing the RESET button You may also restart the system by simultaneously pressing Ctrl Alt and Delete keys Important The items under each BIOS category described in this chapter are under continuous update for better system performance Therefore the description may be slightly different from the ...

Страница 34: ... a right pointer symbol appears to the left of certain fields that means a sub menu can be launched from this field A sub menu contains additional options for a field parameter You can use arrow keys to highlight the field and press Enter to call up the sub menu Then you can use the control keys to enter values and move from field to field within a sub menu If you want to return to the main menu j...

Страница 35: ...y the priority of boot devices Security Use this menu to set supervisor and user passwords Power Use this menu to specify your settings for power management Save Exit This menu allows you to load the BIOS default values or factory default settings into the BIOS and exit the BIOS setup utility with or without changes ME Configuration This menu allows the Server ME configuration setting and informat...

Страница 36: ...ng allows you to set the system date The date format is Day Month Date Year System Time This setting allows you to set the system time The time format is Hour Minute Second SATA Mode Selection This setting specifies the SATA controller mode ...

Страница 37: ...o the booting sequence This delay ensures that the logo is displayed for a sufficient amount of time Therefore it is recommended that you disable this BIOS feature for a faster boot up time Bootup NumLock State This setting is to set the Num Lock status when the system is powered on Setting to On will turn on the Num Lock key when the system is powered on Setting to Off will allow users to use the...

Страница 38: ... Select Select an operation mode for the specified serial port FIFO Mode This setting controls the FIFO data transfer mode Shared IRQ Mode This setting provides the system with the ability to share interrupts among its serial ports Watch Dog Timer You can enable the system watch dog timer a hardware timer that generates a reset when the software that it monitors does not respond as expected each t...

Страница 39: ...ages temperatures and all fans speeds Smart Fan Configuration CPUFAN1 SYSFAN1 SYSFAN6 This setting enables disables the Smart Fan function Smart Fan is an excellent feature which will adjust the CPU system fan speed automatically depending on the current CPU system temperature avoiding the overheating to damage your system ...

Страница 40: ...s that support Intel Vanderpool Technology Hyper Threading ALL The processor uses Hyper Threading technology to increase transaction rates and reduces end user response times The technology treats the two cores inside the processor as two logical processors that can execute instructions simultaneously In this way the system performance is highly improved If you disable the function the processor w...

Страница 41: ...ion of the onboard onchip LAN Boot ROM during bootup Selecting Disabled will speed up the boot process IOU0 II0 PCIe Br1 This item configures the PCIE2 port Bifuraction setting for a PCI E port specified by the user The options are x4x4x4x4 x4x4x8 x8x4x4 x8x8 x16 and Auto IOU1 II0 PCIe Br2 This item configures the PCIE1 port Bifuraction setting for a PCI E port specified by the user The options ar...

Страница 42: ...evice Technology for this stack The options are Disable and Enable If the item above is set to Enable the following items will become available for configuration CPU PCIE1 PCI E 3 0 X8 VMD Available when the device is detected by the system Select Enable to use the Intel Volume Management Device Technology for PCIe root ports 2A 2B The options are Disable and Enable Intel VMD for Volume Management...

Страница 43: ...3 12 BIOS Setup GPIO Group Configuration GPO0 GPO7 These settings control the operation mode of the specified GPIO ...

Страница 44: ...ptions are Disabled and Enabled Ipv6 PXE Support Select Enabled to enable IPv6 PXE boot support The options are Disabled and Enabled Ipv6 HTTP Support Select Enabled to enable IPv6 HTTP boot support The options are Disabled and Enabled IPSEC Certificate Select Enabled to enable IPSEC Certificate support The options are Enable and Disable PXE boot wait time Use this option to specify the wait time ...

Страница 45: ...ables disables the support for Compatibility Support Module a part of the Intel Platform Innovation Framework for EFI providing the capability to support legacy BIOS interfaces Boot Option Priorities This setting allows users to set the sequence of boot devices where BIOS attempts to load the disk operating system ...

Страница 46: ... to the BIOS Setup utility User Password User Password controls access to the system at boot and to the BIOS Setup utility Chassis Intrusion The field enables or disables the feature of recording the chassis intrusion status and issuing a warning message if the chassis is once opened ...

Страница 47: ...pport is set to Enable Pending Operation will appear Set this item to TPM Clear to clear all data secured by TPM or None to discard the selection It is advised that users should routinely back up their TPM secured data Platform Hierarchy Storage Hierarchy Endorsement Hierarchy These settings enable disable the Platform Hierarchy Storage Hierarchy and Endorsement Hierarchy TPM2 0 UEFI Spec Version ...

Страница 48: ...attached This setting enables disables the operation of console redirection When set to Enabled BIOS redirects and sends all contents that should be displayed on the screen to the serial COM port for display on the terminal screen Besides all data received from the serial port is interpreted as keystrokes from a local keyboard Console Redirection Settings ...

Страница 49: ...nsmission between two nodes It s the process of adjusting the flow of data from one device to another to ensure that the receiving device can handle all of the incoming data This is particularly important where the sending device is capable of sending data much faster than the receiving device can receive it VT UTF8 Combo Key Support This setting enables disables the VT UTF8 combination key suppor...

Страница 50: ...o Enabled BIOS redirects and sends all contents that should be displayed on the screen to the serial COM port for display on the terminal screen Besides all data received from the serial port is interpreted as keystrokes from a local keyboard Console Redirection Settings Out of Band Mgmt Port This setting specifies the Out of Band Management Port Terminal Type To operate the system s console redir...

Страница 51: ... between two nodes It s the process of adjusting the flow of data from one device to another to ensure that the receiving device can handle all of the incoming data This is particularly important where the sending device is capable of sending data much faster than the receiving device can receive it ...

Страница 52: ...tate Restores the system to the previous status before power failure or interrupt occurred Deep S5 The setting enables disables the Deep S5 power saving mode S5 is almost the same as G3 Mechanical Off except that the PSU still supplies power at a minimum to the power button to allow return to S0 A full reboot is required No previous content is retained Other components may remain powered so the co...

Страница 53: ... field specifies whether the system will be awakened from power saving modes when activity or input signal of onboard PCIE Ring PME is detected RTC When Enabled your can set the date and time at which the RTC real time clock alarm awakens the system from suspend mode ...

Страница 54: ...zed Defaults Use this menu to load the default values set by the motherboard manufacturer specifically for optimal performance of the motherboard Save as User Defaults Save changes as the user s default profile Restore User Defaults Restore the user s default profile Launch EFI Shell from filesystem device This setting helps to launch the EFI Shell application from one of the available file system...

Страница 55: ...W Image Re Flash This setting enables disables the ME FW image reflash MECI 1 Enable This setting Auto Enable MECI 1 This setting is use for flash F32M NSH when ME is locked the following steps as below 1 Set HECI 1 enable to Enable under BIOS 2 Set ME Jumper to ME disable 3 Execute F32M NSH to flash BIOS 4 Set HECI 1 enable to Auto under BIOS 5 Done the Flash F32M NSH When ME is locked ...

Страница 56: ...2 A 1 This appendix provides WDT Watch Dog Timer and GPIO General Purpose Input Output programming guide Appendix GPIO WDT Programming ...

Страница 57: ... provided for customer interest Inportb Outportb Inportl and Outportl are basic functions used for access IO ports and defined as following Inportb Read a single 8 bit I O port Outportb Write a single byte to an 8 bit port Inportl Reads a single 32 bit I O port Outportl Write a single long to a 32 bit port ...

Страница 58: ...vided in part 3 1 1 Set output value of GPO 1 Read the value from GPO port 2 Set the value of GPO address 3 Write the value back to GPO port Example Set N_GPO0 output high val SMBus_ReadByte 0x9C 0x21 Read value from N_GPO0 port through SMBus val val 1 0 Set N_GPO0address bit 0 to 1 output high SMBus_WriteByte 0x9C 0x21 val Write back to N_GPO0 port through SMBus Example Set N_GPO1 output low val ...

Страница 59: ... is High else printf Input of N_GPI2 is Low Example Get N_GPI3 input value val SMBus_ReadByte 0x9C 0x42 Read value from N_GPI3 port through SMBus val val 1 3 Read N_GPI3 address bit 3 if val printf Input of N_GPI3 is High else printf Input of N_GPI3 is Low ...

Страница 60: ...val Inportb WDT_BASE 0x05 Read current WDT setting val val 0x20 Enable WDT by set WD_EN bit 5 to 1 Outportb WDT_BASE 0x05 val Write back WDT setting 2 4 Disable WDT val Inportb WDT_BASE 0x05 Read current WDT setting val val 0xDF Disable WDT by set WD_EN bit 5 to 0 Outportb WDT_BASE 0x05 val Write back WDT setting 2 5 Check WDT Reset Flag If the system has been reset by WDT function this flag will ...

Страница 61: ...SET from SMBus device DEVID Outportb LOWORD SMBUS_BASE 0xFE Outportb LOWORD SMBUS_BASE 0x04 DEVID 1 out Base 04 DEVID 1 Outportb LOWORD SMBUS_BASE 0x03 OFFSET out Base 03 OFFSET Outportb LOWORD SMBUS_BASE 0x02 0x48 out Base 02 48H mdelay 20 delay 20ms to let data ready while Inportl SMBUS_BASE 0x01 0 wait SMBus ready SMB_DATA Inportb LOWORD SMBUS_BASE 0x05 input Base 05 3 3 SMBus_WriteByte char DE...

Страница 62: ...2 B 1 This appendix show you how to rename the network adapter Appendix How to rename the network adapter ...

Страница 63: ...B 2 How to rename the network adapter Step1 Rename a network adapter Run the below script in PowerShell Step2 Rename NetAdapter Name Slot03 2 NetName Ethernet 2 Step3 Press F5 in Network Connections ...

Отзывы: