custom interrupt for ch3 for ATMEGA2560
Posted: Tue Apr 04, 2023 12:29 am
Hi,
I am working on an ATMEGA2560 with avr chipset. Overall goal I am trying to receive data from a device on ch1(inspectra), receive data from another device ch3(weather), and send clean info from both devices out via ch2(modbusSlave). I added a 2nd circular buffer so all weather data can be fed to it but was having issues with the circular buffer. When I would use my LED screen to see if data was incoming, I get a return of 0. Found out I need another interrupt but since Flowcode does not have an interrupt on UART2 RX I made a custom interrupt.
I made the customer interrupt (see image below) modeled after UART0 RX. After including this in my code now my LED screen is blank. I do not understand what I did wrong. I appreciate the help. Thank you
I am working on an ATMEGA2560 with avr chipset. Overall goal I am trying to receive data from a device on ch1(inspectra), receive data from another device ch3(weather), and send clean info from both devices out via ch2(modbusSlave). I added a 2nd circular buffer so all weather data can be fed to it but was having issues with the circular buffer. When I would use my LED screen to see if data was incoming, I get a return of 0. Found out I need another interrupt but since Flowcode does not have an interrupt on UART2 RX I made a custom interrupt.
I made the customer interrupt (see image below) modeled after UART0 RX. After including this in my code now my LED screen is blank. I do not understand what I did wrong. I appreciate the help. Thank you