LPC2468 clear ethernet interrupt flag (rxdone) problem

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

LPC2468 clear ethernet interrupt flag (rxdone) problem

459 次查看
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
标签 (1)
0 项奖励
1 回复

334 次查看
aleksandrashche
Contributor I

INTCLEAR is Write Only.

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

0 项奖励