please do this busy loop in a more expressive way, perhaps:
```
while ((CCTL2 & CCIFG) != CCIFG) {
    ; /* busy looping until capture occured!*/ 
}
```