Page 1 of 1

Intel Atom PSE, configuration parameters

Posted: Mon Mar 18, 2024 9:27 am
by ravi
Hello, i am working on intel x6000 atom target

trying to work with PSE-I2C0, when i see RDS - 614110, 6.2.1 IC_CON register details it lists lot of configuration parameters like I2C_DYNAMIC_TAR_UPDATE, how are these parameters set

thanks
Ravi

Re: Intel Atom PSE, configuration parameters

Posted: Mon Mar 18, 2024 1:13 pm
by Octocontrabass
Those configuration parameters are part of Synopsys's DesignWare I2C controller IP core. As far as I can tell, Intel would have permanently set them when integrating the IP core into the PCH silicon.

It's interesting that the SIO I2C controllers seem to be based on the same IP core, but the datasheet makes no mention of configuration parameters there. Did the writers get lazy when they got to the PSE I2C controllers, or are those parameters not actually permanent?

You'll have to contact Intel for a better datasheet.

Re: Intel Atom PSE, configuration parameters

Posted: Mon Mar 18, 2024 5:13 pm
by ravi
thanks

Re: Intel Atom PSE, configuration parameters

Posted: Tue Mar 19, 2024 3:20 pm
by ravi
hello Octocontrabass

i tried to find the register to generate start and stop I2C condition but could not find, usually in controllers i use to find them as part of control registers.


Thanks
Ravi

Re: Intel Atom PSE, configuration parameters

Posted: Tue Mar 19, 2024 8:53 pm
by Octocontrabass
You're looking for IC_DATA_CMD.

Re: Intel Atom PSE, configuration parameters

Posted: Wed Mar 20, 2024 1:34 pm
by ravi
hello Octocontrabass

i thought that was for restarting

i thought IC_TAR was the right one but it says to write this register I2C must be disabled that is confused me


thanks
Ravi

Re: Intel Atom PSE, configuration parameters

Posted: Wed Mar 20, 2024 7:46 pm
by Octocontrabass
The I2C controller automatically generates a start condition when you try to send or receive data.

The I2C controller generates a stop condition when you set bit 9 of IC_DATA_CMD.

Re: Intel Atom PSE, configuration parameters

Posted: Thu Mar 21, 2024 11:52 am
by ravi
hello Octocontrabass,

Thanks for the clarification, i thought i have to do it manually as read with other controllers


Ravi

Re: Intel Atom PSE, configuration parameters

Posted: Fri Mar 22, 2024 10:23 am
by ravi
hello Octocontrabass,

As of now i do not have an i2c device to connect (on the way), i am aware that this protocol needs hand shake,

i wanted to see at-least first 8 clock pulses coming out,

but i am not seeing any clock on the scope, but i was able to see the start condition and that it (SDA going low when CLK is high)

is not possible to see the translation with out connecting slave at all?

--Additional information about the setup

i had switched to PCH i2c device RDS - 614109 chapter 14
i have target address register set to 0x99
control register set to 0x23 master mode, standard speed, restart enable
SS high count register = SS Low COunt Regiser =8
I2C is Enabled
and IC_DATA_CMD set with some data to send

Re: Intel Atom PSE, configuration parameters

Posted: Fri Mar 22, 2024 11:35 am
by Octocontrabass
ravi wrote:control register set to 0x23 master mode, standard speed, restart enable
If you set bit 0 of the control register, you must also set bit 6. Try using 0x63 instead of 0x23.

Re: Intel Atom PSE, configuration parameters

Posted: Fri Mar 22, 2024 12:31 pm
by ravi
no luck ,same thing pulled up clock line never goes down

Thanks
Ravi

Re: Intel Atom PSE, configuration parameters

Posted: Fri Mar 22, 2024 3:22 pm
by ravi
My mistake, High and low count are too low , corrected it 650/650, now can see the clock

Thanks
Ravi