Keil™, An ARM® Company

Technical Support

C166: GENERATE ENWDT INSTRUCTION


Information in this article applies to:

  • C166 Version 5

QUESTION

The 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?

ANSWER

The 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 THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Friday, July 15, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure