What is the mechanism for detecting an active ATD trigger on an MC9S12C device. The port is triggering ok, but I am having trouble detecting the trigger status in software. I would like to know when the trigger is active and also when it is inactive. I am currently attempting to do this with the PORTAD register, (after enabling PTAD7 in ATDDIEN), but this method has not been reliable thus far. Please advise on a better method.