s12 bit manipulation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

s12 bit manipulation

1,112 次查看
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,008 次查看
dastek
Contributor III

I just use the following :

TFLG1 = C0F;

Where C0F = 1;

0 项奖励
回复