home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / vxworks / 728 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.3 KB

  1. Path: sparky!uunet!sun-barr!ames!agate!dog.ee.lbl.gov!lbl.gov!vxwexplo
  2. From: prb@aplexus.jhuapl.edu (Paul R. Bade)
  3. Newsgroups: comp.os.vxworks
  4. Subject: re: MVME167 and RealTime Clock
  5. Date: Mon, 17 Aug 92 08:18:25 EDT
  6. Organization: Lawrence Berkeley Laboratory, Berkeley CA
  7. Lines: 31
  8. Sender: vxwexplo@lbl.gov
  9. Message-ID: <9208171218.AA08406@aplexus.jhuapl.edu>
  10. NNTP-Posting-Host: 128.3.112.16
  11. Originator: daemon@vxw.ee.lbl.gov
  12.  
  13.  
  14. Wind River was informed of this error quite sometime ago, so long ago 
  15. that I can't remember exactly when. The code I have used to correct the 
  16. situation is:
  17.  
  18.     strncpy ( oscFreq, (char*)0xfffc1f28, 4);  /* read clk speed from BBRAM */
  19.     oscFreq[4] = NULL; /* terminate string */
  20.  
  21.     printf("Board has a %2s.%s Mhz Oscillator\n", oscFreq, &oscFreq[2]);
  22.     if (!strncmp(oscFreq, "33", 2))
  23.     {
  24.       *PCC2_PRESCALE        = -33;
  25.       *PCC2_PRESCALE_CLK_ADJ  = -33;
  26.       if (strncmp(oscFreq, "3300", 4))
  27.       {
  28.         printf("sysLib.c: sysHwInit: \"Non-Integer clock frequency on Board will introduce error in system Clock ^G^G (see p 3-18 of MV167 manual)\n\"");
  29.       }
  30.     }  
  31.  
  32.     else /* if (strncmp(oscFreq, "2500", 4))   */
  33.     {
  34.       *PCC2_PRESCALE        = -25;
  35.       *PCC2_PRESCALE_CLK_ADJ  = -25;
  36.     }
  37.    
  38.  
  39.     That's All Folks,
  40.  
  41.         Paul Bade
  42.         Johns Hopkins University / Applied Physics Lab
  43.  
  44.