Hi,
I want to use the TXCIE Arduino MEGA interrupt. I wrote this pilot project. First the setup runs normally and LED_BUILTIN flashes once and then prints "11111000" intermittently, but the LED does not light up!
Please guide me if there is a mistake.
With thanks for your attention, I want to use this interrupt to control the RS485 direction. As far as I saw we can use udre to drive rs485, which is not a good method because Ardino uses this interrupt, and on the other hand, this interrupt specifies the end of each character, not the end of the message. Delay is usually suggested which it is not desirable for my project.
thanks for your answer
Mega 2560 has four serial ports. Of course, your point was also correct that I wrote it incorrectly and it should be written as follows