Posted: Thu Jan 26, 2017 11:05 am Post subject: Slave lib
Hello dear reader,
many years ago I purchased the "i2c_TWI-slave.lbx" and used it since without any problems in various programs running in Mega8.
Recently I tried the same progs in a Mega328 (with appropriate def file) and get lots of errors ( "Backward Jump out of range [.......").
Before diving deeper into the problem I want to assure I still have the right .lbx
In the header ist says:
libversion = 1.11.7.5
date = 30 June 2004
Is this still valid?
Thank you
Ernst
(BASCOM-AVR version : 2.0.8.0 , Latest : 2.0.7.8 )
Posted: Thu Jan 26, 2017 5:00 pm Post subject: I2C library
You might look at an update I just posted (1/26/2017) in the Working AVR code forum. It shows how I have used the library for an ATtiny861. Be certain in the coding for the slave that you do not include I2CInit, Cofig Sci and Config Sda statements. These only need to be in the coding of the master.
Thank you Alan and Mark for your prompt and constructive answers.
Befor I dive into Alan's approach (which is on the edge of my capabilities) I'll execute the library update as suggested by Mark.
Since I did'nt find a dedicated update I assume that I do have to purchase the library once more.
Is my assumption correct Mark?
Best regards
Ernst
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