DSPIC33CH512MP506 slave core.
__builtin_write_RPCON(0x0000); // unlock PPS
RPINR0bits.INT1R = 0x003F; //RC15->EXT_INT:INT1
RPINR6bits.TCKI4R = 0x003E; //RC14->SCCP4:S1TCKI4
RPINR4bits.TCKI2R = 0x003E; //RC14->SCCP2:S1TCKI2
RPINR5bits.TCKI3R = 0x003F; //RC15->SCCP3:S1TCKI3
__builtin_write_RPCON(0x0800); // lock PPS
I send pulses from the sensor to the port.
When pulses stop, I need to reset the register to count the next pulses, but the register is reset to zero on third pulse.
I do not know what the problem is.
post edited by Dima - 2019/11/27 00:21:35