LPC2468 clear ethernet interrupt flag (rxdone) problem

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

LPC2468 clear ethernet interrupt flag (rxdone) problem

446 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by thieulam on Sun Jun 14 01:20:13 MST 2015
Hello!
I'm working with ethernet mac module inside the LPC2468.(i use iar for arm v6.5).
I need a interrupt service routine for the RxDone event.
It works, but i have a problem clearing the interrupt flag.
All works if i clear the flag with:

void EthRxIntrHandler (void)
{
  INTCLEAR=0x0f;        //THIS CLEAR 4 FLAGS!!
  VICADDRESS = 0;
}

But NOT with:
void EthRxIntrHandler (void)
{
INTCLEAR_bit.RXDONEINTCLR=1;
  VICADDRESS = 0;
}

Can you help me?
Regards , Luca
Labels (1)
0 Kudos
1 Reply

321 Views
aleksandrashche
Contributor I

INTCLEAR is Write Only.

When you use INTCLEAR_bit.RXDONEINTCLR=1;, data read from register, ored and write.

0 Kudos