SPIM simple read only PSoC4 -- MAX31855

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.
MaLo_1836446
Level 3
Level 3

Hello all,

Its been a long time since I have used the SPIM block and associated commands.

I have a thermocouple that goes to the MAX31855 board. It uses SPI to communicate. When SS goes low it sends its 32 bits of data. I am only interested in bits 14-31.

I forget the correct way to clear the rx buffer, read rx data and then what to do with said data. Attached is the project I have so far. Also I am novice when it comes to C code so if I have int8s or unit 32_t's im not even sure what they do all that well. Thanks for your help in this.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
MaLo_1836446
Level 3
Level 3

!Hello all,

We were able to get this to work please find attached our project with a header file to get the temperature for the MAX31855

View solution in original post

0 Likes
2 Replies
MaLo_1836446
Level 3
Level 3

This line of code converts the number from dec to celcius, at the 16 bit range i think its .25 deg c per bit

LCD_PrintNumber((int)temp/4);

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

!Hello all,

We were able to get this to work please find attached our project with a header file to get the temperature for the MAX31855

0 Likes