Ok more info on this problem
the way MCC does the setup for CWG is RA2
and ZCD is also RA2 (chained input for both and setting CWG1DAT = 0x07 NCO
does not remove the chain)
testing, started new project
setup NCO at 120 Hz
setup CWG with NCO as input worked fine...
took out //CWG1PPS = 0x02; //RA2->CWG:CWG1IN;
setup ZCD 60 Hz at input
setup CLC to route ZCD to CWG and it went dead...
set it back to NCO , fine working again 120 Hz
sent the out of CLC to a pin, it was DEAD
there must be a BIG BUG in MCC...
and I don't where/how to search for it
any help welcome davea
ric you were correct wink:
zip file to big 600k to attach mad: