The PWM will be normal but I want to fire separate digital outputs at zero crossing and max to sync up an external device.
Is there a way to access the PWM registers directly, so I can fire these outputs based on their value?
The PWM will be normal but I want to fire separate digital outputs at zero crossing and max to sync up an external device.
Is there a way to access the PWM registers directly, so I can fire these outputs based on their value?
Hi,
In PBP all (almost) the registers of the PIC MCU are accessible. The 2 LSB of the PWM are in the CCPCON(CCP1CON/CCP2CON) bit 5,4. The MSBs are directly accessible using the CCPR1L and CCPR2L.
Regards
Sougata
Bookmarks