PaulStoffregen
Well-known member
I pushed a commit to add comments to the CapReadSDRAM example.
Updated with 'Expected Output'I pushed a commit to add comments to the CapReadSDRAM example.
That’s really cool! That the little 1062 can power that big screen.Added a mandelbrot sample that cycles the palette colors (still using only 4bpp/16 colors because it turns out I only have RAMDACs on hand, not direct VGA DACs...)
A picture of 1920x1080 output for @Dogbone06 :
View attachment 33084
Serial.printf("Clock set %.2f MHz\n", sdram.getFrequency());
Clock set 166.15 MHz
Set : Actual
100 : 99.31
102 : 102.86
105 : 106.67
109 : 110.77
113 : 115.20
118 : 120.00
123 : 125.22
124 : 123.43
126 : 127.06
129 : 130.91
133 : 132.92
134 : 135.00
138 : 139.35
142 : 144.00
147 : 148.97
152 : 154.29
158 : 160.00
164 : 166.15
166 : 166.15
167 : 166.15
170 : 172.80
177 : 180.00
184 : 187.83
193 : 196.36
198 : 198.00
199 : 196.36
201 : 205.71
211 : 216.00
221 : 221.54
222 : 227.37
#include <SDRAM_t4.h>
SDRAM_t4 sdram;
void setup() {
while (!Serial) ;
float supported_clock = 0;
float supported_clock_old = 0;
Serial.println("Set : Actual");
for (int i=95; i < 370; i++) {
bool ok = sdram.begin(32, i, true);
if(ok) {
supported_clock = sdram.getFrequency();
if(supported_clock != supported_clock_old) Serial.printf("%d : %.2f\n", i, supported_clock);
supported_clock_old = supported_clock;
}
}
}
void loop() {
}
Short answer is yesLet's see if I understand that right.
If I for example write "222" as the frequency in the test sketch that you and defragster made, the one testing the memory. It would actually be 227,37MHz. Is that right?
Dumb question perhaps, I can just test later when I get home. But will the sketch you tested from Paul go higher then the 227MHz?Short answer is yes
Dumb question perhaps, I can just test later when I get home. But will the sketch you tested from Paul go higher then the 227MHz?
the sketch goes from 95 to 370 Mhz. So from 222-370Mhz the actually frequency would only be 227.37Mhz. Looks like the minimum frequency is 100Mhz.Dumb question perhaps, I can just test later when I get home. But will the sketch you tested from Paul go higher then the 227MHz?
Maybe the library should have a function to read the actual frequency as a float, since it will give something slightly different.
inline float getFrequency() { return frequency; }
I changed the range to 100-600Mhz and looks like the maximum is going to be 227.37Mhz actual frequency or 222Mhz set frequency.I'm hoping to reach 300MHz stable with one of the caps. But I think it's wishfull thinking from me.
I changed the range to 100-600Mhz
if (frac < 12 || frac > 35) return false; // should never happen...
What protocol does the more "high end" cameras use? Perhaps the OV7670 uses the same protocol?Ditto - don't plan on it to be honest - in the middle of trying to get Flexio to work with the OV7670 camera - assisting @KurtE
Sorry, I have not had enoughI'm hoping to reach 300MHz stable with one of the caps. But I think it's wishfull thinking from me.
Not sure which of us is leadingDitto - don't plan on it to be honest - in the middle of trying to get Flexio to work with the OV7670 camera - assisting @KurtE
Hard to know what is important these daysOh yes, OV7670 is so much more important.![]()