Forums

TC1796 disable/enable interrupts

Started by beartech July 24, 2012
Hello, using TC1796 microprocessor, can't disable and enable interrupt
around critical sections of code.  Any suggestions?

Referring to the Tricore Architecture Volume 1 manual:
The processor is running in User-1.  In this mode you should be able to
disable and enable interrupts.
checked in debugger, PSW.IO = 0x01, User-1 Mode, "Tasks at this level may
disable interrupts." (quoting the above manual)

Using the following to enable/disable interrupts:
asm volatile ("enable" : : : "memory");
asm volatile ("disable" : : : "memory");
Stepping through these lines of assembler in the debugger, ICR.IE (Global
Interrupt Enable) is always set.


	   
					
---------------------------------------		
Posted through http://www.EmbeddedRelated.com