1 2 3 Previous Next 32 Replies Latest reply on Sep 9, 2015 10:53 AM by user_1377889

    Real time write on sd card

    romil.argi

      Hi,

         

      I need to write a ECG signal on sd card but i can't because i can't get all samples with ADC.

         

      This is code:

         

       

         

          for (i = 0; i < 2000; i++)
          {      
                  
             if(ADC_DelSig_1_IsEndConversion(ADC_DelSig_1_WAIT_FOR_RESULT))
              { 
                  output = ADC_DelSig_1_GetResult32();
                  tensao_auxR = ADC_DelSig_1_CountsTo_mVolts(output);
              a=a+1;
              sprintf(buffer,"%4.2d\t %6.2f \n", a,tensao_auxR);
              FS_Write(pFile,buffer,sizeof(buffer));
              //CyDelay(0.1);
             
              }
              
          }

         

       

         

      I can't find the error.

         

      Can help me ?

         

       

         

      Regards.

        1 2 3 Previous Next