![background image](http://html1.mh-extra.com/html/ibase-technology/ofp-151-pc/ofp-151-pc_user-manual_3240978126.webp)
116 OFP-151-PC/OFP-2100-PC/OFP2101-PC
//---------------------------------------------------------------------------
#ifndef F81964_H
#define F81964_H
1
//---------------------------------------------------------------------------
#define
F81964_INDEX_PORT
(F81964_BASE)
#define
F81964_DATA_PORT
(F8191)
//---------------------------------------------------------------------------
#define
F81964_REG_LD 0x07
//---------------------------------------------------------------------------
#define
F81964_UNLOCK 0x87
#define
F81964_LOCK
0xAA
//---------------------------------------------------------------------------
unsigned int Init_F81964(void);
void Set_F81964_LD( unsigned char);
void Set_F81964_Reg( unsigned char,
unsigned char); unsigned char
Get_F81964_Reg( unsigned char);
//---------------------------------------------------------------------------
#endif // F81964_H
Sample Code 2:
//---------------------------------------------------------------------------
//
// 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 "F81866.H"
//---------------------------------------------------------------------------
int main (int argc, char *argv[]);
void EnableWDT(int);
void DisableWDT(void);
//---------------------------------------------------------------------------
int main (int argc, char *argv[])
{
unsigned char bBuf;
unsigned char bTime;
char **endptr;
char SIO;
printf("Fintek 81866 watch dog program\n");
SIO = Init_F81866();
if (SIO == 0)
{
printf("Can not detect Fintek 81866, program abort.\n");
return(1);
}//if (SIO == 0)
if (argc != 2)
{
printf(" Parameter incorrect!!\n");
return (1);
}
Summary of Contents for OFP-151-PC
Page 1: ...OFP 151 PC OFP 2100 PC OFP 2101 PC Open Frame Panel PC User s Manual Version 1 0 January 2021...
Page 10: ......
Page 16: ...6 OFP Panel PC Series User Manual OFP 2100 PC Unit mm Dimensions 543 x 334 x 88 2...
Page 21: ...General Information OFP Panel PC Series User Manual 11 1 This page is intentionally left blank...