ECIO28 with MAX6675 (spi)

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
Jan Bardoel
Posts: 3
Joined: Tue Oct 26, 2010 7:10 pm

ECIO28 with MAX6675 (spi)

Post 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.....

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ECIO28 with MAX6675 (spi)

Post 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.

Post Reply