![background image](http://html1.mh-extra.com/html/ibase-technology/bytem-123-pc/bytem-123-pc_user-manual_3231598073.webp)
Appendix
BYTEM-123-PC User Manual
63
2.
The file 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());
printf("Current DIO status = 0x%X\n", Dio5GetInput());
printf("Set DIO output to high\n");
Dio5SetOutput(0x0F);
printf("Set DIO output to low\n");
Dio5SetOutput(0x00);
return 0;
}
//---------------------------------------------------------------------------
Содержание BYTEM-123-PC
Страница 1: ...BYTEM 123 PC Industrial Panel PC for Railway User s Manual Version 1 0 December 2020...
Страница 10: ......
Страница 19: ...General Information BYTEM 123 PC User Manual 9 1 With Additional Rack Mount Kit...
Страница 28: ...18 BYTEM 123 PC User Manual IB897 bottom Intel Atom E3845 Quad Core...
Страница 34: ...24 BYTEM 123 PC User Manual 2 5 4 SATA II Port CN2 2 5 5 USB 3 0 Port CN3 2 5 6 LAN Port GbE CN4 CN5...
Страница 35: ...Motherboard Information BYTEM 123 PC User Manual 25 2 2 5 7 USB 2 0 Port CN6 2 5 8 Display Port CN7...
Страница 56: ...46 BYTEM 123 PC User Manual 4 4 2 LVDS Configuration...
Страница 65: ...BIOS Setup BYTEM 123 PC User Manual 55 4 4 5 Chipset Settings 4 5 1 North Bridge...