cascaded oneshots for programmable oscillator
width of ontime and off time are setp'd
there's a gui enable
requires FP thread

when 1st oneshot timesout, it trgrs the 2nd
when 2nd times out, it trgrs the 1st
aka
when OnDone, trgr OffShot
when OffDone, trgr OnShot

the PMD. is a pyvcp panel parent

fragment from one of the hal files in the suite

################# begin osc section ####################################
net OscON    PMD.OscEna           and2.0.in0
net OffDone and2.0.in1                      oneshot.1.out-not
net OscRun                            and2.0.out  oneshot.0.in

net  onval    PMD.ont                        conv-s32-float.0.in
net  onvalfint conv-s32-float.0.out                  scale.0.in
setp scale.0.gain 0.000001
setp scale.0.offset 0.0
net  onvalf oneshot.0.width                      scale.0.out

net  offval   PMD.offt                       conv-s32-float.1.in
net  offvalfint conv-s32-float.1.out                      scale.1.in
setp scale.1.gain 0.000001
setp scale.1.offset 0.0
net  offvalf oneshot.1.width                        scale.1.out


net OscOut                                        oneshot.0.out

net OnDone oneshot.0.out-not   oneshot.1.in

net OscOut parport.1.pin-01-out
################# end osc section ####################################

regards
tjtr33

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to