Quantcast
Viewing all articles
Browse latest Browse all 63778

Forum Post: RE: Msp430 hcsr04 interrupt

Using interrupts typically requires that you organize your program as a state machine, and in the interrupt handler, you do whatever is necessary in the current state. Have a look at the MSP example programs. With the LaunchPad, to output something to the terminal, just write it to the UART output. (See the UART examples.) When using interrupts, it's more complex because you write only one byte at a time from the interrupt handler.

Viewing all articles
Browse latest Browse all 63778

Trending Articles