Hi! patrik_msc, I'm Nabe.
I watched your work. Nice try and thanks for using that code.
I was referring to these sites for VGA signal.http://www.epanorama.net/documents/pc/vga_timing.htmlhttp://tinyvga.com/vga-timing
I cheked again.But I couldn't find around horizontal frequency - 26kHz.
So, I searched display spec and found thie (Japanese) site.http://www.sharp.co.jp/lcd-display/crisia/lineup/ll-m17w1/connect.html
There seems to be displays horizontal frequency - 24.8kHz, vertical frequency - 56.4Hz.
If this timing, then please change the data and try.
[ defTimer.h ]
#define CRT_ICR1 645 /* H-sync:24.8kHz (1/16MHz) *(644+1) = 40.31us */
[ CRTdef.h ]
#define H_NUM_FRM_VGA_A 64
#define H_NUM_TXT_ROW 16
#define V_SYNC_START_VGA_A 0
#define V_SYNC_END_VGA_A 2
#define V_BLANK_VGA_A ( V_SYNC_END_VGA_A + 28 )
#define H_LINE_FRM_VGA_A ( V_BLANK_VGA_A + H_NUM_FRM_VGA_A *6 )
#define H_LINE_FRM_VGA_NUCO ( V_BLANK_VGA_A + H_NUM_FRM_VGA_A *6 )
#define H_LINE_TXT_END ( V_BLANK_VGA_A + H_NUM_TXT_ROW *20 )
#define H_LINE_END_VGA_A 440
#define V_SYNC_START_DRAW 0
#define V_SYNC_END_DRAW 2
#define V_BLANK_DRAW 30
#define H_LINE_FRM_DRAW 414
#define H_LINE_END_DRAW 440
And please replace "VGA_LINE_TBL.h" to "VGA_LINE_56400_TBL.h"
I attached the file. So please download and return the file name to "VGA_LINE_TBL.h".
I 'm afraid that front and back porch is too short.
To use your display it may be necessary to reduce the line.
I 'm sorry I don't have 24.8kHz display. So, I cannot try that data.
Last year I had enjoyed another hobby. http://youtu.be/C3oNNU6s63Y
But I came back here.
I decided to write some fuctions for VGAout.
So I made new thread. Please check this.http://arduino.cc/forum/index.php/topic,143827.0.html
This week end I will add some functions and up next example.
#define CRT_ICR1 615 /* (1/16MHz) × (1017+1) = 31.75us */
I 'm sorry that comment is wrong.
"(1/16MHz) × (1017+1) = 63.625us" this data is for NTSC signal.
Thanks and enjoy with Arduino!