I2C to Dual UART - DFR0627 - interrupts
I'm experimenting with the I2C to dual UART module. I can get data in both directions fine on UART 1, but am having trouble getting interrupts. I've set:
SIER = 0x01
RFTL = 1
GIER = 1
but the IRQ line remains high even if the receive FIFO is not empty. I've soldered pins at the bottom of the board and am monitoring the IRQ line. I do see bit 0 in SIFR set when characters arrive in the FIFO.
Any thoughts?
Thanks
Finally solved it. The GIER register is 0x10. However the the I2C interface to the WK2132 chip uses only the bottom four bits of the register number. To set/read GIER and GIFR you need to set the C0 bit in the device address to 1.
RichardEvansAfter more tests, I never see any bits set in the GIFR register, even when bits are get in the SIFR register. That probably explains why the IRQ line never changes, but why is GIFR not set? I am missing some initialization?
Any help appreciated, my project is totally blocked until I can resolve this!
RichardEvans