s12 bit manipulation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

s12 bit manipulation

605 Views
fanziyu
Contributor IV

Hi,

I used the MCU(S12ZVL32) to generate two timing interrupts, respectively 500us and 1ms,but Something unexpected happened.

When I searched on forum, I found that the interrupt flag could not be cleared with a bit operation.moreover,Reference Manual says that BSET must not be used to clear interrupt flags.

My problem is In which case bit manipulation is forbiden.

thanks !

Tags (1)
0 Kudos
1 Reply

501 Views
dastek
Contributor III

I just use the following :

TFLG1 = C0F;

Where C0F = 1;

0 Kudos