7 years, 8 months ago.

RawSerial with interrupt on KL25Z target

I am using RawSerial with interrupt for reception. The code works with port A (PTA2, PTA1) or D. But doesn't work if I use any other port such as B (PTB17, PTB16). Is it because KL25Z only A and D support external interrupt?

Thanks, Hemant

1 Answer

7 years, 8 months ago.

Correct. Only A & D supported on KL25Z. See InterruptIn docs.

Thinking again on the question, I believe the interrupt should be an internal interrupt generated by the UART module. And hence shouldn't be associated with any external pin such as Rx in our case. So even if port B doesn't support external interrupt, the RawSerial module should still work. What do you think?

posted by Hemant Joshi 07 Sep 2016