Re: [Avr-list] I2C on ATtiny45

2008-10-09 Par sujet Ali Tlisov

Olivier MATZ ?:

No, if you plan to use the hardware TWI module (i2c), the pin
assignation is fixed. In my opinion, the 2 solutions are:
  - Modify the pcb to invert the 2 pins
  - If it's really impossible, implement a software i2c, which is
not a simple task.

By the way, there's an i2c module in aversive:
http://cvsweb.droids-corp.org/cgi-bin/viewcvs.cgi/aversive/modules/comm/i2c/

Olivier



Thank you very much for your promptest respond, Olivier! I've found one 
implementation of software i2c master here: 
http://homepage.hispeed.ch/peterfleury/group__pfleury__ic2master.html

Now trying to get it working!


___
Avr-list mailing list
Avr-list@droids-corp.org
CVSWEB : http://cvsweb.droids-corp.org/cgi-bin/viewcvs.cgi/aversive
WIKI : http://wiki.droids-corp.org/index.php/Aversive
DOXYGEN : http://zer0.droids-corp.org/doxygen_aversive/html/
BUGZILLA : http://bugzilla.droids-corp.org
COMMIT LOGS : http://zer0.droids-corp.org/aversive_commitlog


Re: [Avr-list] I2C on ATtiny45

2008-10-08 Par sujet Olivier MATZ
Sorry, I forgot to CC you.

Olivier

On Wed, Oct 08, 2008 at 09:57:02AM +0200, Olivier MATZ wrote:
> Hi Ali,
> 
> > The question is: Is it possible to reconfigure somehow pin assignation  
> > in order to use hardware USI module with my pin assignation? I never  
> > used micros from ATMEL before so any suggest highly appreciable.
> 
> No, if you plan to use the hardware TWI module (i2c), the pin
> assignation is fixed. In my opinion, the 2 solutions are:
>   - Modify the pcb to invert the 2 pins
>   - If it's really impossible, implement a software i2c, which is
> not a simple task.
> 
> By the way, there's an i2c module in aversive:
> http://cvsweb.droids-corp.org/cgi-bin/viewcvs.cgi/aversive/modules/comm/i2c/
> 
> Olivier

___
Avr-list mailing list
Avr-list@droids-corp.org
CVSWEB : http://cvsweb.droids-corp.org/cgi-bin/viewcvs.cgi/aversive
WIKI : http://wiki.droids-corp.org/index.php/Aversive
DOXYGEN : http://zer0.droids-corp.org/doxygen_aversive/html/
BUGZILLA : http://bugzilla.droids-corp.org
COMMIT LOGS : http://zer0.droids-corp.org/aversive_commitlog


Re: [Avr-list] I2C on ATtiny45

2008-10-08 Par sujet Olivier MATZ
Hi Ali,

> The question is: Is it possible to reconfigure somehow pin assignation  
> in order to use hardware USI module with my pin assignation? I never  
> used micros from ATMEL before so any suggest highly appreciable.

No, if you plan to use the hardware TWI module (i2c), the pin
assignation is fixed. In my opinion, the 2 solutions are:
  - Modify the pcb to invert the 2 pins
  - If it's really impossible, implement a software i2c, which is
not a simple task.

By the way, there's an i2c module in aversive:
http://cvsweb.droids-corp.org/cgi-bin/viewcvs.cgi/aversive/modules/comm/i2c/

Olivier

___
Avr-list mailing list
Avr-list@droids-corp.org
CVSWEB : http://cvsweb.droids-corp.org/cgi-bin/viewcvs.cgi/aversive
WIKI : http://wiki.droids-corp.org/index.php/Aversive
DOXYGEN : http://zer0.droids-corp.org/doxygen_aversive/html/
BUGZILLA : http://bugzilla.droids-corp.org
COMMIT LOGS : http://zer0.droids-corp.org/aversive_commitlog


[Avr-list] I2C on ATtiny45

2008-10-07 Par sujet Ali Tlisov

Hi All!

I was given a pcb with ATtiny45 connected to AD7416 temperature sensor 
via I2C bus. My task was to write a program that reads the temperature 
but here I've faced some troubles.
First the pin assignation confused me. PB0 is used for SCL and PB1 is 
used for SDA in that pcb, while datasheet points that PB0 should be used 
for SDA and PB2 for SCL.


The question is: Is it possible to reconfigure somehow pin assignation 
in order to use hardware USI module with my pin assignation? I never 
used micros from ATMEL before so any suggest highly appreciable.



___
Avr-list mailing list
Avr-list@droids-corp.org
CVSWEB : http://cvsweb.droids-corp.org/cgi-bin/viewcvs.cgi/aversive
WIKI : http://wiki.droids-corp.org/index.php/Aversive
DOXYGEN : http://zer0.droids-corp.org/doxygen_aversive/html/
BUGZILLA : http://bugzilla.droids-corp.org
COMMIT LOGS : http://zer0.droids-corp.org/aversive_commitlog