picadae/control/ctrl
2020-11-24 08:38:06 -05:00
..
main.c LICENSE and COPYRIGHT : Initial commit. Added license notice to all code files and schematics. 2020-10-26 15:39:51 -04:00
Makefile picadae/ctrl/Makefile,main.c : Added code to allow ATMega2560 as target. 2019-11-18 09:35:08 -05:00
README.md app/README.md,tiny/README.md,ctrl/READM.md : Initial commit. 2020-11-24 08:38:06 -05:00
twi.c Added picadae/ 2019-07-06 21:59:39 -04:00
twi.h Added picadae/ 2019-07-06 21:59:39 -04:00

ATmega328 Interface Unit

This MCU acts as a serial to I2C translator for the host computer. The serial protocol implements two interfaces. One for read requests and another for write commands.

The data format of the write commands is given in the ATtiny85 I2C protocol document.

Read requests return blocks of memory begining with the address specified in the last 'Set read address' command.

Read: Channel to Host

Read a <count> bytes from a channel beginning at offset = 'offset'

'r' <i2c-addr> <offset> <count>

Write: Host to Channel

Write <count> bytes from from the host to a channel

'w' <i2c-addr> <register> <count> <value-0> <value-1> ... <value-n>