Troubleshooting

I2C to Dual UART - DFR0627 - interrupts

userHead RichardEvans 2022-10-04 19:25:14 407 Views2 Replies

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

2022-10-16 22:03:06

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.

userHeadPic RichardEvans
2022-10-07 18:14:51

After 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!

userHeadPic RichardEvans