SYNC problem

Store Forums Video Experimenter Bugs/Problems SYNC problem

  • This topic has 2 replies, 2 voices, and was last updated 7 years ago by pax.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #724
    pax
    Member

    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

    #2050
    Michael
    Keymaster

    Try using TV.delay(100) instead of delay(100). You might also try TV.delay_frame(6) which delays 6 frames which is 1/10 of a second.

    #2067
    pax
    Member

    thanks for your help. there is no sync problem.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.