I’m developing a Morse code transceiver using the Uno R3 and some additional support modules (IR transmitter with a 38KHz NE555 astable circuit, IR receiver module & a 16x2 LCD I2C module). I’ve also been able to get it to work on a Mega 2560 with a few pin changes where the LCD I2C module connections.
I’m piggybacking a 1mS timer0 interrupt for Morse code transmission, and attaching an interrupt for Morse code reception.
I can verify the Morse code transmission & reception is working fine via the serial monitor, but when I enable the (I2C) lcd.print(x) lines of code, the program appears to hang.
I have been able to use a standard 16x2 LCD module without the I2C interface, but I’d prefer to use the I2C interface to minimize connections.
As far as I can tell, calling the I2C lcd.print(x) somehow disrupts the interrupts, and I haven’t been able to figure out how or where this occurs.
Below is an attachment of the program as it currently stands.
Any help would be appreciated and thanks in advance!
interrupt2.ino (12.9 KB)