Forum > Embedded - AVR

Other version of github: fpc-avr/src/library/i2cslave_unit.pas

(1/2) > >>

pascalbythree:
Long time ago:
Does anybody have a version of the i2c slave unit on github to send bytes from slave to master ? maybe a blocking variant ?
without re-firing the i2c stack.
Greets, Wouter van Wegen

TRon:

--- Quote from: pascalbythree on June 18, 2024, 10:54:36 am ---Does anybody have a version of the i2c slave unit on github to send bytes from slave to master ? maybe a blocking variant ?

--- End quote ---
You mean this one ?

BTW: I believe this is your 4th or 5th attempt to start defying master-slave logic so I am starting to wonder if you understand the master-slave concept. A master is the one who determines what is going to happen and while the communication itself might be bi-directional a slave has no business to start a conversation unless you specifically reverse the roles. How these roles can be setup/changed depends on the used hardware and software.

You can somewhat get around that by letting the master poll the slaves requesting for information, e.g. the master that constantly asks "talk to me if you got something to do for me".

pascalbythree:
Can you compile this with FPC 3.3.1 for AVR ?

ccrause:

--- Quote from: pascalbythree on June 19, 2024, 11:48:16 am ---Can you compile this with FPC 3.3.1 for AVR ?

--- End quote ---
No. First sentence from project readme:

--- Quote ---This program is written for Turbo Pascal 3 for CP/M
--- End quote ---

MarkMLl:

--- Quote from: pascalbythree on June 19, 2024, 11:48:16 am ---Can you compile this with FPC 3.3.1 for AVR ?

--- End quote ---

Have you read the datasheets for the chips being used? Are your hardware skills sufficient to connect those chips to the other devices you're using?

MarkMLl

Navigation

[0] Message Index

[#] Next page

Go to full version