Possible to receive UART RX data within the UART interrupt handler?

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

Possible to receive UART RX data within the UART interrupt handler?

750 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by 12345 on Mon Aug 01 18:53:39 MST 2011
For the LPC microcontroller....
For example something look like below...

void UART_IRQHandler(void) // not complete
{

NVIC_DisableIRQ(UART_IRQn);
if (IIRValue == IIR_RDA)
{
       
for(i=0;i<max;i++)
{
  if (i<256)
  {ucRXBuffer[wReceiveDataEnd++] = LPC_UART->RBR;
}

  NVIC_EnableIRQ(UART_IRQn);

}
0 项奖励
回复
1 回复

733 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Europe on Wed Jan 18 07:33:46 MST 2012
If you search for 'sample code bundle' on http://ics.nxp.com/support/documents/microcontrollers, you will find UART interrupt routine examples for every LPC family.
0 项奖励
回复