Hi All I want to know if there is trick to toggle the XF pin inside an interrupt. The XF bit is located inside status register 1 and this register is pushed-poped on the stack inside the interrupt so I'm unable to change it state. Thanks ________________ Sastien Prince Smis R&D inc. 3100, boulevard Industriel Sherbrooke (QC), J1L 1V8 Phone : (819) 829-5120 Fax : (819) 829-1133 http://www.smisrd.com |
|
Toggling XF pin inside interrupt
Started by ●October 1, 2002
Reply by ●October 1, 20022002-10-01
Sebastien- > I want to know if there is trick to toggle the XF pin inside an interrupt. > The XF bit is located inside status register 1 and this register is > pushed-poped on the stack inside the interrupt so I'm unable to change it > state. So what's stopping you? You're inside an asm. lang ISR, right? Do what you need to do. Set/clear the bit, figure out where the register is on the stack, and change the bit there too, so when you exit the ISR you won't flip the bit back to what it was. Jeff Brower DSP sw/hw engineer Signalogic |