Sign In

Trouble In Samping Rate

Ali Jahan shishez@yahoo.com Iran, Islamic Republic of

Hardware: ATmega8 With 16 MHz External Crystal Software: BASCAOM-AVR IDE [2.0.7.3]

Hi,
I can`t get the sampling rate more than 300 Sps on LabVIEW. I have tried different bauds, ADC clk in range of 50-200KHz and crystals. I would like 3KHz audio signal.
Thanks and Best Regards

Images

Program

$regfile = "m8def.dat"
$crystal = 16000000
$hwstack = 40
$swstack = 16
$framesize = 32
$baud = 128000
Config Adc = Single , Prescaler = 128 , Reference = Avcc
Start Adc

Dim A As Word

  Do
  A = Getadc(0)

   Print A
  Loop
End

Post a reply to Ali Jahan

Think you can help Ali Jahan ? Then post your thoughts that might help Ali Jahan. You will earn a lot of reputation in the technical community.

If your program is in multiple files, then ZIP the entire folder and attach below

Images and Screenshots

These helps other better understand your suggestion.