Hi,
is it possible for the C164ci target in simulation mode to make the pin toggling of the CAPCOM output visible inside the Logic Analyzer (PK-166)?
I am using the CAPCOM6 in Edge Aligned mode, cnfigured for PWM usage. I would like to debug the output signalCOUT60 (P1L.1) and COUT61 (P1L.3) using the Logic Analyzer.
/* PWM0 and PWM1 signal frequency configuration */ D_PWM1 = 1; D_PWM2 = 1; /* Configuration of the PWM outputs */ CC6MSEL = 0x0022; /* 5V -> 10bits */ CTCON = 0x001C; /* 10230 = 100% full scale */ T12P = 10230; T12OF = 0;
Thank you in advance for any hints or experiences, Sammy
Assuming you have
#define D_PWM1 CC60 #define D_PWM2 CC61
I would also change latching of the period and starting of T12.
/* PWM0 and PWM1 signal frequency configuration */ D_PWM1 = 1; D_PWM2 = 1; /* Configuration of the PWM outputs */ CC6MSEL = 0x0022; /* 10230 = 100% full scale */ T12P = 10230; T12OF = 0; /* 5V -> 10bits */ CTCON = 0x001C;
Then you need to configure two pins in the "Setup Logic Analyzer" screen.
For one: Current Logic Analyzer Signals: PORTL1 -> Bit -> And Mask 2 -> Shift Right 1
For the other For one: Current Logic Analyzer Signals: PORTL1 -> Bit -> And Mask 8 -> Shift Right 3
Hope this helps