Shop OBEX P1 Docs P2 Docs Learn Events
PropBasic - ADC — Parallax Forums

PropBasic - ADC

camelot2camelot2 Posts: 54
edited 2010-04-15 22:21 in Propeller 1
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

Sign In or Register to comment.