Some updateThat's understandable, meanwhile I've been running some experiments and mostly reading the datasheet more closely. You hadn't replied to my earlier mention of it so I'll only talk about that now.
I have not received anything to test it and I will be out of the
office from today until the 30th :S. So it seems that I have not way
to test the changes.
Sorry about that.
Regards!
On Fri, Apr 22, 2016 at 10:48 AM, Ricardo Ribalda Delgado
<ricardo.ribalda@xxxxxxxxx> wrote:
Hi
I am on trip until next monday. I have arranged also some hw to be sent to
me that day.
Can we continue the conversation then? I know I told you that I will review
this yesterday, but I did not have the time , sorry
Regards!
On 22 Apr 2016 09:21, "Olliver Schinagl"<oliver@xxxxxxxxxxx> wrote:
Hi Ricardo,
On 20-04-16 11:17, Ricardo Ribalda Delgado wrote:
Hello againRight, I also went over the datasheet, and I think we can simplyfy two
On Wed, Apr 20, 2016 at 11:06 AM, Olliver Schinagl<oliver@xxxxxxxxxxx>
wrote:
The devil is in the details :):)
Give me a day to go through the chip doc and see if I can find a goodSaving mode2 sounds like a good compromise then.So to save a mutex a little bit, we take the risk that nobody else
But I still believe that we should limit the lock to ledout. No matter
what we do, we cannot have two leds blinking at different frequencies
on the same chip.
enables
the blink or if they do, enable it in the same way?
If it saves so much, then I guess its worth the risk I suppose?
compromise, that at least warranties that the leds that are enable
stay enabled ;)
things.
For one, yes, move the mode2 register completly to the probe section. Set
the DMBLINK led to always 1. It does not get cleared, I was wrong. We have
to set it to as with 0 we do not get any blinking at all (grpfreq gets
ignored).
Furthermore, we should change:
- gdc = (time_on * 256) / period;
+ gdc = 0x00;
Because the calculation does not make sense. GDC is the global
brightness/pwm/dimming control. It is used to uniformly change the blink
rate on all the linked leds.
"General brightness for the 16 outputs is controlled through 256 linear
steps to FFh"
I don't think that is the intention of the gdc is it? Looking at the
original gdc code, it thus sets the global BRIGHTNESS based on the
period/on_time. I don't think that is what we expect when we enable blink.
From my understanding, the grppwm is super-imposed, thus by setting gdc to
0, we do not superimpose anything and the original brightness is retained.
(If i'm wrong here, we need to set gdc to 0xff.
Because of this, I even recommend removing gdc all together, which saves
another i2c write.
Or am I wrong here?
Olliver
Regards!