Page 1 of 1

ECIO28 with MAX6675 (spi)

Posted: Thu Oct 28, 2010 8:00 pm
by Jan Bardoel
Hi to the experts !!!

I want to read the temperature of a thermo-element by means off the MAX6675 into a ECIO28.
The MAX has a simple SPI-compatible serial interface, but flowcode is only speaking of E-blocks with spi.
hardware config:: (can be changed)
MAX6675 ::::: ser. clock::::ser.Output::::non chipselect
ECIO28 :::: A1 :::: A2 ::: A3

Pleas help me quick,
thank you.....

Re: ECIO28 with MAX6675 (spi)

Posted: Fri Oct 29, 2010 11:35 am
by Benj
Hello,

The Flowcode SPI component can be used to simply send and receive bytes from the SPI bus. You must manage your own CS pin so you can use output icons in single bit mode to do this. To allow the SPI hardware to work you must connect the following pins of the ECIO to your MAX device.

ECIO RC7 SDO -> MAX SDI
ECIO RB0 SDI -> MAX SDO
ECIO RB1 SCK -> MAX SCK
ECIO Any free I/O pin -> MAX CS

If data is not going to be flowing both ways then you do not need either the SDO (outgoing) or the SDI (incoming) signal connected.

Data direction is from the point of view of the microcontroller.