PropBasic - ADC
camelot2
Posts: 54
hi, I am trying to write a program in PropBasic to read the outputs of 2 ADC (each 8 bits). I want to clock the ADCs from 1KHz to 20 MHz using COUNTERA and gather 300 samples as fast as possible and then send this data to the PC for display. I have put together the attached file but I can only acquire 250 samples, thereafter the program will not compile and says "PC exceeds cog memory by 50 longs. The Compiler Information window says the program is using 226 longs. I am a newbie to the Propeller and really need some help. What am I doing wrong and how can I acquire at least 300 samples and still have some program space left to recieve commands from the PC. Many thanks for your help - Dave
Comments
I have modifed your program. I can't try it, but you'll get the idea.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information