Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Arduino as I2C slave

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-ARDUINO
View previous topic :: View next topic  
Author Message
drejansen

Bascom Member



Joined: 10 Jun 2006
Posts: 26
Location: Hoeksche Waard

netherlands.gif
PostPosted: Mon May 22, 2017 1:33 pm    Post subject: Arduino as I2C slave Reply with quote

Dear forum, (Nederlands, onderaan)

At HCC-Robotica, I learned (in C) how to make an Arduino a slave.
This slave has 6 registers.
This must also be possible in Bascom, but how do I get it?

To begin with, I want to make a slave without a register.
If that succeeds, I try the slave with 6 registry addresses as on the I2C course.
Do you have any idea how to start?

best regards, Dré

-=-=-=-

Geacht forum,

Bij HCC-Robotica heb ik (in C geleerd) hoe je van een Arduino een slave maakt.
Deze slave heeft 6 registers.
Dit moet ook in Bascom mogelijk zijn, maar HOE pak ik dat aan?

Om te beginnen wil ik een slave zonder register maken.
Als dat is gelukt, probeer ik de slave met 6 register adressen zoals op de I2C cursus.
Heeft u enig idee hoe te beginnen?

groeten, Dré

_________________
Pluk het moment!
een hele dag lukt toch niet.
 
Groeten, Dré Jansen
 
 
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Mon May 22, 2017 1:42 pm    Post subject: Reply with quote

We have the I2C slave add on for that.
It works for TWI, USI and XMEGA.
Since this is a commercial add on, we do not allow the use of this forum to produce similar code.

_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-ARDUINO 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