View previous topic :: View next topic |
Author |
Message |
Plons
Joined: 24 May 2005 Posts: 435 Location: Hilversum - The Netherlands
|
Posted: Thu Nov 06, 2014 10:51 pm Post subject: I2C slave with Mega88a |
|
|
Hi folks,
From the m88adef.dat file:
[I2CSLAVE]
POSSIBLE=YES ; software slave mode not possible
PORT=D,4,2 ; PORTD , SCL D.4(T0) , SDA D.2(INT0)
The 2nd line puzzles me: Is I2C slave possible or not ?
Edit: corrected tags
(BASCOM-AVR version : 2.0.7.7 ) _________________ Bascom AVR ver 2.0.8.6
Dragon-lair: http://www.aplomb.nl/TechStuff/Dragon/Dragon.html
"leef met vlag en wimpel, maar hou het simpel"
Last edited by Plons on Thu Nov 06, 2014 11:35 pm; edited 1 time in total |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Thu Nov 06, 2014 10:58 pm Post subject: |
|
|
yes, you can create an I2C slave using the TWI. : config twislave
when the AVR has TWI,USI, TWIC,TWID,TWIE or TWIF it is always possible to create a hardware i2c slave.(using the add on)
when these hardware source are not present in the avr, you can create a software twi slave in most cases. _________________ Mark |
|
Back to top |
|
|
Plons
Joined: 24 May 2005 Posts: 435 Location: Hilversum - The Netherlands
|
Posted: Thu Nov 06, 2014 11:38 pm Post subject: |
|
|
Thanks Mark.
But my puzzle is with the contradiction (in red font)
POSSIBLE=YES ; software slave mode not possible
Cheers
Nard _________________ Bascom AVR ver 2.0.8.6
Dragon-lair: http://www.aplomb.nl/TechStuff/Dragon/Dragon.html
"leef met vlag en wimpel, maar hou het simpel" |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Thu Nov 06, 2014 11:55 pm Post subject: |
|
|
Did you actual tried to create the i2c slave? and is there a problem?
Or are you really creating a topic because of comment in a dat file? _________________ Mark |
|
Back to top |
|
|
Plons
Joined: 24 May 2005 Posts: 435 Location: Hilversum - The Netherlands
|
Posted: Fri Nov 07, 2014 12:38 am Post subject: |
|
|
Sorry Mark, I was not working on I2C slave but was going through the .dat-file to find something else when I noticed this contradiction. It just puzzled me.
Correct .dat-files are crucial IMO
Nard _________________ Bascom AVR ver 2.0.8.6
Dragon-lair: http://www.aplomb.nl/TechStuff/Dragon/Dragon.html
"leef met vlag en wimpel, maar hou het simpel" |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Fri Nov 07, 2014 11:26 am Post subject: |
|
|
you start your topic with : Quote: | Is I2C slave possible or not ? |
then i take the time to answer, and then it turns out that it was not about the i2cslave but just if the remark was ok. Please be clear when you want to point to what you think is an error.
I wonder what good it is to post it on a user forum? Do you expect a user to know the answer? About an internal compiler setting that is not intended to be altered/used by the user?
When you suspect that something is wrong just write so. And best send it to support, the only place where it (at some stage) will be read. Something that is not guaranteed here.
btw:
The dat files in bascom-avr are not intended to be edited by the user. otherwise i would have included a dat file editor. of course you are free to alter but an update will overwrite these changes. _________________ Mark |
|
Back to top |
|
|
Plons
Joined: 24 May 2005 Posts: 435 Location: Hilversum - The Netherlands
|
Posted: Fri Nov 07, 2014 12:56 pm Post subject: |
|
|
Point taken, bad judgement from me, it was late. I apologize for that.
Nard _________________ Bascom AVR ver 2.0.8.6
Dragon-lair: http://www.aplomb.nl/TechStuff/Dragon/Dragon.html
"leef met vlag en wimpel, maar hou het simpel" |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Fri Nov 07, 2014 1:17 pm Post subject: |
|
|
no problem. all my answers are for all users and never personal. _________________ Mark |
|
Back to top |
|
|
|