Moderators: Dave Moll, Andrew Davie, Steve Anderson
Klaas Robers wrote:But we see nothing strange from video signals that have just 64 steps (6 bits) between black and white.
Andrew Davie wrote:Here's a gotcha...
"It takes about 100 microseconds (0.0001 s) to read an analog input, so the maximum reading rate is about 10,000 times a second."
Steve Anderson wrote:Andrew Davie wrote:Here's a gotcha...
"It takes about 100 microseconds (0.0001 s) to read an analog input, so the maximum reading rate is about 10,000 times a second."
Really? That slow? Most recent PICs can convert at 50ks/s (50kHz), quite a few somewhat faster. Same number of bits (10). Are you sure of that 100us figure?
NBTV is usually quoted as having a bandwidth of around 10kHz which requires a sampling rate of 20kHz minimum. The Shannon-Nyquist equation.
Steve A.
Steve Anderson wrote:Yep, that true of most micros, one A-D module which can have a variety of input pins. But if you only need to A-D the video that's one pin and you can go flat out. No channel/source switching required which requires a bit more time and code.
Steve A.
Andrew Davie wrote:[...but I thought a simple external circuit could convert that to a binary 0/1 and then use a digital pin for that.
Steve Anderson wrote:Depending on how the comparator can be configured you could either use an internal or external reference to determine the switching voltage and if the output of the comparator is available also on another pin provide some positive feedback to get a nice clean rapid switch between 0 and !...and the reverse.
What is the actual chip's designation (part number, e.g. an example PIC would be PIC18F2620) so I can have a peer at the datasheet for it...I'm not saying that I'll be able to help!!
Steve A.
Steve Anderson wrote:A quick scan through the datasheet reveals that the comparator output isn't available on an external pin. Never mind, it should be OK without any feedback. The (single) comparator can cause an interrupt if that's the way you wish to go...the ISR should be able to clean up ragged edges...polling the output could lead to erratic performance. At least it saves you some external hardware.
Steve A.
Return to Andrew Davie's Arduino Televisor
Users browsing this forum: No registered users and 1 guest