Shop OBEX P1 Docs P2 Docs Learn Events
AD1259 interface — Parallax Forums

AD1259 interface

Hi all,
I was wondering if anyone has created any interface code for the AD1259. If not can you all suggest ways to do it? It is a 24 bit A/D with an spi interface. Thanks,
Greg

Comments

  • kwinnkwinn Posts: 8,697
    Do you mean the TI ADS1259? If so you could start with one of the spi objects in the obex and modify it for use with the ADS1259. All the required information seems to be in the data sheet.

    What sampling rate do you want?
  • Hi kwinn,
    Yes, thats the one. I am trying to go the 14ksps, may not need the that speed but that is what I am shooting for. I have looked at the obex but haven't really found something that works for me. Part of the problem is deciphering the code, I guess I am a bit rusty.
    Thanks,
    Greg
  • kwinnkwinn Posts: 8,697
    At 14ksps I doubt spin would do. You will probably need to use PASM or possibly C.
  • yes.. I assumed that
  • So no one has any ideals on this? I was trying to modify ads1252 obex code to fit this and discovered that this device interface is not at all the same.. should have looked closer.
    Any ideas would be helpful
    Thanks
    Greg
  • DavidZemonDavidZemon Posts: 2,973
    edited 2015-09-15 21:31
    I have C++ code for the MCP3xxx series ADCs using SPI up to 4 MHz. I don't have the TI chip to test on, but I could look into the datasheet and possibly create an object in PropWare for you if you'd like.
  • Thanks Swim,
    I discovered last night that might be the right approach and started digging through the asm language on it. It seems the only way to go. You would think there would be a database somewhere for all the prop interfaces of popular devices. It would have been cool. You can just imagine all the interfaces that have already been developed lying around in peoples computers..
    Greg
  • steprog wrote: »
    You would think there would be a database somewhere for all the prop interfaces of popular devices. It would have been cool. You can just imagine all the interfaces that have already been developed lying around in peoples computers..

    Parallax's answer is "that's what the obex is for" but very few in the PropGCC community have adopted it as their repo of choice.
Sign In or Register to comment.