Intel Atom PSE, configuration parameters

Programming, for all ages and all languages.
Post Reply
ravi
Member
Member
Posts: 103
Joined: Fri Sep 08, 2023 10:46 am

Intel Atom PSE, configuration parameters

Post 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
Octocontrabass
Member
Member
Posts: 5501
Joined: Mon Mar 25, 2013 7:01 pm

Re: Intel Atom PSE, configuration parameters

Post 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.
ravi
Member
Member
Posts: 103
Joined: Fri Sep 08, 2023 10:46 am

Re: Intel Atom PSE, configuration parameters

Post by ravi »

thanks
ravi
Member
Member
Posts: 103
Joined: Fri Sep 08, 2023 10:46 am

Re: Intel Atom PSE, configuration parameters

Post 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
Octocontrabass
Member
Member
Posts: 5501
Joined: Mon Mar 25, 2013 7:01 pm

Re: Intel Atom PSE, configuration parameters

Post by Octocontrabass »

You're looking for IC_DATA_CMD.
ravi
Member
Member
Posts: 103
Joined: Fri Sep 08, 2023 10:46 am

Re: Intel Atom PSE, configuration parameters

Post 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
Octocontrabass
Member
Member
Posts: 5501
Joined: Mon Mar 25, 2013 7:01 pm

Re: Intel Atom PSE, configuration parameters

Post 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.
ravi
Member
Member
Posts: 103
Joined: Fri Sep 08, 2023 10:46 am

Re: Intel Atom PSE, configuration parameters

Post by ravi »

hello Octocontrabass,

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


Ravi
ravi
Member
Member
Posts: 103
Joined: Fri Sep 08, 2023 10:46 am

Re: Intel Atom PSE, configuration parameters

Post 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
Octocontrabass
Member
Member
Posts: 5501
Joined: Mon Mar 25, 2013 7:01 pm

Re: Intel Atom PSE, configuration parameters

Post 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.
ravi
Member
Member
Posts: 103
Joined: Fri Sep 08, 2023 10:46 am

Re: Intel Atom PSE, configuration parameters

Post by ravi »

no luck ,same thing pulled up clock line never goes down

Thanks
Ravi
ravi
Member
Member
Posts: 103
Joined: Fri Sep 08, 2023 10:46 am

Re: Intel Atom PSE, configuration parameters

Post by ravi »

My mistake, High and low count are too low , corrected it 650/650, now can see the clock

Thanks
Ravi
Post Reply