It works for me with the RedBoad/Arduino Uno.
I have some AtMEGA328P devices lying around at home.
I will see if I can replicate the issue with your settings when I get a chance.
uart interrupt avr
-
- Matrix Staff
- Posts: 1917
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 621 times
- Been thanked: 645 times
-
- Matrix Staff
- Posts: 1917
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 621 times
- Been thanked: 645 times
Re: uart interrupt avr
I have just tried with a ATMEGA328P dip, 16MHz xtal and 2x 22PF caps.
All working as expected using Uart_exp v2.fcfx, posted earlier.
What I did to make sure the hardware was set up correctly, was to change the delays of the 1sec flasher to 10ms for a loop count of 100.
I then checked the delay was exactly 10ms and it was.
As the interrupt is working for me, I still would suggest you have an issue with your hardware.
I can't explain how the RX worked when not using an interrupt.
All working as expected using Uart_exp v2.fcfx, posted earlier.
What I did to make sure the hardware was set up correctly, was to change the delays of the 1sec flasher to 10ms for a loop count of 100.
I then checked the delay was exactly 10ms and it was.
As the interrupt is working for me, I still would suggest you have an issue with your hardware.
I can't explain how the RX worked when not using an interrupt.
Martin
-
- Matrix Staff
- Posts: 1917
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 621 times
- Been thanked: 645 times
Re: uart interrupt avr
That will be the case.
I did use Channel 1 UART for the demo I posted.
At least you have it working now.
I will need more information.
Normally the console is for simulation.
However, a tab can be created within the console, then any text entered can be transferred to a string variable for transmitting via UART.
Is that what you want to do?
Martin