Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22363

Compiler/MSP430F5131: Simple C question

$
0
0

Part Number:MSP430F5131

Tool/software: TI C/C++ Compiler

I still struggle with seldom-used C "logical" statements -

for speed faster than using an ISR, I want to spin on an interrupt flag for port P1.2 until it becomes a "1"

What's the proper syntax;  While (~P1IV & 0x40) doesn't seem to do it - do I need a semicolon, braces, or some other inversion like ! or what?

Thx for some add'l education!


Viewing all articles
Browse latest Browse all 22363

Trending Articles