Welcome! Log In Create A New Profile

Advanced

Teacup firmware MAX6675 questions

Posted by jtrantow 
Teacup firmware MAX6675 questions
February 19, 2012 08:21PM
Has anyone figured out how to use multiple MAX6675 sensors with the Teacup firmware?

Looking at file temp.c, line 139, in the TT_MAX6675 switch case the current code uses WRITE(SS, 0) to enable the SPI slave select. Since Slave Select is defined to the default SS (either DIO10 or DIO53) it doesn't appear that multiple SPI devices are supported.

I'm still trying to figure out how the DEFINE_TEMP_SENSOR double #include "config.h" mumbo jumbo works, but it seems like the .additional argument could be used to select various SS sensor select pins to support multiple SPI sensors. However, the code looks like it is really optimized with constants so a simple change like WRITE(temp_sensor.additional,0) won't work.
Sorry, only registered users may post in this forum.

Click here to login