On Mon, 3 May 2010, Maximilian H wrote:

> Date: Mon, 03 May 2010 12:57:09 +0200
> From: Maximilian H <[email protected]>
> Reply-To: "Enhanced Machine Controller (EMC)"
>     <[email protected]>
> To: "Enhanced Machine Controller (EMC)" <[email protected]>
> Subject: [Emc-users] SPI bus communication with mesa cards ?
> 
>
> Hello Everybody,
>
> I'd like to use some extra ICs to read an ADC at a relatively low speed
> to get some values from potentiometers. And I2C or SPI integrated
> circuits are quite common.
>
> I currently have a mesa 7i43, 200k and 400k versions with an extra pcb
> to adapt to the cnc machine. I'd like to put an extra SPI bus on my own
> pcb, connect some ICs to the SPI bus an happily read and write to these ICs.
>
> Is there any work already done in the hostmot driver for the mesa cards
> ? I've seen the page in the wiki, but I think this was just more or less
> a brainstorm on how this could be done.

Theres currently no driver support for SPI. For testing you could use 
hostmot2s raw mode. The disadvantage of using the raw mode for SPI access is 
that it only supports one read/write per thread execution, so multiple 
channels have to be time muxed (one SPI channel access per servo thread, 
round robin).

There are 2 SPI hardware interfaces available in HostMot2, the Simple SPI 
(SSPI) and the Buffered SPI. The Simple SPI interface is suited to devices 
that have only one channel. The Buffered SPI (BSPI) interface is suited to 
devices tha have multiple channels per chip and systems that use multiple SPI 
devices that share an interface. Information on the low level SPI hardware is 
in the regmap file. I can help if you have hardware specific questions.


>
> How about a software implementation of the spi protocol. Has anybody
> worked with that ? How fast could you go with a sw impl. ?


I think Kirk Wallace? has a HAL based bit banged SPI interface


>
> BR
> Max
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to