of the CPU.*/
break;
case '4':
Delay_2(1000); /*delay unit is 0.01 ms, uses the Timer 1
feature of the CPU .*/
break;
case 'q':
quit=1;
break;
}
}
time=TimerReadValue(); /*reads the timer*/
Print("\r\nTime=%8.3f sec", 0.001*time);
}
TimerClose(); /*closes the timer function*/
}
TimerClose()
Function: Stops the timer function.
Syntax:
int TimerClose(void);
Header: #include
”7188xc.h”
Description: If the program has called the OpenTimer() function, it
must call TimerClose() before exiting.
Return Value: Always returns NoError.
Example: Please refer to “TimerOpen()” function for more detailed
information.
TimerResetValue()
Function: Resets the timer to 0.
Syntax:
void TimerResetValue(void);
Header: #include
”7188xc.h”
Description: Resets the main time ticks to 0.
Example: Please refer to “TimerOpen()” function for more detailed
information.
TimerReadValue()
Function: Reads the main time ticks.
Syntax:
unsigned long TimerReadValue(void);
Header: #include
”7188xc.h”
Description: Reads the main time ticks. The time unit is ms. When
I-7188XC Series User’s Manual(Ver.1.0, Apr/2007,7MH-21-10) ---
118
Содержание I-7188XC Series
Страница 87: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 87...
Страница 136: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 136...
Страница 142: ...Step 8 Make the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 142...
Страница 149: ...Step 8 Rebuild the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 149...