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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

748件の閲覧回数
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 返信

731件の閲覧回数
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 件の賞賛
返信