OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Apr 27, 2024 4:54 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Intel Atom PSE, configuration parameters
PostPosted: Mon Mar 18, 2024 9:27 am 
Offline
Member
Member

Joined: Fri Sep 08, 2023 10:46 am
Posts: 41
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


Top
 Profile  
 
 Post subject: Re: Intel Atom PSE, configuration parameters
PostPosted: Mon Mar 18, 2024 1:13 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5146
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.


Top
 Profile  
 
 Post subject: Re: Intel Atom PSE, configuration parameters
PostPosted: Mon Mar 18, 2024 5:13 pm 
Offline
Member
Member

Joined: Fri Sep 08, 2023 10:46 am
Posts: 41
thanks


Top
 Profile  
 
 Post subject: Re: Intel Atom PSE, configuration parameters
PostPosted: Tue Mar 19, 2024 3:20 pm 
Offline
Member
Member

Joined: Fri Sep 08, 2023 10:46 am
Posts: 41
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


Top
 Profile  
 
 Post subject: Re: Intel Atom PSE, configuration parameters
PostPosted: Tue Mar 19, 2024 8:53 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5146
You're looking for IC_DATA_CMD.


Top
 Profile  
 
 Post subject: Re: Intel Atom PSE, configuration parameters
PostPosted: Wed Mar 20, 2024 1:34 pm 
Offline
Member
Member

Joined: Fri Sep 08, 2023 10:46 am
Posts: 41
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


Top
 Profile  
 
 Post subject: Re: Intel Atom PSE, configuration parameters
PostPosted: Wed Mar 20, 2024 7:46 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5146
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.


Top
 Profile  
 
 Post subject: Re: Intel Atom PSE, configuration parameters
PostPosted: Thu Mar 21, 2024 11:52 am 
Offline
Member
Member

Joined: Fri Sep 08, 2023 10:46 am
Posts: 41
hello Octocontrabass,

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


Ravi


Top
 Profile  
 
 Post subject: Re: Intel Atom PSE, configuration parameters
PostPosted: Fri Mar 22, 2024 10:23 am 
Offline
Member
Member

Joined: Fri Sep 08, 2023 10:46 am
Posts: 41
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


Top
 Profile  
 
 Post subject: Re: Intel Atom PSE, configuration parameters
PostPosted: Fri Mar 22, 2024 11:35 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5146
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.


Top
 Profile  
 
 Post subject: Re: Intel Atom PSE, configuration parameters
PostPosted: Fri Mar 22, 2024 12:31 pm 
Offline
Member
Member

Joined: Fri Sep 08, 2023 10:46 am
Posts: 41
no luck ,same thing pulled up clock line never goes down

Thanks
Ravi


Top
 Profile  
 
 Post subject: Re: Intel Atom PSE, configuration parameters
PostPosted: Fri Mar 22, 2024 3:22 pm 
Offline
Member
Member

Joined: Fri Sep 08, 2023 10:46 am
Posts: 41
My mistake, High and low count are too low , corrected it 650/650, now can see the clock

Thanks
Ravi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group