Web site: www.formosa21.com
MBM-530NS User’s Manual -37-
TTL Output Demo Program
#include <stdio.h>
#include <stdlib.h>
#include <dos.h>
#define GPIO37 0x80
//GPIO37
unsigned Index_Reg = 0x002E, Data_Reg = 0x002F;
unsigned char Dev_Index = 0x07, GPIO_Num = 0x07, PM_Num = 0x08;
unsigned char tmpData;
void main(void) {
unsigned char
mBAR,lBAR,PM_Index_Reg,PM_Data_Reg,GPIO_En,port_Select,CFGDAT;
unsigned PMBAR,GPIOBAR;
outportb(Index_Reg, Dev_Index);
//Choose Logical Dev. PM
outportb(Data_Reg, PM_Num);
//
outportb(Index_Reg, 0x30);
//Enable PM register access
outportb(Data_Reg, 0x01);
//
Summary of Contents for MBM-530NS
Page 1: ...MBM 530NS User s Manual...
Page 4: ...4 MBM 530NS User s Manual...
Page 8: ......
Page 12: ......
Page 58: ......
Page 91: ...Web site www formosa21 com MBM 530NS User s Manual 91 when user tries to enter Setup utility...
Page 96: ......