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

M25p40 driver

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



Joined: 23 Oct 2006
Posts: 175

View user's profile Send private message

M25p40 driver
PostPosted: Wed Jul 11, 2012 7:45 pm     Reply with quote

At the link http://www.ccsinfo.com/forum/viewtopic.php?t=28445
PCM programmer said that the driver of 68hc68r2 is able to use for the m25p20.

I would like to ask if someone know any driver which is able to be used instead of m25p40 or how to modify 68hc68r2 to be used for the m25p40 component????

I would need to read from adc and use spi for writing to m25p40 memory.
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Jul 12, 2012 5:32 am     Reply with quote

I way I read that post, PCM pgmr didn't say it would work, the OP said it did....
however without real chips I can't test the driver.
As well, you don't say which PIC you're using,compiler version,etc. All of which is necessary to help you.
hth
jay
andys



Joined: 23 Oct 2006
Posts: 175

View user's profile Send private message

M25p40 driver
PostPosted: Thu Jul 12, 2012 6:36 am     Reply with quote

I used dspic33fj128gp708 .

(How to find the compiler version?)
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Jul 12, 2012 6:56 am     Reply with quote

Easy....open up the listing(ie:programfilename.lst), it'll be on the first few lines(ie: version 4.nnn).
andys



Joined: 23 Oct 2006
Posts: 175

View user's profile Send private message

M25p40 driver
PostPosted: Thu Jul 12, 2012 7:16 am     Reply with quote

version: 4.3.0.218


Can you help me?
andys



Joined: 23 Oct 2006
Posts: 175

View user's profile Send private message

M25p40 driver
PostPosted: Thu Jul 12, 2012 3:01 pm     Reply with quote

No respond yet? Crying or Very sad
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Jul 12, 2012 3:45 pm     Reply with quote

You should printout the datasheets for of the devices and compare the communications information (SPI..timings...commands..etc.)
Then make a copy of the driver(do NOT alter the original driver !) and edit it to conform to the commands and timings for your device.
Then try it out on real devices.Be sure to store 'known' data, say 1-2-3 and be sure you can read it back !
Once you're sure this test data is correct, proceed with more testing, say 50-100 'known' data and confirm it is correct.

You might want to google your chip and PIC C driver code or similar to see if you get any 'hits'.

I do not write drivers without having the real hardware in my PIC test boards.
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