DSPRelated.com
Forums

SPI soft

Started by max_mont December 5, 2005
Hi,

I'm working on microcontroler freescale. And I have to develop a SPI
interface via hardware IO.
Have anyone already developed this kind of SPI soft or is there anyone
how could give me the chronograph of the 3 signals (MISO, MOSI and CLK)???

Thnaks in advance for your help.



Bit banging an SPI interface is pretty straight forward.

You will need some information about the phase and polarity of the
device you are wanting to communicate with.

Here's an article explaining the interface:
<http://www.mct.net/faq/spi.html>

Hope this helps.

-Louis

-----Original Message-----
From: motoroladsp@moto... [mailto:motoroladsp@moto...]
On Behalf Of max_mont
Sent: Monday, December 05, 2005 2:47 PM
To: motoroladsp@moto...
Subject: [motoroladsp] SPI soft Hi,

I'm working on microcontroler freescale. And I have to develop a SPI
interface via hardware IO. Have anyone already developed this kind of
SPI soft or is there anyone how could give me the chronograph of the 3
signals (MISO, MOSI and CLK)???

Thnaks in advance for your help.


Hello,
I don't know if you are using CodeWarrior.
But, the Processor Expert (CodeWarrior plug-in) already contains a
bean (configurable component) with this functionality.
You just configure which pins are used and phase and lovel of the
clock and you can use the generated methods like SendChar or RecvChar.
The bean name is SWSPI and it's available in the category CPU External
Devices / Communication in the Bean Selector window.
Even if you don't use the CodeWarrior and Processor Expert you can get
a free version from Freescale's website (I think it's limited in code
size only) and look on the code...
best regards
Petr Hradsky
Processor Expert Support Team
UNIS

--- In motoroladsp@moto..., "max_mont" <max_mont@y...> wrote:
>
> Hi,
>
> I'm working on microcontroler freescale. And I have to develop a SPI
> interface via hardware IO.
> Have anyone already developed this kind of SPI soft or is there anyone
> how could give me the chronograph of the 3 signals (MISO, MOSI and
CLK)???
>
> Thnaks in advance for your help.
>