- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
!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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content