CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Detection of presence of video signal

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

Detection of presence of video signal
PostPosted: Mon Jan 05, 2004 9:24 pm     Reply with quote

Hi everybody,
In an application I need to detect the presence of a composite video signal (coming from Video-Out port of the TV). What is the best way of doing this?

Thanks in advance.
dyeatman



Joined: 06 Sep 2003
Posts: 1912
Location: Norman, OK

View user's profile Send private message

Composite Video
PostPosted: Mon Jan 05, 2004 9:45 pm     Reply with quote

Do you need to sense purely the presence/absence or the actual level?

If simply presence the route I would take is to half wave rectify the video with a single signal diode/cap circuit and sense the resulting DC voltage present using PIC A/D.

If it is level you would have to be a little more careful as how you convert the signal to get a known level corresponding to the video output.

FWIW Smile
MarkD



Joined: 09 Sep 2003
Posts: 3
Location: Toronto, Canada

View user's profile Send private message Visit poster's website

Re: Detection of presence of video signal
PostPosted: Tue Jan 06, 2004 3:58 pm     Reply with quote

Haplo wrote:
Hi everybody,
In an application I need to detect the presence of a composite video signal (coming from Video-Out port of the TV). What is the best way of doing this?

Thanks in advance.


A reliable way to do this is to build a vertical sync detector (sync separator circuit feeding an external interrupt)

You then measure the frequency of the sync pulses, it should be 60 or 50 Hz (NTSC or PAL)

Here is a link to a sync detector circuit: http://www.qsl.net/kd2bd/vor.html
The circuit shown is stand-alone and does not need a micro. If you need to integrate this into a project that has a micro, feed the signal that goes into the PLL into an interrupt line of the micro instead.


Mark
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group