You're not enabling interrupts (GIE) so I suspect you're stuck in the I2C_Write, with the I2C unit waiting for you to give it the RH_HOLD command (TXIFG). You should probably add an __enable_interrupt() in main. You probably want to stick with Hold Master mode, since you don't seem to provide a way of reporting a NACK. SLAU144J sec 17.3.5.1 claims the I2C can deal with clock stretching just fine.
↧