s12 bit manipulation

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

s12 bit manipulation

1,137件の閲覧回数
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 !

タグ(1)
0 件の賞賛
返信
1 返信

1,033件の閲覧回数
dastek
Contributor III

I just use the following :

TFLG1 = C0F;

Where C0F = 1;

0 件の賞賛
返信