I want to set or clear similar bits of the SFR. If I use the [&= ~]
command, the compiler is generate and.b but not bic.b code. I hope the
internal hardware of the MSP430 is not modified similar bits of the SFR, if
the and.b command is executed.

axel





Chris Liechti <cliec...@gmx.net>@lists.sourceforge.net am 15.06.2005
02:39:06

Bitte antworten an mspgcc-users@lists.sourceforge.net

Gesendet von:     mspgcc-users-ad...@lists.sourceforge.net


An:     mspgcc-users@lists.sourceforge.net
Kopie:
Thema:  Re: [Mspgcc-users] Modify SFR with SFR_CMD


axel_l...@sterlingsihi.de wrote:
> I want to change the SFR bits with the SFR_CMD. But the compile reported
> many error. What is wrong in my source code?
...
>    SFR_CMD(bis.b, IE1, WDTIE);

why do you want to use SFR_CMD? the compiler generates the instruction
you want with "IE1 &= ~WDTIE;"

chris



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mspgcc-users



Reply via email to