View previous topic :: View next topic |
Author |
Message |
waranet
Joined: 05 Jan 2006 Posts: 10 Location: France
|
MAX31865 |
Posted: Tue Jun 17, 2014 2:58 am |
|
|
Hello, I'm looking for a sample of code to handle a MAX31865, I own the EV Kit and this RTD converter seems to be very interesting.
Your help will be very appreciated.
regards
JP |
|
|
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
|
|
Posted: Tue Jun 17, 2014 8:26 pm |
|
|
what is your circuit schematic?
can you show it?
what code have you written and where did you get stuck?
summary: what effort have you put in to this project? |
|
|
waranet
Joined: 05 Jan 2006 Posts: 10 Location: France
|
|
Posted: Wed Jun 18, 2014 1:51 am |
|
|
Hi, the schematic is quiet simple, pic 18lf2523 + ds1337 + 24lc1025 + 20 MHz quartz + ftdi for usb connection... and Max 31865 for the RTD sensor.
Everything is ok with RTC, memory, usb connection. What I'm looking for is only a small sample to save time, library or/and C code.
Thanks for your help.
Rgds. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9244 Location: Greensville,Ontario
|
|
Posted: Wed Jun 18, 2014 5:18 am |
|
|
The device is a 'regular' SPI mode 1 or 3 peripheral and the datasheet is well laidout so cutting your own driver should be fairly easy.
Obviously start with ONLY that device and a PC terminal link(for display purposes). Simple write/read the control registers confirming it exists and you can 'diddle bits'. After that,create an init_function and a simple read/display main loop,add RTD and heat/cool it, seeing data on PC screen.
If you 'google' you will find code cut for 'other' ucomputers/compilers.Simply see how/what they're doing and convert into CCS C code.
Basic driver should take a night or two...depending on required features a modest driver a couple more night.Full blown,feature packed driver should take a weeks labour.
Without a device to properly test I can't cut a driver as there's always something I misread or some errata to deal with.
hth
jay |
|
|
waranet
Joined: 05 Jan 2006 Posts: 10 Location: France
|
|
Posted: Wed Jun 18, 2014 6:37 am |
|
|
Thanks a lot temtronic, in fact the difficulty will be to find some free nights...
rgds
JP |
|
|
ezflyr
Joined: 25 Oct 2010 Posts: 1019 Location: Tewksbury, MA
|
|
Posted: Wed Jun 18, 2014 6:51 am |
|
|
Bonjour,
I have not looked at the datasheet for the MAX31865 device, but I'd be very surprised if there wasn't some commonality with the MAX31855 thermocouple interface IC. I think there are some routines for this IC in the archives, or I can send you some as a starting off point.
John |
|
|
waranet
Joined: 05 Jan 2006 Posts: 10 Location: France
|
|
|
|