User Tools

Site Tools


k2m051_ino_changes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
k2m051_ino_changes [2015/06/23 15:26]
mithat
k2m051_ino_changes [2015/06/23 15:29] (current)
mithat
Line 38: Line 38:
     m_dpllVal >>= 1;     // Get rid of LSB to allow for integer operation below to avoid overflow.     m_dpllVal >>= 1;     // Get rid of LSB to allow for integer operation below to avoid overflow.
  
-//#ifdef USE80MHZ+    ​//using 80MHZ clock
     m_dpllVal *= 16;     // Calculate SR for 80MHz part     m_dpllVal *= 16;     // Calculate SR for 80MHz part
     m_dpllVal /= 859;    // Calculate SR for 80MHz part     m_dpllVal /= 859;    // Calculate SR for 80MHz part
     m_dpllVal += 1;     m_dpllVal += 1;
     m_dpllVal *= 2;     m_dpllVal *= 2;
-//#endif 
-//#ifdef USE100MHZ 
-//    m_dpllVal *= 20;     // Calculate SR for 100MHz part 
-//    m_dpllVal /= 859;    // Calculate SR for 100MHz part 
-//    m_dpllVal *= 2 
-//#endif 
- 
-    /* 
-    if (m_dpllVal < 90000) // Adjusting because in integer operation, the residual is truncated 
-                         // This is just cosmetic... 
-      m_dpllVal+=1;​ 
-      else 
-        if (m_dpllVal < 190000) 
-          m_dpllVal+=2;​ 
-        else 
-          if (m_dpllVal < 350000) 
-            m_dpllVal+=3;​ 
-          else 
-            m_dpllVal+=4;​ 
-    */ 
-    /* 
-    if(bypassOSF) ​     // When OSF is bypassed, the magnitude of DPLL is reduced by a factor of 64 
-                      // This is no longer needed for the K2M. It reports the sample rate correctly 
-                      // whether it is in NOS or nonNOS 
-     ​m_dpllVal*=64;​ 
-    */ 
  
     return m_dpllVal;     return m_dpllVal;
k2m051_ino_changes.txt · Last modified: 2015/06/23 15:29 by mithat