On 5/28/16 4:18 AM, SWISSNIXIE - Jonathan F. wrote:
> My idea is to drive as follwing
>
>
> 1. turn on cathode of digit 1
> 2. turn on anode of digit 1
> 3. wait 200uS
> 4. turn off anode of digit 1
> 5. wait 50uS
> 6. change cathode to digit 2
> 7. wait 50uS
> 8. turn on anode of digit 2
>
> This will end up in roughly 300us for one cycling and around 4ms for a
> complete display cycle. I hope this will be fast enough to don't see a
> visible flicker...
>
Flicker is not a problem if you can complete a full cycle of all tubes
in 10 milliseconds or less. You may want to increase the 'on' time to
500 milliseconds for a brighter, more uniform display. Experiment with it.
>
> What value of resistor would be required between D30 and the HV Supply?
>
Ohm's law. (HV voltage - diode string voltage) divided by Zener current
(>2mA for good regulation)
>
> And where would you mount resistors in the DC path? you mean from anodes
> to ground or from the hv supply to ground?
>
>
>
> I'm actually now evaluating if i should use a single Atmega328, or a 328
> and a Attiny. The tiny would only take care about the shifting and
> stuff, while the mega328 is doing all the other handling. I'm thinking
> about this solution, because i worry about unknown delays with libraries
> and stuff.
>
The concern is that an undesired interrupt will cause a display glitch
by extending the 'on' time of a digit. It's not much of a concern, but
you can prevent it by disabling interrupts during the display time, that
300 us when the anodes is turned on. Glitches during the 'off' time are
not nearly as visible, because they affect all digits equally.