IO Device:F81966 LPC DIO under Linux console

From LEXWiKi

(Difference between revisions)
Jump to: navigation, search
Current revision (17:40, 9 September 2024) (edit) (undo)
(MB Support List)
 
(20 intermediate revisions not shown.)
Line 1: Line 1:
-
 
+
[[Category:AllowPages]]
== The Sample code source you can download from ==
== The Sample code source you can download from ==
 +
 +
<Google Drive>
Source file:
Source file:
-
[ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F81966_LPC_DIO/windows_base/F81966_LPC_GPIO_Utility_Src_v1.5.zip F81966_LPC_GPIO_Utility_Src_v1.5.zip]
+
[https://drive.google.com/file/d/1f7XxtDyAPiZIoMAg6w_CfBeCpruAckvE/view?usp=sharing F81966_DIO_v1.1L_Src]
Binary file:
Binary file:
-
[ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F81966_LPC_DIO/windows_base/F81966_LPC_GPIO_Utility_Bin_x86_v1.5.zip F81966_LPC_GPIO_Utility_Bin_x86_v1.5.zip]
+
[https://drive.google.com/file/d/1DxCovn0yHvrt6kSfOJNwwG9bAl2F0sAp/view?usp=sharing F81966_DIO_v1.1L_Bin_x86]
-
[ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F81966_LPC_DIO/windows_base/F81966_LPC_GPIO_Utility_Bin_x64_v1.5.zip F81966_LPC_GPIO_Utility_Bin_x64_v1.5.zip]
+
[https://drive.google.com/file/d/1MKdBXIAN3zo4u4vFwDFEu3nxReMsZA2U/view?usp=drive_link F81966_DIO_v1.1L_Bin_x64]
-
F81966 DLL :
+
F81966 Libary :
-
[ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F81966_LPC_DIO/windows_base/F81966_DLL_x32_v1.0.zip F81966_DLL_x32_v1.0.zip ]
+
[https://drive.google.com/file/d/1YNIuL2erP1zZbBHSq8a-yj4PtVyBeQgS/view?usp=sharing F81966_LIB_v1.1L_x86]
-
[ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F81966_LPC_DIO/windows_base/F81966_DLL_x64_v1.0.zip F81966_DLL_x64_v1.0.zip ]
+
[https://drive.google.com/file/d/1Pg53LOhnpjrsgptcKI10wfQOhsUxYE5J/view?usp=drive_link F81966_LIB_v1.1L_x64]
 +
 
 +
<FTP>
 +
 
 +
Source file:
 +
[ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F81966_LPC_DIO/Linux_console/F81966_DIO_v1.1_Src_L.tar.gz F81966_DIO_v1.1L_Src]
 +
 
 +
Binary file:
 +
[ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F81966_LPC_DIO/Linux_console/F81966_DIO_v1.1_Bin_x32_L.tar.gz F81966_DIO_v1.1L_Bin_x86]
 +
[ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F81966_LPC_DIO/Linux_console/F81966_DIO_v1.1L_Bin_x64.zip F81966_DIO_v1.1L_Bin_x64]
 +
 
 +
F81966 Libary :
 +
[ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F81966_LPC_DIO/Linux_console/F81966_LIB_v1.1_x32_L.tar.gz F81966_LIB_v1.1L_x86]
 +
[ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F81966_LPC_DIO/Linux_console/F81966_LIB_v1.1L_x64.zip F81966_LIB_v1.1L_x64]
 +
 
 +
== MB Support List==
 +
<!--box uid=f777871962f1c0432784d4e0e73802b8.1125.E5be5052285e42-->
 +
<!--
 +
******************************************************************************************
 +
*
 +
* ** PLEASE DON'T EDIT THIS TABLE DIRECTLY. Use the edit table link under the table. **
 +
*
 +
****************************************************************************************** -->
 +
{|class = 'sortable' border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; border: 1px #aaa solid; border-collapse: collapse;" id='506'
 +
|- bgcolor = #ccccff
 +
!Elkhart Lake!!Raptor Lake
 +
|-
 +
|
 +
2I640CW
 +
|
 +
3I130TW
 +
|-class='sortbottom'
 +
 
 +
|}
 +
[{{SERVER}}/lexwiki/index.php?title=Special:TableEdit&id=f777871962f1c0432784d4e0e73802b8.1125.E5be5052285e42&page=1125&pagename={{FULLPAGENAMEE}} edit table]
 +
<!--box uid=f777871962f1c0432784d4e0e73802b8.1125.E5be5052285e42-->
== Introduction F81966 DIO==
== Introduction F81966 DIO==
-
[[Image:F81966_1.4.jpg]]<br>
+
[[Image:F81966_Linux_help.png]]<br>
#Start test Button,Send bits one by one and one by one receive
#Start test Button,Send bits one by one and one by one receive
Line 23: Line 60:
== F81966_DLL Function ==
== F81966_DLL Function ==
<pre>
<pre>
-
F81966_DLL_API bool F81966_LPC_Init(pF81966_status status);
+
bool F81966_OPEN();
-
 
+
void F81966_Init();
-
F81966_DLL_API BYTE F81966_LPC_Digital_Read_LOW();
+
void F81966_LPC_Write(BYTE LDNData, BYTE reg, BYTE value);
-
F81966_DLL_API void F81966_LPC_Digital_Write_LOW(BYTE byteValue);
+
BYTE F81966_LPC_Read(BYTE LDNData, BYTE reg);
-
F81966_DLL_API BYTE F81966_LPC_Digital_Read_HIGH();
+
void F81966_LPC_Digital_Write_LOW(BYTE byteValue);
-
F81966_DLL_API void F81966_LPC_Digital_Write_HIGH(BYTE byteValue);
+
void F81966_LPC_Digital_Write_HIGH(BYTE byteValue);
-
 
+
BYTE F81966_LPC_Digital_Read_LOW();
-
F81966_DLL_API void F81966_LPC_Set_WDT_Enable(BYTE byteValue);
+
BYTE F81966_LPC_Digital_Read_HIGH();
-
F81966_DLL_API void F81966_LPC_Set_WDT_Disable();
+
void F81966_LPC_Set_WDT_Enable(BYTE byteValue);
 +
void F81966_LPC_Set_WDT_Disable();
 +
void EntryLPC();
 +
void ExitLPC();
</pre>
</pre>
=== Digital Input/Ooutput test===
=== Digital Input/Ooutput test===
 +
 +
<font Size="5"><font color=#FF0000>Note when using the following boards:2I110D</font></font><br />
 +
<font Size="5"><font color=#FF0000>CIO1 needs to be controlled by CIO3</font></font><br />
 +
<br />
[[Image:F81966_io_define.jpg]]<br>
[[Image:F81966_io_define.jpg]]<br>
'''sample code'''
'''sample code'''

Current revision

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

Elkhart LakeRaptor Lake

2I640CW

3I130TW

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