I would like to ask here a question that has been bothering me a lil bit in the last week.
I am working on manipulating some RGB VGA signal via Arduino (Mega 2560).
So far so good, but the problem comes when I want to output the COLOUR to the monitor (h and v sync are good).
The problem basically is that I need to use analogWrite to be able to generated the 0.7 p2p colour signals, but this takes some time and I do not get the colour information into the monitor properly.
I was wondering if I am even doing things write by using the analogWrite function on the 3 pins that output the colour to the monitor...
I read that the freq output of the PWM pins is at the most 980 Hz, which is far from the 31 KHz I need to cope with the VGA 640x480 @75 Hz specs....
How can I achieve such a quick output of that signal? Might the DUE solve my problems? I couldn't find specs regarding DUE's PWM freq....
Note: Is it possible to use the PWM output pins by using the chipset isntructions ( i.e. PORTH, PORTD...)?