MAX31855 pin mapping

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
Roy Johnston
Flowcode V4 User
Posts: 220
Joined: Mon Aug 24, 2009 8:38 am
Has thanked: 2 times
Been thanked: 34 times

MAX31855 pin mapping

Post by Roy Johnston »

I am a bit confused
The component has a pin remapping option on the MOSI, MISO and CLK pins. CS/SS pins are selectable. I don’t want to remap the pins. I want to wire the actual pins specified in the chip datasheet
This component only requires 3 connections. MISO, SCK and CS
I will obviously not wire MOSI pin. Can I use this pin elsewhere for either an outputs or inputs.
I am using channel 2 for my projects. the greyed-out values namely D5, D6 and D7 are the pins where I will wire my chips onto. What happens to the remapped pins? can I use the mapped pins elsewhere in my project?

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: MAX31855 pin mapping

Post by Benj »

Hello Roy,

On some target chips the SPI and other peripherals can be assigned to various IO pins. When this is an option the remap properties become active allowing you to select which IO pins you want to use.

User avatar
Bachman
Posts: 116
Joined: Sun Sep 07, 2014 11:37 am
Location: Hungary
Has thanked: 9 times
Been thanked: 53 times

Re: MAX31855 pin mapping

Post by Bachman »

When you're using SPI HW module in the controller, the module will dominate the MOSI, MISO, SCK pins. In this case, if you're not using MISO pin, you can use it as a digital input, but only as a digital input. The corresponding bit of the PORT register (in PIC microcontrollers) can be read and it will show the correct input value of the pin. MOSI and SCK pins can't be use to other things.

For MAX31855, the MISO pin must be the data pin while wasting of the MOSI pin, except if you're using software SPI mode.

Post Reply