Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4922

Getting error in software

$
0
0
Code (C):
  1. void fnCalc_Disp_pH (int itempe)
  2. {
  3.         // Now Calc ph !
  4.         fnADCInit(5,'h');
  5.  
  6.         float fpHread=0;
  7.  
  8.         for(char k=0;k<8;k++)
  9.         {
  10.                 fpHread=fpHread+fnADCConv1024Avg();
  11.  
  12.                 // before going any further,check if the mode flag was raised
  13.                 // if yes,then just return to the calling function
  14.                 if(cModeFlag==1)
  15.                 {
  16.                         cModeFlag=0; // reset flag for future use...
Getting error in software

Viewing all articles
Browse latest Browse all 4922

Trending Articles