Need C-code for Sigma Delta ADC
Alex.Stanfield
Posts: 198
I'm starting a project which will require an ADC and want to do it in C with the SimpleIDE.
Has anyone an example of a Sigma Delta ADC using C code?
Thanks in advance.
Alex
Has anyone an example of a Sigma Delta ADC using C code?
Thanks in advance.
Alex
Comments
It's not pure C, but the Sigma Delta ADC from Spin is used .
Thanks a lot Reinhard, I'll give it a try soon.
I'll be measuring temperature with a 100K NTC thermistor. I could use an ADC chip but being a low-speed variable and only one it seems a waste to add a chip on the board
I would also welcome any recommendation as to the right placement of the sigma-delta components on the new propeller proto board (#32810)
Alex
I forgot, the conversion from Spin to objectcode is done with:
bstc -ls -Ox -c -o sigma_delta sigma_delta.spin
propeller-elf-objcopy -I binary -B propeller -O propeller-elf-gcc sigma_delta.dat sigma_delta_firmware.o
I do not know if it is possible to do this inside the SimpleIDE, but I think it's not a big expense do this with commandline.
Reinhard
SimpleIDE handles the .spin PASM code conversion automatically for spin files added in the project.
Good to see you posting again.
I have try it.
->Project::Add File and the Spincode is compiled and linked without Problems
it is really SIMPLE ;-)
Reinhard