enable the global interrrupt

hii sir , i am quite confuse about the interrupt in msp430,in data sheet given that if we want to use interrupt then we have to first enable the global interrupt in status register.then we can use P1IE , P1IES. _bis_SR_register(GIE) so their is other way to enable it or we can simply enable it by using P1IE. how to enable GIE in vissim embedded. thanks

Yogesh, VisSim handles the

Yogesh, VisSim handles the interrupt enable code for you. You don't need to worry about it. VisSim automatically sets up the timer interrupt. Your diagram becomes the interrupt handler. All you need to do is sample at 10 kHz instead of 100 Hz to increase your distance measure precision. See attached.