Output comparator column output to GPIO in CY8C22x45, CY8C21345

Question: How to output Comparator column 2 and 3 on GPIO in CY8C22x45,CY8C21345?

 

Answer:

 

 

Write  "CSCMPGOEN = 0x80;"  for comparator bus3

and " CSCMPGOEN = 0x40;" for comparator bus2.

 

The TRM for the parts mentions for GOO6 and GOO2  bits of the register CSCMPGOEN as:

'Drives the selected CS comparator column 0 signal to GOO6' and 'Drives the selected CS comparator column 0 signal to GOO2' respectively.

This will be corrected in the next update to the TRM as 'Drives the selected CS comparator column 3 signal to GOO6' and 'Drives the selected CS comparator column 2 signal to GOO2'.