Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

MSP432 toggle a bit using bit banding?

$
0
0

Hi everybody

fooling around with the MSP432 launchpad.

 

Does anybody know how to properly and elegantly use bit banding?

Could not find much on the web and in the examples...

 

 

This does not work, does not even create an error message:

 //		this does what you expect, a short pulse
    	P1OUT |= BIT0;
    	P1OUT &= ~BIT0;

//		this does nothing
    	BITBAND_PERI(P1OUT,BIT0)=1;
    	BITBAND_PERI(P1OUT,BIT0)=0;

does anybody know what I am doing wrong here?

 


Viewing all articles
Browse latest Browse all 2077

Trending Articles