Forums

HCS12 to HCS12 communication

Started by deaninkc March 31, 2005

While looking around for a way to interface a DP256 processor to SD
memory card and USB. I ran across the MC9S12UF32 processor that has
hardware interfaces to both. The problem is it does not have a SPI or
CAN interface or the AD that I need, so I though I would use both
processors. I'm assuming I can somehow communicate between the two
processors using a port or somehow through the bus. The processors
would be on the same board. Any ideas would be appreciated.

Dean



What speed do you need? You have an SCI on the UF32. If it's not fast
enough, you can try a parallel port (e.g. 8 data+2 handshake signals).
Or you can emulate ATA on the DP256 :).
Do you really need the UF32? What kind of USB device do you want?
Wouldn't an ft232/245 do? You could also interface the SD to the
DP256. I believe it would be much easier than to figure out how the
UF32 really works and design and code its interface to the DP256.

Zoltan

--- In 68HC12@68HC..., "deaninkc" <dean@m...> wrote:
>
> While looking around for a way to interface a DP256 processor to SD
> memory card and USB. I ran across the MC9S12UF32 processor that has
> hardware interfaces to both. The problem is it does not have a SPI
or
> CAN interface or the AD that I need, so I though I would use both
> processors. I'm assuming I can somehow communicate between the two
> processors using a port or somehow through the bus. The processors
> would be on the same board. Any ideas would be appreciated.
>
> Dean



There is also FAT16 code designed for the SD and MM cards in the file
section of this group. The hardware interface is simply SPI (and power
control) for the SPI mode compatible cards.
PL.

At 07:51 AM 1/04/2005 +0000, you wrote: >What speed do you need? You have an SCI on the UF32. If it's not fast
>enough, you can try a parallel port (e.g. 8 data+2 handshake signals).
>Or you can emulate ATA on the DP256 :).
>Do you really need the UF32? What kind of USB device do you want?
>Wouldn't an ft232/245 do? You could also interface the SD to the
>DP256. I believe it would be much easier than to figure out how the
>UF32 really works and design and code its interface to the DP256.
>
>Zoltan
>
>--- In 68HC12@68HC..., "deaninkc" <dean@m...> wrote:
> >
> > While looking around for a way to interface a DP256 processor to SD
> > memory card and USB. I ran across the MC9S12UF32 processor that has
> > hardware interfaces to both. The problem is it does not have a SPI
>or
> > CAN interface or the AD that I need, so I though I would use both
> > processors. I'm assuming I can somehow communicate between the two
> > processors using a port or somehow through the bus. The processors
> > would be on the same board. Any ideas would be appreciated.
> >
> > Dean >
>Yahoo! Groups Links >
>





Thanks for the good info. I am looking for speed, but I think the SPI
will work. The USB connection is of secondary importance, but would
be nice long term. Any suggestions on SD hardware for prototyping?
There are a lot of connectors out there, but I'm having a hard time
finding someone that sells small quanities. Mouser is about the only
one so far. I've got a bit of a learning curve, I've been a software
guy, not a hardware one but I'm starting to figure things out.

Dean

--- In 68HC12@68HC..., Peter Lissenburg <peter@s...> wrote:
> There is also FAT16 code designed for the SD and MM cards in the
file
> section of this group. The hardware interface is simply SPI (and
power
> control) for the SPI mode compatible cards.
> PL.
>
> At 07:51 AM 1/04/2005 +0000, you wrote: > >What speed do you need? You have an SCI on the UF32. If it's not
fast
> >enough, you can try a parallel port (e.g. 8 data+2 handshake
signals).
> >Or you can emulate ATA on the DP256 :).
> >Do you really need the UF32? What kind of USB device do you want?
> >Wouldn't an ft232/245 do? You could also interface the SD to the
> >DP256. I believe it would be much easier than to figure out how the
> >UF32 really works and design and code its interface to the DP256.
> >
> >Zoltan
> >
> >--- In 68HC12@68HC..., "deaninkc" <dean@m...> wrote:
> > >
> > > While looking around for a way to interface a DP256 processor
to SD
> > > memory card and USB. I ran across the MC9S12UF32 processor that
has
> > > hardware interfaces to both. The problem is it does not have a
SPI
> >or
> > > CAN interface or the AD that I need, so I though I would use
both
> > > processors. I'm assuming I can somehow communicate between the
two
> > > processors using a port or somehow through the bus. The
processors
> > > would be on the same board. Any ideas would be appreciated.
> > >
> > > Dean
> >
> >
> >
> >
> >
> >
> >Yahoo! Groups Links
> >
> >
> >
> >



> From: deaninkc [mailto:dean@dean...]
> Sent: Friday, April 01, 2005 11:59 AM
> To: 68HC12@68HC...
> Subject: [68HC12] Re: HCS12 to HCS12 communication > finding someone that sells small quanities. Mouser is about the only

www.digikey.com

> one so far. I've got a bit of a learning curve, I've been a software
> guy, not a hardware one but I'm starting to figure things out.
>
> Dean




Hello Dean

I am just about to start production of a small circuit board with an
SD-card connector and 5V-to-3.3V level translation:
http://www.flashgenie.net

I'll be glad to send you a prototype at cost if you give me some
feedback afterwards!

best regards
Robert

--- In 68HC12@68HC..., "deaninkc" <dean@m...> wrote:
>
> Thanks for the good info. I am looking for speed, but I think the SPI
> will work. The USB connection is of secondary importance, but would
> be nice long term. Any suggestions on SD hardware for prototyping?
> There are a lot of connectors out there, but I'm having a hard time
> finding someone that sells small quanities. Mouser is about the only
> one so far. I've got a bit of a learning curve, I've been a software
> guy, not a hardware one but I'm starting to figure things out.
>
> Dean
>
> --- In 68HC12@68HC..., Peter Lissenburg <peter@s...> wrote:
> > There is also FAT16 code designed for the SD and MM cards in the
> file
> > section of this group. The hardware interface is simply SPI (and
> power
> > control) for the SPI mode compatible cards.
> > PL.
> >
> > At 07:51 AM 1/04/2005 +0000, you wrote:
> >
> >
> > >What speed do you need? You have an SCI on the UF32. If it's not
> fast
> > >enough, you can try a parallel port (e.g. 8 data+2 handshake
> signals).
> > >Or you can emulate ATA on the DP256 :).
> > >Do you really need the UF32? What kind of USB device do you want?
> > >Wouldn't an ft232/245 do? You could also interface the SD to the
> > >DP256. I believe it would be much easier than to figure out how the
> > >UF32 really works and design and code its interface to the DP256.
> > >
> > >Zoltan
> > >
> > >--- In 68HC12@68HC..., "deaninkc" <dean@m...> wrote:
> > > >
> > > > While looking around for a way to interface a DP256 processor
> to SD
> > > > memory card and USB. I ran across the MC9S12UF32 processor that
> has
> > > > hardware interfaces to both. The problem is it does not have a
> SPI
> > >or
> > > > CAN interface or the AD that I need, so I though I would use
> both
> > > > processors. I'm assuming I can somehow communicate between the
> two
> > > > processors using a port or somehow through the bus. The
> processors
> > > > would be on the same board. Any ideas would be appreciated.
> > > >
> > > > Dean
> > >
> > >
> > >
> > >
> > >
> > >
> > >Yahoo! Groups Links
> > >
> > >
> > >
> > >




Yeah, I figured it would be more complicated than just hooking the SD
connector to the SPI port and writting some software. Like I said
before I'm a software guy not hardware and I like to make the
hardware part as simple as possible. That's why I thought using a $5
U32 processor might be the easiest and cheapest way to go. Otherwise
I'm looking at a complicated circuit for SD, adding the FT232 USB chip
that I can't seem to find in small quanites unless I buy the mini-
board at $35 and dealing with several SMD componants instead of one
or two. Oh well I guess I'm learning something anyway :) Nothing
worth doing is easy. I'd be interest in trying your board, contact me
by privite email.

--- In 68HC12@68HC..., "joncas04" <rimhoff@g...> wrote:
>
> Hello Dean
>
> I am just about to start production of a small circuit board with an
> SD-card connector and 5V-to-3.3V level translation:
> http://www.flashgenie.net
>
> I'll be glad to send you a prototype at cost if you give me some
> feedback afterwards!
>
> best regards
> Robert
>





Dean have you decided to follow through with your dual S12 design? I
recently completed the first revision of a Dual S12 design which
sounds similar to what you may be doing.

My specific application is for Data Acquisition and Logging. Instead
of SD we are using CF. We decided to go with the DP256 and the
100-pin UF32. The UF32s onboard USB and CF hardware was very
attractive. I'll admit that the hardware design was more difficult
than what we originally expected. We also need high speed
communication so we decided on impementing a parallal interface
between the two S12s. We've tested the basic functionality of the
hardware, CAN communicaitons, Parallel Interface, USB, write to CF,
etc., now we are working on the software drivers.

This has defintely been a challenging project, but I'm sure the end
product will be worth it.

Charnjiv
--- In 68HC12@68HC..., "deaninkc" <dean@m...> wrote:
>
> Yeah, I figured it would be more complicated than just hooking the SD
> connector to the SPI port and writting some software. Like I said
> before I'm a software guy not hardware and I like to make the
> hardware part as simple as possible. That's why I thought using a $5
> U32 processor might be the easiest and cheapest way to go. Otherwise
> I'm looking at a complicated circuit for SD, adding the FT232 USB chip
> that I can't seem to find in small quanites unless I buy the mini-
> board at $35 and dealing with several SMD componants instead of one
> or two. Oh well I guess I'm learning something anyway :) Nothing
> worth doing is easy. I'd be interest in trying your board, contact me
> by privite email.
>
> --- In 68HC12@68HC..., "joncas04" <rimhoff@g...> wrote:
> >
> > Hello Dean
> >
> > I am just about to start production of a small circuit board with an
> > SD-card connector and 5V-to-3.3V level translation:
> > http://www.flashgenie.net
> >
> > I'll be glad to send you a prototype at cost if you give me some
> > feedback afterwards!
> >
> > best regards
> > Robert
> >



For the time being I've decided to use the SPI SD interface. I checked out your website, what I'm doing is very similar to what you are doing, but on a less grand scale. I'm designing a low budget Data Acquisition and logging system for auto racing. I've designed some custom displays using the HCS12 and I'm writting a CAN interface to the Megasquirt DIY fuel injection system. The datalogging is the next logical step. I'm struggling to figure out how to prototype using SMT technology. I'm mainly a software guy that got into this through my involvment in racing and not being able to find the kind of electronics I wanted at a reasonable price.

Dean Manion

----- Original Message -----
From: charn0424
To: 68HC12@68HC...
Sent: Thursday, April 07, 2005 1:54 PM
Subject: [68HC12] Re: HCS12 to HCS12 communication & SD card connectors
Dean have you decided to follow through with your dual S12 design? I
recently completed the first revision of a Dual S12 design which
sounds similar to what you may be doing.

My specific application is for Data Acquisition and Logging. Instead
of SD we are using CF. We decided to go with the DP256 and the
100-pin UF32. The UF32s onboard USB and CF hardware was very
attractive. I'll admit that the hardware design was more difficult
than what we originally expected. We also need high speed
communication so we decided on impementing a parallal interface
between the two S12s. We've tested the basic functionality of the
hardware, CAN communicaitons, Parallel Interface, USB, write to CF,
etc., now we are working on the software drivers.

This has defintely been a challenging project, but I'm sure the end
product will be worth it.

Charnjiv
--- In 68HC12@68HC..., "deaninkc" <dean@m...> wrote:
>
> Yeah, I figured it would be more complicated than just hooking the SD
> connector to the SPI port and writting some software. Like I said
> before I'm a software guy not hardware and I like to make the
> hardware part as simple as possible. That's why I thought using a $5
> U32 processor might be the easiest and cheapest way to go. Otherwise
> I'm looking at a complicated circuit for SD, adding the FT232 USB chip
> that I can't seem to find in small quanites unless I buy the mini-
> board at $35 and dealing with several SMD componants instead of one
> or two. Oh well I guess I'm learning something anyway :) Nothing
> worth doing is easy. I'd be interest in trying your board, contact me
> by privite email.
>
> --- In 68HC12@68HC..., "joncas04" <rimhoff@g...> wrote:
> >
> > Hello Dean
> >
> > I am just about to start production of a small circuit board with an
> > SD-card connector and 5V-to-3.3V level translation:
> > http://www.flashgenie.net
> >
> > I'll be glad to send you a prototype at cost if you give me some
> > feedback afterwards!
> >
> > best regards
> > Robert
> >


------
Yahoo! Groups Links

a.. To


At 04:44 PM 4/7/05, you wrote:
>I'm struggling to figure out how to prototype using SMT technology.

I had the same problem, but it's mostly mental. Note I said
"mostly"!! You MUST have a well grounded soldering iron. I fried a number
of chips figuring that one out. I bought a Metcal, mostly because my
client at the time swore by them, and would have nothing else in his
shop. Pretty expensive, though. After that, how good are your eyes, and
how steady are your hands?

I start by putting the least amount of solder that I can on two corners of
the pads where the chip will go, then tack the chip on only those
corners. Verify that the chip is square, and flat, then solder the rest of
the pins. Everyone has their own way here. Metcal makes a special "hoof"
shaped tip for this part that holds a tiny bubble of solder. Some people
flood the area with solder, then remove the excess with copper braid made
for the purpose.

Here is an interesting idea for low cost, high magnification microscopes:
several companies sell video cameras with 50X lenses and USB
interfaces. Low cost as compared to regular scopes, that is.

Gary Olmstead
Toucan Technology
Ventura CA
www.toucantechnology.com