Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
Hi, Currently, i can manual switch those video input ports to my preferences by pressing the push button, using the i2c protocol. But if i want the video ports to switch automatic like 2 secs delay how can i do about it ? example vin 5 after 2secs will switch to vin 4 then 2secs again switch back to vin 5 and so on... anyone? thanks
On Tue, 16 Oct 2007, miracle_sksim wrote: > Hi, > > Currently, i can manual switch those video input ports to my > preferences by pressing the push button, using the i2c protocol. > > But if i want the video ports to switch automatic like 2 secs delay > how can i do about it ? example vin 5 after 2secs will switch to vin 4 > then 2secs again switch back to vin 5 and so on... > > anyone? How about one of the timers? Just read a clock, or set up an interrupt. Actually going that slow is tricky. You'll probably need to expand on the timer by counting rollovers. But read the manual - you may be able to go for hours too by using the right prescaler. Patience, persistence, truth, Dr. mike
Hi, You can setup one of the GP timers to generate an interrupt every couple of seconds. You can then switch to different video channels within the callback function. Cheers, George _____ From: a...@yahoogroups.com [mailto:a...@yahoogroups.com] On Behalf Of miracle_sksim Sent: Tuesday, October 16, 2007 12:08 AM To: a...@yahoogroups.com Subject: [adsp] Automatic Video Port Switching. Hi, Currently, i can manual switch those video input ports to my preferences by pressing the push button, using the i2c protocol. But if i want the video ports to switch automatic like 2 secs delay how can i do about it ? example vin 5 after 2secs will switch to vin 4 then 2secs again switch back to vin 5 and so on... anyone? thanks