MPC5748G  :1588 Timer interrupt

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

MPC5748G  :1588 Timer interrupt

1,147 Views
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 ?

Labels (1)
0 Kudos
2 Replies

747 Views
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 Kudos

747 Views
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 Kudos