![background image](http://html1.mh-extra.com/html/ibase-technology/bytem-103-pc/bytem-103-pc_user-manual_3229720065.webp)
Copyright © 2013 IBASE Technology Inc. All Rights Reserved.
57
IBASE Technology Inc.
File of the MAIN.CPP
//---------------------------------------------------------------------------
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//---------------------------------------------------------------------------
#include <dos.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include "NCT5523D.H"
//---------------------------------------------------------------------------
int main (void);
void Dio5Initial(void);
void Dio5SetOutput(unsigned char);
unsigned char Dio5GetInput(void);
void Dio5SetDirection(unsigned char);
unsigned char Dio5GetDirection(void);
//---------------------------------------------------------------------------
int main (void)
{
char SIO;
SIO = Init_NCT5523D();
if (SIO == 0)
{
printf("Can not detect Nuvoton NCT5523D, program abort.\n");
return(1);
}
Dio5Initial();
//for GPIO20..27
Dio5SetDirection(0x0F); //GP20..23 = input, GP24..27=output
printf("Current DIO direction = 0x%X\n", Dio5GetDirection());
Содержание BYTEM-103-PC
Страница 1: ...www ibase com tw IBASE Technology Inc BYTEM 103 PC User Manual...
Страница 8: ......
Страница 11: ...Copyright 2013 IBASE Technology Inc All Rights Reserved 3 IBASE Technology Inc 1 2 2 Dimensions BYTEM 103 PC...
Страница 12: ...4 BYTEM 103 PC User Manual...
Страница 14: ...6 BYTEM 103 PC User Manual M12 10 100M LAN Port Pin 1 LAN TX Pin 2 LAN RX Pin 3 LAN TX Pin 4 LAN RX...
Страница 60: ...52 BYTEM 103 PC User Manual 3 Click Yes to accept the license agreement...