It is a must to set SSPADD value, when interfacing with I2C device with PIC micro controllers.
The formula to calculate SSPADD is given below
Where Fosc is the frequency of the crystal used in PIC micro eg: 20MHz. And Bit Rate is the desired frequency for the I2C device.
The tool below can be used to calculate the SSPADD.
Bit Rate for I2C :
Result: In HEX = 0x31 , In Decimal = 49
Actually I read it yesterday but I had some thoughts about it and today I wanted to read it again because it is very well written. 160 cm in feet
ReplyDelete