CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

MAX31865

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
waranet



Joined: 05 Jan 2006
Posts: 10
Location: France

View user's profile Send private message Visit poster's website

MAX31865
PostPosted: Tue Jun 17, 2014 2:58 am     Reply with quote

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

View user's profile Send private message AIM Address

PostPosted: Tue Jun 17, 2014 8:26 pm     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Wed Jun 18, 2014 1:51 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Jun 18, 2014 5:18 am     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Wed Jun 18, 2014 6:37 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Jun 18, 2014 6:51 am     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Wed Jun 18, 2014 7:18 am     Reply with quote

I found this topic ... http://www.mikrocontroller.net/topic/298869
This code is for AVR but seems to be easy to translate for Pic.

I guess I can sleep now.
rgds,
JP
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group