Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 66738

Forum Post: RE: Msp430 hcsr04 interrupt

$
0
0
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 66738

Trending Articles



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