Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Using I2C from Windows CE Application
PostPosted: Thu Jan 10, 2008 2:43 pm 
Offline

Joined: Thu Dec 06, 2007 1:36 pm
Posts: 13
Location: Russia
Hello, I`m using Adeneo Evalution BSP for at91SAM9263-EK. Now I want to work with periferial device by I2C from my application.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 11, 2008 12:06 pm 
Offline

Joined: Fri May 14, 2004 9:58 am
Posts: 183
Location: France - USA
Hi,

To use the I2C driver you must include I2C support on your OSDesign.
You can use I2C driver as classic Stram driver.

Best regards


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 17, 2008 10:37 am 
Offline

Joined: Thu Dec 06, 2007 1:36 pm
Posts: 13
Location: Russia
I find in registry only one I2C device I2C1: - EEPROM. But I want to configure Camera. How can I select camera pins to send/receive data by I2C driver? And can you post small examle how using I2C by Stream Driver? Thanks...


Top
 Profile  
 
 Post subject: Re: Using I2C from Windows CE Application
PostPosted: Tue Mar 31, 2009 10:21 am 
Offline

Joined: Sat Mar 15, 2008 11:34 pm
Posts: 5
Hi,

I have some problems with implementing/using I2C interface in my driver,

I am using I2C in program placed in subprojects, I have included atmel_i2c_ioctl.h but as it is not in the same directory it can not be included in this way, I am trying to use Stream Driver,
the line:
CreateFile(_T("I2C1:"),GENERIC_READ|GENERIC_WRITE,0,NULL,CREATE_ALWAYS,0,NULL);
compiles with success, but the DeviceIoControl function doesn't seems to work well, I have managed(by copying) to compile my app with DeviceIOControl but I have no signals at I2C pins,

I would appreciate some working example, or some advices

Thanks in advance, AP


Top
 Profile  
 
 Post subject: Re: Using I2C from Windows CE Application
PostPosted: Tue Jul 21, 2009 1:41 pm 
Offline

Joined: Fri May 14, 2004 9:58 am
Posts: 183
Location: France - USA
Hello,

The EEPROM driver is a good example of how to use the I2C driver.

HTH

Best regards,


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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: