Borzik / tlc5940arduino

Automatically exported from code.google.com/p/tlc5940arduino
0 stars 0 forks source link

Grayscale clock count #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
First of all I may be wrong with these timer calculations (I am new at arduino 
timers) but after reading this page 
"http://arduino.cc/en/Tutorial/SecretsOfArduinoPWM", while I was studying your 
tlc5940.cpp file I realized that there are "8190 * 2 = 16380" cycles (16380 * 
62.5ns) between your falling and rising edge of the BLANK signal. And If am not 
wrong I calculated that your GSCLK signal is generated 62.5ns of every 250ns (1 
of 4 cycles). That means between falling and rising edge of the BLANK signal, 
there could only be squeezed 4095 GSCLK pulses. This means that you may need to 
change PWM period to at least 8194 while GSCLK is 3. Time between falling and 
rising edge of BLANK will be (8194 - 2) * 2 * 62.5ns is equal to 4096 * 250ns. 
Then we meet up the time requirements to generate 4096 GSCLK pulses between 
falling and rising edge of the BLANK signal.

Original issue reported on code.google.com by merd...@gmail.com on 8 Jul 2014 at 11:03

Attachments: