AnsweredAssumed Answered

ADC + UART

Question asked by Pachchigar.Pinkesh on Nov 25, 2013
Latest reply on Nov 25, 2013 by Clive One
Hello everyone ,

 I have connected my ADC source  in STM32F4 - Discovery Board at PC2  pin. I want to  transfer this through UART to PC. I have configured PA9 and PA10 as USART1 TX and RX pin . But I am getting nothing at PC terminal .What could be the problem ?

int main(void)     
{
 
  ADC3_CH12_DMA_Config();
     
  /* Start ADC3 Software Conversion */ 
  ADC_SoftwareStartConv(ADC3);
     
  init_usart1();

  /* convert the ADC value (from 0 to 0xFFF) to a voltage value (from 0V to 3.3V)*/
        ADC3ConvertedVoltage = ADC3ConvertedValue *3300/0xFFF;     
     SendAsciiDataToPC(ADC3ConvertedVoltage); 
     UartSendData('\n');     
    
  }
}


Outcomes