[quote user="PRASANTH S"]can you tell me samping time for this values....[/quote] You shall find it out yourself. First thing to do: get Users Guide which you download from msp430f5438a product page. Then you read ADC12 peripheral documentation, in your case (of sample code) start with documentation of registers, see what values are set by source example. ADC12CTL1 = ADC12CSTARTADD_7 + ADC12SHP+ ADC12DIV_0 + ADC12SSEL_3 + ADC12CONSEQ_2; ADC12SSEL_3 tells that clock source is SMCLK. ADC12CTL0 = ADC12ON+ADC12SHT0_8+ADC12MSC; // Turn on ADC12, set sampling time ADC12SHT0_8 means 256 clock cycles of SMCLK frequency. In case of 1MHz it's 256 microseconds. [quote user="PRASANTH S"]and let me know it is sufficient or not ..... [/quote] Nobody but you can tell it - because only you know your application and impedance of voltage source. Further reading: 28.2.5.3 Sample Timing Considerations
↧