The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Aug 15th, 2024, 3:29pm
Pages: 1
Send Topic Print
cross statement in example VCO in designers guide (Read 1710 times)
sylak
Junior Member
**
Offline



Posts: 24
Silicon valley
cross statement in example VCO in designers guide
Aug 29th, 2007, 3:41pm
 
In the VCO ( no jitter) given in the example section here in designers guide ...there is a cross statement with a phase+`M_PI/2

what does this cross statement do? I can understand if there is a '-'(minus ) in the place of '+'.


what is the condition here and how doesn this work ? isnt it always positive ?say phase is 0.6 or any other integer?

// identify the point where switching occurs
   @(cross(phase + `M_PI/2, +1, ttol)...
...
...
...

Thanks
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: cross statement in example VCO in designers gu
Reply #1 - Aug 31st, 2007, 8:23am
 
phase isn't necessarily positive; the idtmod call shows it starting at -0.5 * 2 * `M_PI, which is -`M_PI:

   phase = 2*`M_PI*idtmod(freq, 0.0, 1.0, -0.5);
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.