Other Parts Discussed in Thread: C2000WARE
Tool/software:
Hi,
I would like to use HRCAP in my project. I saw the "Example_2803xHRCap_Capture_Pwm" example project, but I don't know how to migrate the following config function to the f28p65x target:
void
HRCAP1_Config(void)
{
EALLOW;
HRCap1Regs.HCCTL.bit.SOFTRESET = 1;
HRCap1Regs.HCCTL.bit.HCCAPCLKSEL = 1; // HCCAPCLK = PLLCLK = SYSCLK x 2
//
// Enable Rising Edge Capture Event Interrupt
//
HRCap1Regs.HCCTL.bit.RISEINTE = 1;
//
// Disable Falling Edge Capture Event Interrupt
//
HRCap1Regs.HCCTL.bit.FALLINTE = 0;
//
// Disable Interrupt on 16-bit Counter Overflow Event
//
HRCap1Regs.HCCTL.bit.OVFINTE = 0;
}
I saw in the f28p65x datasheet that the available HRCAP channels are eCAP6 and eCAP7, but I don't see the corresponding bits in HRCap6Regs.
Thanks a lot in advance for your support.
Best regards,
David