Hi All,
I have a parallel issue.
I have several working boards with an I2C interface from an MC9S08AW32 to an NXP LED driver (PCA9633).
Thing is, I just noticed on a schematic review of the latest board in the family, our HW guy has given me a 10K pullup on SDA, not on SCL. I check back on the older designs, and see no pull-ups, period.
I know that the pingroup used (port c) has available built in pull-ups, but I cannot find any place in where they are enabled. I had used the Bean tools to set up the IIC port, but my licence level only gives me IIC_Init which yields...
void IIC2_Init(void)
{
/* IIC1A: ADDR7=0,ADDR6=0,ADDR5=0,ADDR4=0,ADDR3=0,ADDR2=0,ADDR1=0,??=0 */
setReg8(IIC1A, 0x00);
/* IIC1F: MULT1=0,MULT0=0,ICR5=0,ICR4=0,ICR3=0,ICR2=0,ICR1=0,ICR0=0 */
setReg8(IIC1F, 0x00);
/* IIC1S: TCF=0,IAAS=0,BUSY=0,ARBL=1,??=0,SRW=0,IICIF=1,RXAK=0 */
setReg8(IIC1S, 0x12); /* Clear the interrupt flags */
/* IIC1C: IICEN=1 */
setReg8Bits(IIC1C, 0x80);
/* IIC1C: IICEN=1,IICIE=0,MST=0,TX=1,TXAK=0,RSTA=0,??=0,??=0 */
setReg8(IIC1C, 0x90);
}
Is there something turining on the pullups which I am just not finding? I know it's not in my I2C code as that was ported from a coldfire project which had HW pullups.
Thanks
Alex