Other Parts Discussed in Thread: CC2640
Hello,
I'm new in RTOS and trying to develop I2C Slave on CC2640 with IAR. I read in TI forum there is no I2C Slave driver for RTOS.
For fist step I want to set directly I2C slave register in my main but the register values don't change and If I set clock to slave program hangs up. What am I doing wrong? Can anyone help me?
Hier is the begin my I2C slave from main:
// Set up the slave address.
HWREG(I2C0_BASE + I2C_O_SOAR) = 0x48;
// Enable the clock to the slave block.
HWREGBITW(I2C0_BASE + I2C_O_MCR, I2C_MCR_SFE_BITN) = 1;
// Enable the slave.
HWREG(I2C0_BASE + I2C_O_SCTL) = I2C_SCTL_DA;
// Set up the primary slave address.
HWREG(I2C0_BASE + I2C_O_SOAR) = 0x48;
thanks a lot