Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 2 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
8 years, 2 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 07 Sep 2016