Hello guys,
I'm planning on doing a battery management PCB, based on Arduino/AVR architecture, specially due to its ease in programming and communicating with peripherals. There are dozens of AVR micro-controllers available, both from the ATTiny lineup and the ATMega lineup. But i don't have a lot of knowledge on those, and would like some recommendations of yours.
These are the features the IC should have:
Separate I2C and SPI pins, as i need to use both protocols at the same time
EEPROM memory (just a tiny little bit is already enough)
Have the smallest number of pins possible, and low power comsumption, as it is a very compact project
Don't need to have great amount of programming memory, as the program to be uploaded should be relatively simple
Currently i'm thinking on ATTiny42, the only problem is that it shares its I2C and SPI pins, and altough i think it should be possible to use them together, it is not ideal, because it would probably require extra components like transistors
Also, basically any ATMega meets the requirements i need, but the smallest one has 28 pins, which is too much, i would use like 6 or 7 only.
So, what do you guys think? Any suggestions? Maybe something out of the AVR lineup that is still programmable via Arduino IDE?
Thank you in advance!!!