View previous topic :: View next topic |
Author |
Message |
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Mon Dec 12, 2005 9:48 pm Post subject: Example how to work with I2Cslave: a mathematic processor |
|
|
Remember I2C slave is an option
I'm starting from the sample file, TWI, I did 2 programs
1) the master working with a 128
2 ) the ATmega8 as slave
on the master you should choice an action and give a single
ex action 12 = cos
single=1.1519 (66° in radian)
return 0.40699
The file attached has the 2 programs |
|
Back to top |
|
|
felones
Joined: 21 Oct 2005 Posts: 15 Location: Santiago
|
Posted: Tue Dec 20, 2005 2:53 pm Post subject: |
|
|
Hi Duval, thanks in advance for help with the I2C slave library, but i donīt see the attached file.
Felo |
|
Back to top |
|
|
felones
Joined: 21 Oct 2005 Posts: 15 Location: Santiago
|
Posted: Tue Dec 20, 2005 2:57 pm Post subject: |
|
|
Sorry... please not to give importance to the previous post. I do not know that it happened, but initially the attach was not appearing. Greetings and thank you again. Felo |
|
Back to top |
|
|
Matrixx
Joined: 30 Nov 2005 Posts: 158
|
Posted: Tue Jul 01, 2008 6:30 am Post subject: |
|
|
Many thanks Jean Pierre
Your sample is the first one that works after weeks of night-reading, pages and pages of bascom forum searchs, test and more tests.
I tryed a lot with I2CSlave with no sucess, but your code TWI runs clean on Proteus. i lowered the ctystals to 4Mhz only for simulating. |
|
Back to top |
|
|
PaulC
Joined: 09 Jan 2008 Posts: 122 Location: Ireland
|
Posted: Fri Jul 11, 2008 11:58 am Post subject: thankyou |
|
|
thanku Duval
will give this a go... _________________ Bascom Avr 2.0.7.3
Works for me
|
|
Back to top |
|
|
|