Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

I2C slave with Mega88a

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
Plons

Bascom Member



Joined: 24 May 2005
Posts: 435
Location: Hilversum - The Netherlands

netherlands.gif
PostPosted: Thu Nov 06, 2014 10:51 pm    Post subject: I2C slave with Mega88a Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Thu Nov 06, 2014 10:58 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
Plons

Bascom Member



Joined: 24 May 2005
Posts: 435
Location: Hilversum - The Netherlands

netherlands.gif
PostPosted: Thu Nov 06, 2014 11:38 pm    Post subject: Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Thu Nov 06, 2014 11:55 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
Plons

Bascom Member



Joined: 24 May 2005
Posts: 435
Location: Hilversum - The Netherlands

netherlands.gif
PostPosted: Fri Nov 07, 2014 12:38 am    Post subject: Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Fri Nov 07, 2014 11:26 am    Post subject: Reply with quote

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
View user's profile Visit poster's website
Plons

Bascom Member



Joined: 24 May 2005
Posts: 435
Location: Hilversum - The Netherlands

netherlands.gif
PostPosted: Fri Nov 07, 2014 12:56 pm    Post subject: Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Fri Nov 07, 2014 1:17 pm    Post subject: Reply with quote

no problem. all my answers are for all users and never personal.
_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum