Other Parts Discussed in Thread: CC2541
Hi all,
I'm having problems setting the I2CDATA register in the CC2541 Keyfob. I've checked and I don't think that it's a mapping problem since I was able to read/write to the registers before it (0x6230 for I2CCFG and 0x6231 for I2CSTAT) and the ones after it (0x6233 - Own Slave Address to 0x6235 - I2CIO) in a periodic function. I can read from I2CDATA fine which returns 0x00 since there's nothing there, but I can never seem to set it no matter what I do.
The documentation doesn't provide much information on it other than saying that it can't be accessed during byte shift operations and that it should be accessed during an interrupt. I don't think any byte-shifting operations are being performed on it and I've tried raising an interrupt with an interrupt function using the I2C interrupt vector found in ioCC2541.h but I still can't seem to modify it so I'm frankly at a loss. Does anyone know if this register get automatically cleared upon being set or does it only get cleared after the I2C bus transmits the data through the pins? This thing is driving me nuts and I can't continue with work until I get this thing working. Any tips and suggestions would be great thanks!
Regards,
Noct


