MPC5748G  :1588 Timer interrupt

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

MPC5748G  :1588 Timer interrupt

2,362 次查看
yoannlejeune
Contributor I

Hi everybody.

I’m encountering an issue with the ENET controller on a MPC5748G target. Especialy with the 1588 part.

The ENET is, at this time, pretty right configurated. Today i’m able to receive frame on it. Each time a frame is received an interrupt is rised and a routine is called. That is working.

Now i would like to have an interrupt at each 1588 period (1s). Hereafter i’m listing registers i configure to do that :

ATCR=0x00000011 (PEREN=1 ; EN=1)

ATPER=0x3B9ACA00 (1second)

ATINC=0x00003D3D (60ns period (~16.666MHz))

EIMR[TS_TIMER]=1

EIR[TS_TIMER]=1 (to clear the interrupt)

With the debugger, i can see the EIR[TS_TIMER] set to 1 each time i clear it by writing a one. But when i run the program, no external interrupt is detected by the core and my routine is never called.

Did i miss configuring something to have this interrupt ?

标签 (1)
0 项奖励
回复
2 回复数

1,962 次查看
yoannlejeune
Contributor I

Hi,

Thank you Petr. You were right, I was trying to use the vector [214].

Finally, i choose a TCCR interrupt.

Regards, Yoann

0 项奖励
回复

1,962 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

The Periodic Timer Overflow interrupt relates to vector #210 (ENET group 0).

So do you assign your interrupt function to this one properly in the vector table? Also be sure you set the INTC priority Select register, i.e. INTC.PSR[210].

BR, Petr

0 项奖励
回复