Eeprom r/w via CAN

Started by kinggsm October 20, 2003
I need software for read/write eeprom via CAN-bus


I need some spare time On Mon, 20 Oct 2003 19:10:54 -0000
"kinggsm" <> wrote:

> I need software for read/write eeprom via CAN-bus

Happy HC(S)12ing!
Oliver -----------------
*** Oliver Thamm's HC12 Web *** http://hc12web.de ***
-----------------


> I need software for read/write eeprom via CAN-bus

The CAN bus can't rewrite the EEPROM. You need low level drivers for
that :)


If you go to the motorola developers site and look through their application
notes, you will find 2 or 3 AN's that will give you some very good ideas and
a couple of coding examples. Besides section 17 of the 68hc12 manual, check
out AN2255/D, AN2010, AN2238 and a couple of others that I cannot remember
right now as I have them at work. There is an example program in one of
these ANs that is referred to as LRAE. Like all the app notes that I read,
watch out for obvious errorrs! I am doing something like this right now and
used computed GOTOs (that's also in one of these ANs) based on ID accepted
by a node. For example, I reserve $00 as my "global broadcast address" from
the master to all the other nodes. Then for one of the nodes, say node $80
I have reserved addresses $80 through $87 (AN2010 talks about a filter
generator tool that is a freebie, and it works) so when I receive a msg, one
section of code converts these ID (addresses?) into an offset that can be
used by the computed GOTOs to call a desired routine, erase_memory,
prog_memory, or whatever. All you really need to consider is assigning
blocks of addresses to each "slave node" that will convert to an offset that
you can use. I reserved $00-$07 for the range of master node IDs. The
surprising thing is that is works! I am using the D60 (34 of them). I can
give more details on which ANs do what, but you should be able to find them
on the Motorola Dev site: it is free, but you do have to register. Here is
another CAN tip: go to groups.yahoo.com/group/canbus to see a lot more on
CAN! This site is a mirror site for vector-informatik.de and is in
English. You can read the postings on this site, but you will have to
register with the vector-informatik site directly, not through Yahoo, to
become a member so that you can post messages - this is run by the Bosch
group in Germany, so it will give a lot of answers, but they really look at
a lot of protocols that use the basic protocols 2.0 A and B, but there is a
lot of help and knowledge to be gained from this site.
Sydney
----- Original Message -----
From: Oliver Thamm
To:
Sent: Monday, October 20, 2003 2:54 PM
Subject: Re: [68HC12] Eeprom r/w via CAN I need some spare time On Mon, 20 Oct 2003 19:10:54 -0000
"kinggsm" <> wrote:

> I need software for read/write eeprom via CAN-bus

Happy HC(S)12ing!
Oliver -----------------
*** Oliver Thamm's HC12 Web *** http://hc12web.de ***
-----------------

--------------------