im using 18f4455 PIC micro controller for a i2c communication. according to the data sheet, in order to generate start condition, we need to set 0 th bit in SSPCON2 register. when inspected i see that the bit does not get set. i wait until the i2c module is idle before setting that bit. And i've already enabled the SSP by setting SSPEN bit. im using icd 2 as the debugger to inspect registeres. however when i select the simulator instead of the debugger and inspect the register, it shows that bit gets set properly. any one here got any idea about the problem?
- posted
16 years ago