Sigma Delta-Interleaved with other code
Wurlitzer
Posts: 237
I have a current program with all 8 cogs occupied but one·cog is lightly loaded.
I need to get 2 low resolution (7-8 bits) Analog values at a fairly low update rate of around·10-15 x per second.
I understand the concept of Sigma Delta but not how it is extracted from the counters as the samples I looked at all seemed to be stand alone loops and I do not understand if the read of the counter is critical other than not reading too fast for the required resolution.
Can I interleave this code with other code and just read the counter (A & ·data at a time when the other processing permits in a single cog?
Thanks,
Craig
I need to get 2 low resolution (7-8 bits) Analog values at a fairly low update rate of around·10-15 x per second.
I understand the concept of Sigma Delta but not how it is extracted from the counters as the samples I looked at all seemed to be stand alone loops and I do not understand if the read of the counter is critical other than not reading too fast for the required resolution.
Can I interleave this code with other code and just read the counter (A & ·data at a time when the other processing permits in a single cog?
Thanks,
Craig
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
Craig
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andy Lindsay
Education Department
Parallax, Inc.
Post Edited (Andy Lindsay (Parallax)) : 2/16/2009 9:33:08 PM GMT
I am trying the interleaved adc to analyze a signal from a function generator(10 kHz, square wave), but the values being displayed are varying a bit. Is there a way to average several values?(I tried to make an average value in the code above), but the the values still vary every 1 out of 4 values(three values of ~750, and then a reading of 670 for example). I am using a photodiode to produce the signal fed into the adc, and prefer precision because I plan on having 2 photodiodes(taos TSL12S: light-to-voltage)·with their outputs filtered to 10kHz and 20kHz, and I need to compare which photodiode has the bigger output. My final project will have 9 sensors, will I need to use 18 pins to utilize this adc?