Page 1 of 2
uart interrupt avr
Posted: Sat Dec 18, 2021 8:33 am
by d820513
Hi guys! why flowcode 9 does not work interrupt on UART avr microcontroller?
Re: uart interrupt avr
Posted: Sat Dec 18, 2021 11:30 am
by medelec35
Hi.
I have just tested the ATmega328P with UART0 RX and the interrupt is working as expected.
For make sure the
one-second flasher test works as expected.
Have you tested UART is set up correctly by seeing chars and checking they are as expected?
It makes a difference where the RXINT interrupt is placed.
For example, the interrupt will only work if its placed after the UART Initialise and not before.
If your Flowchart is still not working, then can you post it and I will see if I can spot any issues.
Re: uart interrupt avr
Posted: Sat Dec 18, 2021 12:09 pm
by d820513
Thank you. I will now post an example, I am trying to receive data from sim800l, and unfortunately I can't get interrupted
Re: uart interrupt avr
Posted: Sat Dec 18, 2021 12:14 pm
by d820513
baud rate on sim 800l 9600, as well as on the atmega328p controller, I do not understand what the problem is. I would be grateful if you showed how to properly organize the reception of data via UART
Re: uart interrupt avr
Posted: Sat Dec 18, 2021 1:03 pm
by medelec35
The attached works for me when I change it to my target.
If it does not work for you, then you have a hardware issue.
First, can you check your components are up to date?
Try the second flash as suggested.
Send a character and make sure it's shown correctly in your terminal software.
If it's not then the hardware clock speed does not match the clock speed of your configuration settings.
Re: uart interrupt avr
Posted: Sat Dec 18, 2021 1:20 pm
by d820513
yes I checked everything, this option works without interruption.
I do not understand what's the matter
Re: uart interrupt avr
Posted: Sat Dec 18, 2021 1:31 pm
by medelec35
What about trying with the version I have uploaded?
Re: uart interrupt avr
Posted: Sat Dec 18, 2021 1:54 pm
by d820513
what version are you talking about? did I miss something
Re: uart interrupt avr
Posted: Sat Dec 18, 2021 2:32 pm
by medelec35
The version on
this post.
Uart_exp v2.fcfx
Re: uart interrupt avr
Posted: Sat Dec 18, 2021 2:46 pm
by d820513
unfortunately the interrupt does not work for me
