I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---
129
void main(void)
{
int quit=0;
Print("\n\rTest the LCD lamp blink using user timer ");
Print("\n\rPress 'q' to quit\n\r");
InitLib(); InitLCD(); /*initial Lib & LCD*/
ClrScrn(); /*clear the LCD screen*/
TimerOpen(); /*open timer function*/
InstallUserTimer(MyTimerFun); /*install and call user timer */
while(!quit){
if(Kbhit() && Getch()=='q') quit=1;
}
TimerClose();
}
InstallUserTimer1C()
Function: Installs a custom timer function on interrupt 0x1c. The
system timer will call int 0x1c at intervals of 55 ms.
Syntax:
void InstallUserTimer1C(void (*fun)(void));
Header:
#include ”7188xa.h”
Description: fun: A pointer to the custom function. The function
cannot use an input argument and cannot return a value.
Example: Please refer to “InstallUserTimer()” function for a similar
example.
EnableWDT()
Function: Enables the WatchDog timer.
Syntax:
void EnableWDT(void);
Header:
#include ”7188xa.h”
Description: The WatchDog Timer (WDT) is always enabled and will
be continually refreshed by the system Timer ISR. When
a custom program calls EnableWDT(), the system timer
ISR will stop refreshing the WDT, which must then be
performed by calling RefreshWDT() from within the
program, otherwise, the system will be reset by the WDT.
The WDT timeout period is 0.8 seconds for MiniOS7 2.0.
Example:
#include"7188xa.h"
void main(void)
{
Содержание I-7188XA
Страница 62: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 62 5 6 COM1 RS 232 1 2 232...
Страница 90: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 90 1 2...
Страница 140: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 140...
Страница 146: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 146 Step 8 Make the project...
Страница 153: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 153 Step 8 Rebuild the project...
Страница 158: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 158...
Страница 161: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 161 Below snap shots are steps for install TC 3 0...
Страница 162: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 162...
Страница 164: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 164...