View previous topic :: View next topic |
Author |
Message |
JW2881
Joined: 18 Jun 2009 Posts: 2
|
UNI/O CCS C protocol code |
Posted: Thu Jun 18, 2009 9:43 pm |
|
|
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
|
|
Posted: Thu Jun 18, 2009 11:32 pm |
|
|
You can port the Microchip example sources for Hitech C. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Jun 19, 2009 2:08 pm |
|
|
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
|
|
Posted: Sun Jun 21, 2009 9:51 pm |
|
|
I could not find this driver on my pc. I use CCS 4.057 version. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Jun 21, 2009 10:21 pm |
|
|
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
|
|
Posted: Fri Feb 24, 2012 2:42 pm |
|
|
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: 9241 Location: Greensville,Ontario
|
|
Posted: Fri Feb 24, 2012 2:58 pm |
|
|
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
|
|
Posted: Fri Feb 24, 2012 3:32 pm |
|
|
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
|
|
Posted: Fri Feb 24, 2012 3:48 pm |
|
|
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
|
|
Posted: Fri Feb 24, 2012 4:48 pm |
|
|
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
|
|
Posted: Fri Feb 24, 2012 5:47 pm |
|
|
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 laziness killed the man |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9241 Location: Greensville,Ontario
|
|
Posted: Fri Feb 24, 2012 8:25 pm |
|
|
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
|
|
Posted: Fri Feb 24, 2012 8:54 pm |
|
|
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. |
|
|
|