Hello I will be communicating with a device using SMBus. For this, I will be using PIC18F26K83. Timing is not important for me so I m somehow free to choose any clock frequency for my MCU. Well higher, better of course. I am new to PIC so I am confused by the datasheet. I want to have I2C clock between 10 kHz and 100 kHz . (I added the picture of related register.)
- In this case what is the best configuration for I2CxCLK register? (Timing is not that crucial for MCU.)
- In datasheet it says I can set I2C clock to HFINTOSC and MFINTOSC. However, again datasheet says (in oscillator selection part) HFINTOSC can be 1,2,4,8,12,16,32,48,64 MHz Oscillator and MFINTOSC can be 31.25 kHz and 500 kHz Oscillator. What does that mean? Which value I2C clock takes when I choose HFINTOSC or MFINTOSC for it?
- If I have 250 kHz MCU clock, if I choose I2C to be FOSC/4, in that case will it be 62.5 kHz?
- Last question is can MCU clock and I2C clock be same? Would it be a problem. I ask it because in UART I remember something like: MCU freq. should be 16 times bigger than UART baudrate.