IO Device:F81966 LPC DIO under Linux console

From LEXWiKi

Revision as of 17:36, 9 September 2024 by Jay-chen (Talk | contribs)
Jump to: navigation, search

Contents

The Sample code source you can download from

<Google Drive>

Source file: F81966_DIO_v1.1L_Src

Binary file: F81966_DIO_v1.1L_Bin_x86 F81966_DIO_v1.1L_Bin_x64

F81966 Libary : F81966_LIB_v1.1L_x86 F81966_LIB_v1.1L_x64

<FTP>

Source file: F81966_DIO_v1.1L_Src

Binary file: F81966_DIO_v1.1L_Bin_x86 F81966_DIO_v1.1L_Bin_x64

F81966 Libary : F81966_LIB_v1.1L_x86 F81966_LIB_v1.1L_x64

MB Support List

IvybridgeBayTrail Apollo Lake Skylake/KabylakeCoffee LakeWhiskey LakeAMDCardElkhart Lake

2I847H 3I847A/D/CW/NX/NM/HW 3I770A/CW CI847A/C CI770A/C

1I385A/H 1I386H 2I380A 2I385A/CW 2I380NX 2I385BW/EW/HW/PW 2I386EW 2I382A 2I382DW 3I380A/CW/NX ST385W/AW/CW

2I390CW 2I392CW 3I390AW 3I390NX 3I393NX PM390CW

2I610DW/HW 2I612CW 3I610DW 3I612DW 3I170DW/HW/NX ST610W CI170A/C PM610DW PM170DW

CI370DW

2I810D 3I810DW

3A100DW

CIO116-G E691A

2I640DW

edit table

Introduction F81966 DIO

Image:F81966_Linux_help.png

  1. Start test Button,Send bits one by one and one by one receive
  2. CIO116 mode for CIO116 module use
  3. Set time countdown,If the end of the countdown, the trigger signal to reboot
  4. Enable loop ,Continuously reset the WDT to ensure that when the system is normal, the restart signal will not be triggered

F81966_DLL Function

 bool F81966_OPEN();
 void F81966_Init();
 void F81966_LPC_Write(BYTE LDNData, BYTE reg, BYTE value);
 BYTE F81966_LPC_Read(BYTE LDNData, BYTE reg);
 void F81966_LPC_Digital_Write_LOW(BYTE byteValue);
 void F81966_LPC_Digital_Write_HIGH(BYTE byteValue);
 BYTE F81966_LPC_Digital_Read_LOW();
 BYTE F81966_LPC_Digital_Read_HIGH();
 void F81966_LPC_Set_WDT_Enable(BYTE byteValue);
 void F81966_LPC_Set_WDT_Disable();
 void EntryLPC();
 void ExitLPC();

Digital Input/Ooutput test

Note when using the following boards:2I110D
CIO1 needs to be controlled by CIO3

Image:F81966_io_define.jpg
sample code

Set CIO1 CIO2 Digital Output all high
F81966_LPC_Digital_Write_LOW(256);

Set CIO1 CIO2 Digital Output all low
F81966_LPC_Digital_Write_LOW(0);

Set CIO1 Digital Output bit 4 high
F81966_LPC_Digital_Write_LOW(16);

Set CIO2 Digital Output bit 10 high
F81966_LPC_Digital_Write_HIGH(4);

Read Din
value = F81966_LPC_Digital_Read_LOW();

Watch Dog test

sample code

Set WDT 10 sec
F81966_LPC_Set_WDT_Enable(10);
Disable WDT
F81966_LPC_Set_WDT_Disable();
Personal tools