![ICP DAS USA PIO-D64 User Manual Download Page 49](http://html1.mh-extra.com/html/icp-das-usa/pio-d64/pio-d64_user-manual_3741676049.webp)
PIO-D64/PIO-
D64U User’s Manual ( Ver.1.
6, Mar. 2015, PMH-007-16 ) ----- 49
5.7.3 PIOD64_SetCounterA
Description :
This subroutine is used to set the 8254 counter's mode and value.
Users have to call the PIODIO_ActiveBoard() function before calling this
function.
Syntax :
void PIOD64_SetCounterA(WORD wCounterNo, WORD
bCounterMode, DWORD wCounterValue);
Parameter :
wCounterNo
: [
Input
] The 8254 Counter-Number: 0 to 5.
(0 to 2: Chip-0, 3 to 5: Chip-1)
wCounterMode
: [
Input
] The 8254 Counter-Mode: 0 to 5.
wCounterValue
: [
Input
] The 16 bits value for the counter to
count. Only the lower WORD is valid.
Return:
None
5.7.4 PIOD64_ReadCounterA
Description :
This subroutine is used to obtain the 8254 counter's value. Users
have to call the PIODIO_ActiveBoard() function before calling this
function.
Syntax :
DWORD PIOD64_ReadCounterA(WORD wCounterNo,
WORD bCounterMode);
Parameter :
wCounterNo : [
Input
] The 8254 Counter-Number: 0 to 5.
(0 to 2: Chip-0, 3 to 5: Chip-1)
wCounterMode : [
Input
] The 8254 Counter-Mode: 0 to 5.
Return:
Returns the 16 bits counter's value. (Only the lower WORD is valid.)
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru