Of course. The whole code is large (the interrupt is only apart of the program), but this is the part relevant of the problem:
; **** main system initialization *******
main:
_Startup:
SEI ; disable interrupts before system initialization
LDHX #__SEG_END_SSTACK ; initialize the stack pointer
TXS
JSR MCU_init
JSR INITLCD
JSR INITTPM
JSR INITADC
CLI ; enable interrupts
;******** TPM initialization *********
;*
;**************************************
;* INITTPM *
;* *
;* TPMSC *
;* (Timer Overflow interrupt enable) disabled, *
;* bus rate clock (4Mhz), prescaler = 16 *
;* *
;* TPMC0SC *
;* input capture, interrupt enable, Capture on rising *
;* edge *
;***************************************
INITTPM
MOV $4C,TPMSC;
MOV $44,TPMC0SC
RTS
;****** main body ********
SEN_ACT ;**** this pulse send a "woke up" request to the sensor ****
BSET ENREV,PTAD ; PTA4 <-- 1 Start sensor trigger
JSR DLY10U ; Delay 10uS aprox
BCLR ENREV,PTAD ; PTA4 <-- 0 Endof trigger pulse
JSR DLY100 ; Waits for sensor pulse and interrupt (0.1 seg)
.....
..... ; //this part process the width obtained
BRA