請先看『使用說明』
IO Device:IntelDIO
From LEXWiKi
(→For Looping test) |
(→For Single pin test) |
||
Line 43: | Line 43: | ||
=== For Single pin test === | === For Single pin test === | ||
- | [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/852_DIO_Sample_Windows/852_DIO_WDT_Single_Src.rar 852_DIO_WDT_Single_Src.rar] | + | Source file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/852_DIO_Sample_Windows/852_DIO_WDT_Single_Src.rar 852_DIO_WDT_Single_Src.rar] |
- | [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/852_DIO_Sample_Windows/852_DIO_WDT_Single_Bin.rar 852_DIO_WDT_Single_Bin.rar] | + | Binary file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/852_DIO_Sample_Windows/852_DIO_WDT_Single_Bin.rar 852_DIO_WDT_Single_Bin.rar] |
+ | |||
+ | Google Drive: [https://drive.google.com/drive/folders/14Q2YBmPAwK2yYhhukeNbjA9qERETCfdd?usp=sharing FI/CI/SI/MI DIO/WDT Function under Windows Single pin test] | ||
== How to use this Demo Application == | == How to use this Demo Application == |
Revision as of 08:45, 15 February 2022
Contents |
Introduction
Define Pin Address
#define INTEL_WDTE 0x600 #define INTEL_WDTD 0x604 #define INTEL_DI 0x608 #define INTEL_DO 0x60C
Initialize WinIO & Uninitializ WinIO
InitializeWinIo() ShutdownWinIo()
Set DI/DO
DO: DIO_Write(BYTE dwDataVal) { SetPortVal(INTEL_DO, dwDataVal, 1); } DI: DIO_Read() { DWORD dwPortVal; GetPortVal(INTEL_DI, &dwPortVal,1 ); return (BYTE)(dwPortVal); }
Enable/Disable WDT
Enable : SetPortVal(INTEL_WDTE, m_CountDown, 1); // m_CountDown is timer of WDT Disable: GetPortVal(INTEL_WDTD,&dwPortVal,1);
The Sample code source you can download from
For Looping test
( This sample code using WinIO.dll )
Source file: 852_DIO_WDT_Src.rar
Binary file: 852_DIO_WDT_Bin.rar
Google Drive: FI/CI/SI/MI DIO/WDT Function under Windows Looping test
For Single pin test
Source file: 852_DIO_WDT_Single_Src.rar
Binary file: 852_DIO_WDT_Single_Bin.rar
Google Drive: FI/CI/SI/MI DIO/WDT Function under Windows Single pin test
How to use this Demo Application
For Looping test
1. Press the "Start" button to test DIO function
2. Press the "Enable" button to test WDT function
3. Press the "Disable" button when WDT enable to disable WDT
For Single pin test
1. Connected the DI and DO pin
2. Before you press the "Write" button, Check the box what you like to send high data first
3. Press the "Read" button to get data from DO
4. Press the "Enable" button to test WDT function
5. Press the "Disable" button when WDT enable to disable WDT