MSI MS-C903 User Manual page 65

Industrial data machine
Table of Contents

Advertisement

Outportb (LOWORD (
mdelay (20);
while ((Inportl (
_DATA = Inportb (LOWORD (
SMB
4.3 SMBus_WriteByte (char DEVID, char offset, char DATA)
Write DATA to OFFSET on SMBus device DEVID.
Outportb (LOWORD (
Outportb (LOWORD (
Outportb (LOWORD (
Outportb (LOWORD (
Outportb (LOWORD (
mdelay (20);
) + 0x02, 0x48);
SMBUS_BASE
) & 0x01) != 0);
SMBUS_BASE
SMBUS_BASE
), 0xFE);
SMBUS_BASE
) + 0x04, DEVID);
SMBUS_BASE
) + 0x03, OFFSET);
SMBUS_BASE
) + 0x05, DATA);
SMBUS_BASE
) + 0x02, 0x48);
SMBUS_BASE
//out Base + 02, 48H
//delay 20ms to let data ready
//wait SMBus ready
) + 0x05);
//input Base + 05
//out Base + 04, (DEVID)
//out Base + 03, OFFSET
//out Base + 05, DATA
//out Base + 02, 48H
//wait 20ms
GPIO WDT BKL SMBus Programming
65

Advertisement

Table of Contents
loading

Table of Contents