PIC16F1705 COG Not working
could you please help me with setting COG in PIC16F1705 so that it works properly?
I set peripherals in MCC, but only PWM3 works (Logic Analyzer and PORTC). COG1A is still low and COG1B is still high regardless Steered PWM/Half-Bridge mode or Edge/Level Trigger is used. Also setting of G1ASDAC/G1ASDBD and G1POLA/G1POLB does not change the output. At least G1POL should change the polarity (?). COG1STR is set to waveform and static data low (COG4.X.zip + 2 jpegs).
I also used code in assembler (COG.asm - exactly per section 18.12, page 189, DS40001729C) with the same result (only one of outputs reverted when polarity changed what I remember, but no signal occured). Other assembler code (COG_test.asm) uses setting sequence copied from cog1.c file and also does not provide expected result.
What am I doing wrong? After generating code using MCC, I open main.c project without any additional code/change and then use "Debug Project" button and see result in Simulator Logic Analyzer. I use Simulator and MPASM compiler for assembler and XC8 for C.
I have not tried on real HW yet.
This is really annoying :-(
Thank you for help