Hello TI team,
i'am trying to force the ecap module to capture the current timer value and start the cap1 ISR by software.
According to the "AM64x/AM243x Technical Reference Manual Revision 2.0" i thought it would be possible to just set the "CEVT1_FRC" bit in the appropriate ECAP_ECINT_CLR_FRC Register.
So instead of using a timer based GPIO toggling to trigger the capture event I took the values listed there into fixed variables and tried to set the bits similar to the function ECAP_oneShotReArm() i the Timer_ISR.
I tried to break it down here:
uint32_t ecap1ForceAndClearEventReg = 0x23110030; uint32_t forceCapEvent1 = (1<<17); void setBit(uint32_t reg, uint32_t bit) { uint32_t regContent = HW_RD_REG32(reg); regContent |= ((uint32_t)bit); HW_WR_REG32(reg, regContent); } //in the main setBit(ecap1ForceAndClearEventReg, forceCapEvent1);
Have I missed something here? For a tip or clarification at this point I would be very grateful.
Kind Regards,
Ronny