Web site: www.formosa21.com
MBM-530NS User’s Manual -39-
lBAR = inportb(Data_Reg);
//
GPIOBAR = ((unsigned)mBAR <<8) + ((unsigned)lBAR);
/********************************************************/
/* Outport 1 to GPIO37
*/
/********************************************************/
outportb(Index_Reg, 0x22);
//GPIO Bank select
port_Select = inportb(Data_Reg);
//
outportb(Index_Reg, 0x22);
//GPIO port3 select
outportb(Data_Reg, (port_Select | 0x80)); //
outportb((G 0x05), 0x80);
//set port3 output direction
tmpData = inportb(G 0x04);
outportb((G 0x04),(tmpData | GPIO37));//GPIO37 = 1
tmpData = inportb(G 0x04) & GPIO37;
if (tmpData != GPIO37) printf("GPIO37 is at LOW status.\n");
else printf("GPIO37 is at HIGH status.\n");
}
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: ......