AnsweredAssumed Answered

UART2 Interrupt

Question asked by Hellostm on Jun 24, 2010
Latest reply on May 11, 2011 by aymoto.fabio
Hello i'm port uart2 polling receive data from hyperterminal it's ok. but i need use uart2 receive data with interrupt?

  TIM3_DeInit();
 
  TIM3_TimeBaseInit(TIM3_PRESCALER_1,0xFFFF);
   TIM3_ITConfig(TIM3_IT_UPDATE, ENABLE);
    enableInterrupts();
    GPIO_Init(GPIOD, 0x01 , GPIO_MODE_OUT_PP_LOW_FAST);
       
    CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV1);

    UART2_DeInit();
    UART2_Init((u32)9600, UART2_WORDLENGTH_8D,    UART2_STOPBITS_1, UART2_PARITY_NO, UART2_SYNCMODE_CLOCK_DISABLE, UART2_MODE_TXRX_ENABLE);

    UART2_ClearITPendingBit(UART2_IT_RXNE);
    UART2_ITConfig(UART2_IT_IDLE, ENABLE);


this code incorrect i don't know use function and see a register please help me

Outcomes