I have a sync problem with my video experiment shield. I want to make a crosshair on my monitor. input signal signal is a digital cctv camera .
if I set “sync select” to “D9″ and set ” output select” to “SYNC ONLY” and in program if I make inactive initOverlay() comment everything is ok. there is no problem.
but if I set “sync select” to “V INPUT” and set ” output select ” to “OVERLAY” and in program if I make active initOverlay() comment. flickers and slidings are happening.
this is my code
#include
TVout TV;
void setup()
{
TV.begin(PAL,136,96);
initOverlay();
}
void initOverlay()
{
TCCR1A = 0;
// Enable timer1. ICES0 is set to 0 for falling edge detection on input capture pin.
TCCR1B = _BV(CS10);
// Enable input capture interrupt
TIMSK1 |= _BV(ICIE1);
// Enable external interrupt INT0 on pin 2 with falling edge.
EIMSK = _BV(INT0);
EICRA = _BV(ISC01);
}
ISR(INT0_vect)
{
display.scanLine = 0;
}
void loop() {
TV.draw_line(68,0,68,95,WHITE);
TV.draw_line(0, 48,135,48,WHITE);
delay(100);
TV.clear_screen();
}
videos
http://www.youtube.com/watch?v=185lSSEf87I&feature=youtu.be
http://www.youtube.com/watch?v=qD0TjsV5438&feature=youtu.be