MAX6675 and SPI communication

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi everyone !

I'm trying to do a temperature for electronic board and I have max6675 and max6675 has SPI communication So I looked at  the example for thermocouple

that is not for SPI communication looks like and I dont have any idea how can I configurate this example

I will attach my file

0 Likes
1 Solution

This is an SPI-like interface.

after the CS pin is pressed to the ground, a clock signal can be sent

and the temperature can be read when sck attacking the edge.

Details- MAX6675 datasheet, page5.
000.PNG

View solution in original post

0 Likes
14 Replies
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

MAX6675 already has SPI communication in it.

pastedImage_0.png

Refer to the device datasheet that gives you a complete information on the SPI interface with any micro controller.

https://datasheets.maximintegrated.com/en/ds/MAX6675.pdf

For SPI communication using PSoC 5LP, refer to the code example SPI_Design on just how to implement SPI.

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes
Anonymous
Not applicable

Everything OK, but I just take input from MAX6675 , is SPIM important So should I use it too?

0 Likes

Your MAX6675 is the slave device. You have to use SPIM component in the PSoC 5LP because that is the master device. Is that what you're asking?

Regards,
Bragadeesh
0 Likes
Anonymous
Not applicable

nearly  thas was I'm asking ,

But My question is this ;

I dont have any output for MAX6675 I just take input from MAX6675  and in Thermocouple example there is no SPIM companent

I asking that because of this.

0 Likes

Please clarify: Where are you connecting your thermocouple?

"I dont have any output for MAX6675 I just take input from MAX6675".

Can you please elaborate? A brief description of your application will help me understand your implementation better.

Thermocouple example there is no SPIM component. Are you referring to any code example in particular?

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes

This is an SPI-like interface.

after the CS pin is pressed to the ground, a clock signal can be sent

and the temperature can be read when sck attacking the edge.

Details- MAX6675 datasheet, page5.
000.PNG

0 Likes
Anonymous
Not applicable

I understand now nevermind that my words , Sorry for that

Now my problem is there is a SPIMaster pins and SPISlave pins So I cannot  combining pins So there is a different M_MISO pin and

different S_MISO pin normally there should be 1 pin I guess ,  Is there any way to combine these pins?

0 Likes
lock attach
Attachments are accessible only for community members.

So I do not have a MAX6675 so only thoughts:

0 Likes
Anonymous
Not applicable

I couldn't find the differencies your attach with my attach

Can you clarify ?

And 1 more thing what is the  purpose of TcHotJnPos and TcHotJnNeg ?

0 Likes

I just replaced the SPI Slave to the SPI Master in * .sysn

It is not configured - you have to configure it using the datasheet MAX6675

I do not see in the project TcHotJnPos and TcHotJnNeg

0 Likes
Anonymous
Not applicable

Thank you so much ,

It is working but what am I reading i do not know , Is it reading Kelvin? or Celcius? 

0 Likes

Celcius + cold-junction compensation

12 bits with a resolution of 0.25 degrees, that is, from 0 to 1024 degrees

with a 3 to 14 bit temperature value.

If the second bit is zero, the thermocouple is connected, otherwise it is disabled.
t.png

0 Likes
Anonymous
Not applicable

So if I use 16 bit ADC and I print input to LCD just I check the bits on this condition and use thermocouple example codes

If am I right Thank you So much for everything my program and chip are working

nor Thank you for information again I have some input and I just control it because looks like My thermocouple is connected

I do not think that this is important, but consider that the MAX6675 does not have a thermocouple non-linearity correction.
err.PNG

0 Likes