請先看『使用說明』
IO Device:F81966 LPC DIO under Linux console
From LEXWiKi
(Difference between revisions)
(→MB Support List) |
(→Digital Input/Ooutput test) |
||
(2 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
[[Category:AllowPages]] | [[Category:AllowPages]] | ||
== The Sample code source you can download from == | == The Sample code source you can download from == | ||
- | + | <!-- | |
<Google Drive> | <Google Drive> | ||
Line 14: | Line 14: | ||
[https://drive.google.com/file/d/1YNIuL2erP1zZbBHSq8a-yj4PtVyBeQgS/view?usp=sharing F81966_LIB_v1.1L_x86] | [https://drive.google.com/file/d/1YNIuL2erP1zZbBHSq8a-yj4PtVyBeQgS/view?usp=sharing F81966_LIB_v1.1L_x86] | ||
[https://drive.google.com/file/d/1Pg53LOhnpjrsgptcKI10wfQOhsUxYE5J/view?usp=drive_link F81966_LIB_v1.1L_x64] | [https://drive.google.com/file/d/1Pg53LOhnpjrsgptcKI10wfQOhsUxYE5J/view?usp=drive_link F81966_LIB_v1.1L_x64] | ||
+ | --> | ||
<FTP> | <FTP> | ||
Line 81: | Line 82: | ||
'''sample code''' | '''sample code''' | ||
<pre> | <pre> | ||
- | Set CIO1 CIO2 Digital Output all high | + | Set CIO1 CIO2 Digital Output all bit high |
F81966_LPC_Digital_Write_LOW(256); | F81966_LPC_Digital_Write_LOW(256); | ||
- | Set CIO1 CIO2 Digital Output all low | + | Set CIO1 CIO2 Digital Output all bit low |
F81966_LPC_Digital_Write_LOW(0); | F81966_LPC_Digital_Write_LOW(0); | ||
Line 90: | Line 91: | ||
F81966_LPC_Digital_Write_LOW(16); | F81966_LPC_Digital_Write_LOW(16); | ||
- | Set | + | Set CIO3 Digital Output bit 11 high |
- | F81966_LPC_Digital_Write_HIGH( | + | F81966_LPC_Digital_Write_HIGH(8); |
</pre> | </pre> | ||
<pre> | <pre> | ||
Read Din | Read Din | ||
- | + | dwRead = F81966_LPC_Digital_Read_LOW(); | |
+ | dwRead = F81966_LPC_Digital_Read_HIGH(); | ||
</pre> | </pre> | ||
Current revision
Contents |
The Sample code source you can download from
<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 Lake | Raptor Lake |
---|---|
2I640CW |
3I130TW |
Introduction F81966 DIO
- Start test Button,Send bits one by one and one by one receive
- CIO116 mode for CIO116 module use
- Set time countdown,If the end of the countdown, the trigger signal to reboot
- 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
sample code
Set CIO1 CIO2 Digital Output all bit high F81966_LPC_Digital_Write_LOW(256); Set CIO1 CIO2 Digital Output all bit low F81966_LPC_Digital_Write_LOW(0); Set CIO1 Digital Output bit 4 high F81966_LPC_Digital_Write_LOW(16); Set CIO3 Digital Output bit 11 high F81966_LPC_Digital_Write_HIGH(8);
Read Din dwRead = F81966_LPC_Digital_Read_LOW(); dwRead = F81966_LPC_Digital_Read_HIGH();
Watch Dog test
sample code
Set WDT 10 sec F81966_LPC_Set_WDT_Enable(10);
Disable WDT F81966_LPC_Set_WDT_Disable();