TI中文支持网
TI专业的中文技术问题搜集分享网站

菜鸟问题

各位:刚学msp430,有问题请教各位: __bic_SR_register_on_exit(CPUOFF)和 __bic_SR_register(CPUOFF)两条指令执行结果有何不同?谢谢!

JSW-PengBo:

__bic_SR_register_on_exit()是在中断函数使用的

__bic_SR_register_on_exit

Syntax

void __bic_SR_register_on_exit(unsigned short);

Description

Clears bits in the processor status register when an interrupt or monitor function returns. The function takes an integer as its argument, that is, a bit mask with the bits to be cleared.

This intrinsic function is only available in interrupt and monitor functions.

__bic_SR_register

Syntax

void __bic_SR_register(unsigned short);

Description

Clears bits in the processor status register. The function takes an integer as its argument, that is, a bit mask with the bits to be cleared.

赞(0)
未经允许不得转载:TI中文支持网 » 菜鸟问题
分享到: 更多 (0)