S08MP16 Fault Interrupt not working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S08MP16 Fault Interrupt not working

跳至解决方案
1,043 次查看
abicash
Contributor III

Hello

 

Somehow it isn't working now on a final board.Earlier on a perf board it worked every time the pin was fed with a 5v signal.

Now no interrupt is asserted.

Can the pin have become faulty? i have pulled the pin low with external resistor to avoid spurious glitches.

 

Here is my part of fault init code

{

.

.

    FTM2MODE = 0xC5;

    FTM2FLTCTRL  = 0x11;  //Fault 0 and Filter 0 enabled
    FTM2FAULTFILTER_FFVAL = 0x0F; // FFVAL x system clock = 0.9us

.

.

}

 

heres the ISR

 

void interrupt 4 FTM2FAULT_ISR (void)

{

   FTM2OUTMASK = 0x3F; //stop channels

   FTM2FMS_FAULTF = 0;

}

 

what is wrong? can someone point out?

标签 (1)
0 项奖励
回复
1 解答
930 次查看
abicash
Contributor III

Hi

It seems the pin is non functional.

It works on another board.

FYI

Thanks and regards

在原帖中查看解决方案

0 项奖励
回复
1 回复
931 次查看
abicash
Contributor III

Hi

It seems the pin is non functional.

It works on another board.

FYI

Thanks and regards

0 项奖励
回复