simavr icon indicating copy to clipboard operation
simavr copied to clipboard

CAN support on ATMega16m1

Open jack-greenberg opened this issue 4 years ago • 1 comments

Hi there! I was wondering if the ATMega16m1 simulation has CAN support built in? So can we fake CAN messages and see how the chip will respond? I use a CAN transceiver on my physical board so I'm not sure, just thought I'd ask. Or any suggestions on how to do that? Thanks!

jack-greenberg avatar Jun 25 '20 17:06 jack-greenberg

I haven't played with CAN myself, so it's unsuported, but it looks vaguely like a SPI or UART or something like that so shouldnt be very difficult to emulate. Not at a "pin level" necessarily but at a "register level" like we do for UART and SPI...

i2c is harder because of the state machine (rather braindead in fact)...

buserror avatar Jun 30 '20 18:06 buserror