Kinetis L系列外部IO中断分配问题(Tips about extern IO interrupt distribution of Kinetis L serious)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Kinetis L系列外部IO中断分配问题(Tips about extern IO interrupt distribution of Kinetis L serious)

Kinetis L系列外部IO中断分配问题(Tips about extern IO interrupt distribution of Kinetis L serious)

我们知道Kinetis L系列的中断向量表中只支持两个外部中断向量(vector_46 and vector_47),而FSL早期推出的的KL系列(包括KL25\KL24、KL15\KL14)只有PORTA和PORTD两个IO口支持中断,不过最新推出的KLx6系列(KL26、KL16和KL46)可以支持PORTA、PORTC和PORTD三个IO口的外部中断,其中PORTC和PORTD这两个IO端口共享同一个中断向量,另外,KL0x系列(包括KL02、KL04和L05)由于外部引脚只有PORTA和PORTB两个IO端口,所以它所支持的外部中断只有PORTA和PORTB。


下图分别为KLx5\KLx4系列(不包括KL05\KL04)、KLx6系列和KL05\KL04\KL02的外部中断向量分配表:


KLx5\KLx4:

8864_8864.jpgCapture.JPG.jpg

KLx6:

8865_8865.jpgCapture1.JPG.jpg

KL0x:

8866_8866.jpgCapture2.JPG.jpg

KLx6的头文件注释:

9207_9207.jpgCapture.JPG.jpg

最后需要注意的是,目前所有官方的demo例程(KLxx_SC)的中断向量表vector.h和MKLxxxx.h文件中关于中断向量的注释仍然是PORTA和PORTD,甚至有一部分例程中中断向量表的注释仍然是M4的注释直接移过来的,容易误导客户编程,这点需要在设计PCB板的时候有所考虑。

Labels (1)
Comments

Hi

Can u translate this in English as Many users will be benefited.

Kind Regards

Amit Kumar

I can not read the text either, however it seems from the highlighted parts of the data sheet what they are saying:

Vector 47 is inconsistent between the different parts.

This is either a documentation error in the various data sheets, or it is impossible to drop one part in place of an other without a lot of #ifdef's cluttering up the code, if you want to used different parts in the same board (lower cost parts of lower featured product, bigger parts for high end product).

Which of the two possibilities is it?

At the end they are also saying something about the example code is not matching/working due to vector 47.

No ratings
Version history
Last update:
‎01-22-2014 02:06 AM
Updated by: