I am trying to simulate an ATTiny85 shunt regulator for a 10AH lithium cell. The program is written in C using AVR Studio and the features are to blink an LED to indicate cell voltage, and turn on one or more shunts to limit the voltage during charging of a series string.
None of the simulators I've tried has been satisfactory. AVR simulator works but doesn't show the LED flashing until I break, and then the output log is hard to interpret. I have yet to find any documentation for Simulator 2 .stim files, but presumably it would have the same problems, if it works on the '85 at all.
Hapsim has worked well for me on other chips but is bombing AVR studio with the MFC error when LED's are connected to the '85 simulator. This on XP or Windows 7 with various versions of both programs.
VMLAB would seem to do everything I want and I like the power dissipation monitoring, but the free version doesn't support the '85. While it runs happily when I say it's really a supported '15, there seems a fundamental disconnect between what I do to the pins from the outside (e.g. raise the battery voltage), and what the MCU is doing from the inside (enabling the shunts). Don't know if AVR studio not supporting C for the '15 has anything to do with that, which means I have to compile for the '85 so VMLAB halts (but allows continuing) on illegal instructions.
So is there a simulator that would show the LED flashing in something like real time, and allow slowly varying the input voltage to see the shunts kicking in and out?