Your code is a real mess; if you really want help, you should at least clean up all unused comments, which accounts more lines than compilable commands. At first sight it is possible to see things apparently meaningless, for example disabling/enabling interrupt in consecutive lines, disabling interrupts within isr vector(unnecessary on CCS compiler), etc... As FvM mentioned above, you could post the code not as an attachment, but righ here on the post - enclosed by proper tags.