| |||||
Technical Support Support Resources
Product Information | C166: GENERATE ENWDT INSTRUCTIONInformation in this article applies to:
QUESTIONThe C166 intrinsic functions <intrins.h> support only disabling the watchdog timer via _diswdt_(). But the Infineon XC16x devices have a new ENWDT instruction. How can I generate a ENWDT instruction in my C code? ANSWERThe C166 Version 5 has an very powerful in-line assembler. Therefore you may simply add 'intrinsic' functions as you need them. For ENWDT you may simply use the following statement:
__asm { ENWDT };
A definition of an intrinsic function would look like:
#define _enwdt_() __asm { ENWDT };
void main (void) {
_enwdt_ ();
}
MORE INFORMATION
FORUM THREADSThe following Discussion Forum threads may provide information related to this topic. Last Reviewed: Friday, July 15, 2005 | ||||
| |||||