k2m051_ino_changes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
k2m051_ino_changes [2015/06/23 14:26] – mithat | k2m051_ino_changes [2015/06/23 14: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 | + | |
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) | ||
- | // This is no longer needed for the K2M. It reports the sample rate correctly | ||
- | // whether it is in NOS or nonNOS | ||
- | | ||
- | */ | ||
return m_dpllVal; | return m_dpllVal; |
k2m051_ino_changes.txt · Last modified: 2015/06/23 14:29 by mithat