TC1796 disable/enable interrupts

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

formatting link

Reply to
beartech
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.