Hello,
You said previous reply that this MCU doesn't support both falling and rising edge.If I use interrupt with both edges, which type of MCU should I use?
Another question:
I use Port T for keypad, so I can't use Port T to capture edges. I try to write program by using PPSP as below:
Interrupt is falling edge(it read) when Sensor detect without PPSP
void OP6_OnInterrupt(void){
dword zcommandID |= OP6FIRE;
CAN1_SendFrameExt((zcommandID|CAN_EXTENDED_FRAME_ID),DATA_FRAME,8,buff1);
}
Interrupt is rising edge(it read) when sensor doesn't detect
void OP6_OnInterrupt(void){
dword zcommandID |= OP6FIRE;
CAN1_SendFrameExt((zcommandID|CAN_EXTENDED_FRAME_ID),DATA_FRAME,8,buff1);
if (PPSP_PPSP1 = 1)
{
dword zcommandID |= OP6FIRE;
CAN1_SendFrameExt((zcommandID|CAN_EXTENDED_FRAME_ID),DATA_FRAME,8,buff1);
}
}
Is it something wrong in my program ?
Please give some advice.
Thanks