This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

i2c baud rate

i posted this here now because i am new to this forum and accidentally posted on another thread and got severely flamed.

i use the processor PSD3233QAT-RF

i've got a question about i2c function.
1) is it true that i can set any fixed baud rate (clock) from 0 to 100KHz?
2) if i set the bit I2CFREQ, what value should i put into the register if i'm using crystal 4MHz?
4) if i set the bit I2CFREQ2,SMP=0, is the baud rate fixed to 400KHz or i'm free to set any baud rate from 0 to 400KHZ? what value should i put into I2CADD then using a 20MHZ crystal?

answers are appreciated.
Thank you.

Parents
  • why is it that the only responses i've had are when i posted this message in the wrong place?

    A lot of people can spot posts that have been sent to the wrong thread, or posts that misses important information.

    When you have supplied all required information, it may then require people with knowledge about your specific processor to know the answer to processor-specific questions.

    However, unless the chip designers are fools, you should be able to program a wide range of bit rates, and the data sheet should specify the equation needed to figure out what value you should use, given the original oscillator frequency. And the datasheet for the device should inform you of any limitations for the specific device.

    You will obviously not be able to set any bit rate down to zero, since to existing chip has the capability to divide the clock source an infinite number of times. If you apply the formula from the datasheet, you will see how slow you can manage to configure the I2C controller - the register you program has a limited number of bits. The specification will also say if you may use any value from zero to all bits=1, or if there are forbidden values. It isn't uncommon that there is a minimum value allowed to program in dividers.

Reply
  • why is it that the only responses i've had are when i posted this message in the wrong place?

    A lot of people can spot posts that have been sent to the wrong thread, or posts that misses important information.

    When you have supplied all required information, it may then require people with knowledge about your specific processor to know the answer to processor-specific questions.

    However, unless the chip designers are fools, you should be able to program a wide range of bit rates, and the data sheet should specify the equation needed to figure out what value you should use, given the original oscillator frequency. And the datasheet for the device should inform you of any limitations for the specific device.

    You will obviously not be able to set any bit rate down to zero, since to existing chip has the capability to divide the clock source an infinite number of times. If you apply the formula from the datasheet, you will see how slow you can manage to configure the I2C controller - the register you program has a limited number of bits. The specification will also say if you may use any value from zero to all bits=1, or if there are forbidden values. It isn't uncommon that there is a minimum value allowed to program in dividers.

Children
No data