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
  • Hello Jeffery,

    I am not familiar with the PSD3233QAT-RF, but we have worked with the uPSD3233B, uPSD3233BV devices.

    Keil does have some source code for a 3300 device, that could be ported to work with the 3200 series.

    If you have installed the Keil C51 evaluation tools, the example will be found on your hard drive at:

    \Keil\C51\Examples\ST uPSD\upsd3300\DK3300-ELCD\I2C

    The upsd3300_i2c.c file allows you to set the timing of the I2c Connection, based on a Bus Frequency and a Frequency Oscillator.

Reply
  • Hello Jeffery,

    I am not familiar with the PSD3233QAT-RF, but we have worked with the uPSD3233B, uPSD3233BV devices.

    Keil does have some source code for a 3300 device, that could be ported to work with the 3200 series.

    If you have installed the Keil C51 evaluation tools, the example will be found on your hard drive at:

    \Keil\C51\Examples\ST uPSD\upsd3300\DK3300-ELCD\I2C

    The upsd3300_i2c.c file allows you to set the timing of the I2c Connection, based on a Bus Frequency and a Frequency Oscillator.

Children
  • all IIC hardware implementations I have seen with the exception of the SILabs deviates have been quite similar (exept for clocking).

    I believe that the PDS chips are a Crolles/Crolles2 design (i.e. same root as Philips) and, in that case, you can use CodeArchitect free from http://www.esacadfemy.com to get you started.

    You should be able to determine if you can in 10 minutes or less.

    Erik