There are 1 messages in this thread.
You are currently looking at messages 1 to 1.
So far in May, you have voted 0 times ou of a total of 20 votes by the community.
Please help us clean the archives from unuseful discussion threads by using the voting system! Details here.
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