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

UNI/O CCS C protocol code

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



Joined: 18 Jun 2009
Posts: 2

View user's profile Send private message

UNI/O CCS C protocol code
PostPosted: Thu Jun 18, 2009 9:43 pm     Reply with quote

It's me, Looking to use EEprom with low interfacing pin. Anybody have
idea for me? Looking for 11AAXXX Microchip eeprom but have no
example code with CCS compiler.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Thu Jun 18, 2009 11:32 pm     Reply with quote

You can port the Microchip example sources for Hitech C.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jun 19, 2009 2:08 pm     Reply with quote

CCS has a driver file for it. It's in this location:
Quote:
c:\Program Files\picc\drivers\11LC160.c
JW2881



Joined: 18 Jun 2009
Posts: 2

View user's profile Send private message

PostPosted: Sun Jun 21, 2009 9:51 pm     Reply with quote

I could not find this driver on my pc. I use CCS 4.057 version.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jun 21, 2009 10:21 pm     Reply with quote

Send an email to CCS support and ask them nicely if they will email you
the driver file. Be sure to send them your customer reference number
so they know that you own the compiler.
dpechman



Joined: 04 Dec 2007
Posts: 43

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

PostPosted: Fri Feb 24, 2012 2:42 pm     Reply with quote

have somebody tested this driver with 11AA02E48?

it's compliant with the driver?

I am trying to read 0xfa to 0xff to extract the mac and all address are returning the same aleatory number each time I restart the board.

If I run the code with microchip demo for c18 it works. My hardware is ok.
temtronic



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

View user's profile Send private message

PostPosted: Fri Feb 24, 2012 2:58 pm     Reply with quote

Since you've got both the C18 source and the CCS code, it can't be that hard to compare how the code works (and doesn't).
dpechman



Joined: 04 Dec 2007
Posts: 43

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

PostPosted: Fri Feb 24, 2012 3:32 pm     Reply with quote

Sure it is, just asking if someone have tried with success because I don't analyse yet anything in the operation of the driver, just make it run in my code.

Trying to save some time, this is why I choose to try this pre-build driver first. If anybody reply until Monday I will have to try the reverse-engineering from c18 driver and checks with the datasheet.
dpechman



Joined: 04 Dec 2007
Posts: 43

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

PostPosted: Fri Feb 24, 2012 3:48 pm     Reply with quote

In the datasheet of 11AA02E48 says:

"This data sheet documents only the
device’s features and specifications that
are in addition to the features and specifications
of the 11AA020 device."

11AA020 is compliant, then, I believe it have to work.
dpechman



Joined: 04 Dec 2007
Posts: 43

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

PostPosted: Fri Feb 24, 2012 4:48 pm     Reply with quote

I found a problem.

In the c18 initialization there is a difference, the internal pull up is activated(no, I don't have one in my board), then I put a resistor of 10k in the board to confirm and it start to show different bytes.

The bytes after the 3rd(0xfc to 0xff) after each restart still the same, but the 1st and 2nd are random yet.

next step, activate the internal weak pull up.
dpechman



Joined: 04 Dec 2007
Posts: 43

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

PostPosted: Fri Feb 24, 2012 5:47 pm     Reply with quote

YEAH!!!!! WORKS!!!!

bit_set(*0xF89, 6); //activate pull up LATA.REPU

Just not sure why with external pull up it fails, perhaps impedance.

my mac: 00:04:a3:03:f0:40

Thanks temtronic for making me work Smile laziness killed the man
temtronic



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

View user's profile Send private message

PostPosted: Fri Feb 24, 2012 8:25 pm     Reply with quote

Heck, all I know is that the 'new' PICs are FAR more complicated than the quartz windowed versions that I played with 20 years ago. I don't know HOW anyone can remember all the 'details' BUT I do know that reading is very,very important and knowing WHERE the information might be is the key.Details, it's always in the details.....
I've 'settled' on 3 or 4 PICS and 'fine tune' code to make them work,though the great features the new ones have.....well, they're only 'new' for a week or so.
I'm sure you'll remember better, by being gently pushed rather than having the answer served on a silver platter.
dpechman



Joined: 04 Dec 2007
Posts: 43

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

PostPosted: Fri Feb 24, 2012 8:54 pm     Reply with quote

I agree 100%, and say that the hardest part is what makes much of the quorum of this forum to work with embedded electronics. I also have 20 years involved in the area, but only about 10 with microchip. And the more deepen it, the more I like it.
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