Hot!MPLAB harmony USART driver works in polled mode but not in interrupt mode.

Author
Akshayy
Super Member
  • Total Posts : 351
  • Reward points : 0
  • Joined: 2016/07/29 06:35:35
  • Location: 0
  • Status: offline
2018/03/13 23:09:31 (permalink)
0

MPLAB harmony USART driver works in polled mode but not in interrupt mode.

Hi,
 
    I have configured byte model of USART driver in harmony.I am using PIC32MX250F256H controller.It works well in polled mode.But if i choose interrupt mode,It doesnt work.
 
What I did in harmony is
1. Select USART driver.
2. Static interrupt mode
3. Byte model non  blocking
4. interrupt priority 1,sub-priority 1,9600,UART3,operation mode normal.
 
I generated application code.
 
In polling mode
if(transmitterbufferisfull)
{
Transmit the data
}
same thing is happening in interrupt mode also
why it is polling this buffer in interrupt mode?

Regards,
Akshay.
#1

1 Reply Related Threads

    Akshayy
    Super Member
    • Total Posts : 351
    • Reward points : 0
    • Joined: 2016/07/29 06:35:35
    • Location: 0
    • Status: offline
    Re: MPLAB harmony USART driver works in polled mode but not in interrupt mode. 2018/04/06 00:08:35 (permalink)
    0
    It worked.we should assign handler to callback function for tx and rx and define those function.Why doesn't Harmony application generator do it for us?

    Regards,
    Akshay.
    #2
    Jump to:
    © 2018 APG vNext Commercial Version 4.5