Shop OBEX P1 Docs P2 Docs Learn Events
Need C-code for Sigma Delta ADC — Parallax Forums

Need C-code for Sigma Delta ADC

Alex.StanfieldAlex.Stanfield Posts: 198
edited 2014-06-11 02:40 in Propeller 1
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

Comments

  • ReinhardReinhard Posts: 489
    edited 2014-06-10 12:48
    Hey
    It's not pure C, but the Sigma Delta ADC from Spin is used .
  • Alex.StanfieldAlex.Stanfield Posts: 198
    edited 2014-06-10 19:35
    Reinhard wrote: »
    Hey
    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
  • ReinhardReinhard Posts: 489
    edited 2014-06-10 23:42
    Hello 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
  • jazzedjazzed Posts: 11,803
    edited 2014-06-11 01:31
    Hi Reinhard.

    SimpleIDE handles the .spin PASM code conversion automatically for spin files added in the project.

    Good to see you posting again.
  • ReinhardReinhard Posts: 489
    edited 2014-06-11 02:40
    Hi Steve,
    I have try it.
    ->Project::Add File and the Spincode is compiled and linked without Problems
    it is really SIMPLE ;-)
    Reinhard
Sign In or Register to comment.