Hello: I'm developing a software for Infineon XC167CI, and I'm using DAvE and Keil uVision2 for it. I cannot get through a problem concerning the intrinsic function _bfld_, whose prototype is: void _bfld_ (unsigned int sfr_, unsigned mask1, unsigned mask2) Using a statement such as:
_bfld_ (PSW, 0xF000, 0xF000); // disable interrupts
Take a look to: http://www.keil.com/download/docs/xc16x_iap-flash.zip.asp. This example might come closer to what you need.
Hello, mr. Keil: Thanks for the suggestions. With them, I have solved the problem. Lucas