How to use GPT 6 catch to the input capture with GTIOC6A and GTIOC6B,with 2 channel?

How to use GPT 6 catch to the input capture with GTIOC6A and GTIOC6B,with 2 channel? Have some example?Thank you