I have a project (ATmega324PB) in assembly that is mostly done but now need to add an I2C slave so I can connect to a SAM4S host. It is something I started over 10yrs ago with some fairly complex interrupt driven code on other peripherals.
The app note looks perfect, except of course it is in C. I'd rather not port everything else over this late in the game. I am essentially looking for a assembly version of the app note code.
I may take a try at it myself as it looks rather straightforward state machine stuff that should translate very easily. Just wondering if anybody has anything off the shelf that would save me the effort.
I have heard of folks compiling C source and then just copying the resulting assembly output. Seems possible, may take a shot at that too.
Thanks!
Dave