Quantcast
Viewing all articles
Browse latest Browse all 63778

Forum Post: RE: MSP430FR5739 not blinking

The information about the registers is given in the User's Guide , chapter "Digital I/O". Things like "|=" or "&= ~" are bitwise operations . In short: [quote user="sarmad mueen"]PJDIR |= BIT0|BIT1;[/quote] This instruction sets bit 0 and bit 1 of port J to output direction [quote user="sarmad mueen"]PJOUT |= BIT0;[/quote] This instruction sets bit 0 of port J to logical 1, means high level (DVcc) [quote user="sarmad mueen"]PJOUT &= ~BIT1;[/quote] This instruction sets bit 1 of port J to logical 0 (it clears the bit), means low level (DVss) Dennis

Viewing all articles
Browse latest Browse all 63778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>